curl --request PUT \
--url https://www.facture.ar/api/cuits/{cuitId}/invoice-branding \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"accentColor": "<string>",
"logo": "<string>",
"tradeName": "<string>",
"activityStart": "2023-12-25",
"address": "<string>",
"footerNote": "<string>"
}
'const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accentColor: '<string>',
logo: '<string>',
tradeName: '<string>',
activityStart: '2023-12-25',
address: '<string>',
footerNote: '<string>'
})
};
fetch('https://www.facture.ar/api/cuits/{cuitId}/invoice-branding', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.facture.ar/api/cuits/{cuitId}/invoice-branding"
payload = {
"accentColor": "<string>",
"logo": "<string>",
"tradeName": "<string>",
"activityStart": "2023-12-25",
"address": "<string>",
"footerNote": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.facture.ar/api/cuits/{cuitId}/invoice-branding",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'accentColor' => '<string>',
'logo' => '<string>',
'tradeName' => '<string>',
'activityStart' => '2023-12-25',
'address' => '<string>',
'footerNote' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"template": "clasico",
"paperSize": "A4",
"accentColor": "<string>",
"logo": "<string>",
"tradeName": "<string>",
"activityStart": "2023-12-25",
"address": "<string>",
"footerNote": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"resolution": "<string>",
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"resolution": "<string>",
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"details": "<unknown>"
}Cambiar el diseño de factura
Cambia los campos enviados; los que no se envían quedan como están y null borra un valor. Se aplica también al PDF de las facturas ya emitidas.
curl --request PUT \
--url https://www.facture.ar/api/cuits/{cuitId}/invoice-branding \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"accentColor": "<string>",
"logo": "<string>",
"tradeName": "<string>",
"activityStart": "2023-12-25",
"address": "<string>",
"footerNote": "<string>"
}
'const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accentColor: '<string>',
logo: '<string>',
tradeName: '<string>',
activityStart: '2023-12-25',
address: '<string>',
footerNote: '<string>'
})
};
fetch('https://www.facture.ar/api/cuits/{cuitId}/invoice-branding', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.facture.ar/api/cuits/{cuitId}/invoice-branding"
payload = {
"accentColor": "<string>",
"logo": "<string>",
"tradeName": "<string>",
"activityStart": "2023-12-25",
"address": "<string>",
"footerNote": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.facture.ar/api/cuits/{cuitId}/invoice-branding",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'accentColor' => '<string>',
'logo' => '<string>',
'tradeName' => '<string>',
'activityStart' => '2023-12-25',
'address' => '<string>',
'footerNote' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"template": "clasico",
"paperSize": "A4",
"accentColor": "<string>",
"logo": "<string>",
"tradeName": "<string>",
"activityStart": "2023-12-25",
"address": "<string>",
"footerNote": "<string>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"resolution": "<string>",
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"resolution": "<string>",
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"details": "<unknown>"
}Authorizations
API Key para autenticación. Formato: test_sk_xxx para testing, prod_sk_xxx para producción.
Path Parameters
ID del CUIT en Facturear
Body
Plantilla visual. Por defecto clasico
clasico, moderno, minimalista, elegante Tipo de hoja: A4 (por defecto), carta u oficio
A4, LETTER, LEGAL Color de acento #rrggbb. null usa el de la plantilla
^#[0-9a-fA-F]{6}$Logo como data URL (data:image/png|jpeg|webp;base64,...), hasta 512 KB
Nombre de fantasía
120Fecha de inicio de actividades (AAAA-MM-DD)
Domicilio comercial, si difiere del domicilio fiscal del padrón
200Texto libre al pie de la factura
500Response
Diseño actualizado
Plantilla visual. Por defecto clasico
clasico, moderno, minimalista, elegante Tipo de hoja: A4 (por defecto), carta u oficio
A4, LETTER, LEGAL Color de acento #rrggbb. null usa el de la plantilla
^#[0-9a-fA-F]{6}$Logo como data URL (data:image/png|jpeg|webp;base64,...), hasta 512 KB
Nombre de fantasía
120Fecha de inicio de actividades (AAAA-MM-DD)
Domicilio comercial, si difiere del domicilio fiscal del padrón
200Texto libre al pie de la factura
500