Listar plantillas
curl --request GET \
--url https://www.facture.ar/api/documents/templates \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://www.facture.ar/api/documents/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.facture.ar/api/documents/templates"
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/documents/templates",
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;
}{
"templates": [
{
"id": "<string>",
"userId": "<string>",
"name": "<string>",
"cuitId": "<string>",
"ptoVta": 50000,
"mode": "manual",
"concepto": 1,
"ivaRate": 21,
"pricesIncludeIva": true,
"receiverDocType": "CUIT",
"receiverDocNumber": "<string>",
"receiverName": "<string>",
"receiverCondicionIva": 123,
"receiverEmail": "jsmith@example.com",
"items": [
{
"description": "<string>",
"quantity": 123,
"unitPrice": 1
}
],
"priceList": [
{
"description": "<string>",
"unitPrice": 1
}
],
"instructions": "<string>",
"columnMapping": {
"headerRow": 2,
"columns": {},
"groupBy": "<string>",
"pricesIncludeIva": true
},
"paymentTermDays": 182,
"sendEmail": true,
"emailCopyTo": "jsmith@example.com",
"recurrence": "monthly",
"dayOfMonth": 14,
"active": true,
"nextRunAt": "2023-11-07T05:31:56Z",
"lastRunAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}Plantillas
Listar plantillas
GET
/
documents
/
templates
Listar plantillas
curl --request GET \
--url https://www.facture.ar/api/documents/templates \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://www.facture.ar/api/documents/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.facture.ar/api/documents/templates"
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/documents/templates",
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;
}{
"templates": [
{
"id": "<string>",
"userId": "<string>",
"name": "<string>",
"cuitId": "<string>",
"ptoVta": 50000,
"mode": "manual",
"concepto": 1,
"ivaRate": 21,
"pricesIncludeIva": true,
"receiverDocType": "CUIT",
"receiverDocNumber": "<string>",
"receiverName": "<string>",
"receiverCondicionIva": 123,
"receiverEmail": "jsmith@example.com",
"items": [
{
"description": "<string>",
"quantity": 123,
"unitPrice": 1
}
],
"priceList": [
{
"description": "<string>",
"unitPrice": 1
}
],
"instructions": "<string>",
"columnMapping": {
"headerRow": 2,
"columns": {},
"groupBy": "<string>",
"pricesIncludeIva": true
},
"paymentTermDays": 182,
"sendEmail": true,
"emailCopyTo": "jsmith@example.com",
"recurrence": "monthly",
"dayOfMonth": 14,
"active": true,
"nextRunAt": "2023-11-07T05:31:56Z",
"lastRunAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}