curl --request PUT \
--url https://www.facture.ar/api/cuits/{cuitId}/email-design \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"accentColor": "<string>",
"backgroundColor": "<string>",
"showLogo": true,
"subject": "<string>",
"body": "<string>",
"signature": "<string>"
}
'const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accentColor: '<string>',
backgroundColor: '<string>',
showLogo: true,
subject: '<string>',
body: JSON.stringify('<string>'),
signature: '<string>'
})
};
fetch('https://www.facture.ar/api/cuits/{cuitId}/email-design', 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}/email-design"
payload = {
"accentColor": "<string>",
"backgroundColor": "<string>",
"showLogo": True,
"subject": "<string>",
"body": "<string>",
"signature": "<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}/email-design",
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>',
'backgroundColor' => '<string>',
'showLogo' => true,
'subject' => '<string>',
'body' => '<string>',
'signature' => '<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;
}{
"accentColor": "<string>",
"backgroundColor": "<string>",
"showLogo": true,
"subject": "<string>",
"body": "<string>",
"signature": "<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 del mail
Los campos que no mandás quedan como están; null (o texto vacío) vuelve al valor por defecto. En signature, el texto vacío deja el mail sin firma.
curl --request PUT \
--url https://www.facture.ar/api/cuits/{cuitId}/email-design \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"accentColor": "<string>",
"backgroundColor": "<string>",
"showLogo": true,
"subject": "<string>",
"body": "<string>",
"signature": "<string>"
}
'const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accentColor: '<string>',
backgroundColor: '<string>',
showLogo: true,
subject: '<string>',
body: JSON.stringify('<string>'),
signature: '<string>'
})
};
fetch('https://www.facture.ar/api/cuits/{cuitId}/email-design', 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}/email-design"
payload = {
"accentColor": "<string>",
"backgroundColor": "<string>",
"showLogo": True,
"subject": "<string>",
"body": "<string>",
"signature": "<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}/email-design",
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>',
'backgroundColor' => '<string>',
'showLogo' => true,
'subject' => '<string>',
'body' => '<string>',
'signature' => '<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;
}{
"accentColor": "<string>",
"backgroundColor": "<string>",
"showLogo": true,
"subject": "<string>",
"body": "<string>",
"signature": "<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
Diseño del mail con el que sale la factura de este CUIT. null = valor por defecto
Color de la banda superior (#rrggbb)
^#[0-9a-fA-F]{6}$Color de fondo (#rrggbb)
^#[0-9a-fA-F]{6}$Mostrar el logo del CUIT en el encabezado
Asunto. Admite bloques como %emisor%
200Mensaje. Admite bloques como %cliente%
3000Firma. null = firma por defecto; texto vacío = sin firma
500Response
Diseño guardado
Diseño del mail con el que sale la factura de este CUIT. null = valor por defecto
Color de la banda superior (#rrggbb)
^#[0-9a-fA-F]{6}$Color de fondo (#rrggbb)
^#[0-9a-fA-F]{6}$Mostrar el logo del CUIT en el encabezado
Asunto. Admite bloques como %emisor%
200Mensaje. Admite bloques como %cliente%
3000Firma. null = firma por defecto; texto vacío = sin firma
500