Obtener el diseño de factura
curl --request GET \
--url https://www.facture.ar/api/cuits/{cuitId}/invoice-branding \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
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"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, 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 => "GET",
CURLOPT_HTTPHEADER => [
"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>"
}CUITs
Obtener el diseño de factura
Plantilla, logo, color y datos del emisor con que se imprimen las facturas del CUIT.
GET
/
cuits
/
{cuitId}
/
invoice-branding
Obtener el diseño de factura
curl --request GET \
--url https://www.facture.ar/api/cuits/{cuitId}/invoice-branding \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
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"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, 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 => "GET",
CURLOPT_HTTPHEADER => [
"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>"
}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
Response
Diseño de factura
Plantilla visual. Por defecto clasico
Available options:
clasico, moderno, minimalista, elegante Tipo de hoja: A4 (por defecto), carta u oficio
Available options:
A4, LETTER, LEGAL Color de acento #rrggbb. null usa el de la plantilla
Pattern:
^#[0-9a-fA-F]{6}$Logo como data URL (data:image/png|jpeg|webp;base64,...), hasta 512 KB
Nombre de fantasía
Maximum string length:
120Fecha de inicio de actividades (AAAA-MM-DD)
Domicilio comercial, si difiere del domicilio fiscal del padrón
Maximum string length:
200Texto libre al pie de la factura
Maximum string length:
500