Crear facturas
curl --request POST \
--url https://facture.ar/api/invoices \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"cuitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1.01,
"description": "<string>",
"docTipo": 123,
"docNro": 123,
"invoiceType": 123
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
cuitId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
amount: 1.01,
description: '<string>',
docTipo: 123,
docNro: 123,
invoiceType: 123
})
};
fetch('https://facture.ar/api/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://facture.ar/api/invoices"
payload = {
"cuitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1.01,
"description": "<string>",
"docTipo": 123,
"docNro": 123,
"invoiceType": 123
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://facture.ar/api/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cuitId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'amount' => 1.01,
'description' => '<string>',
'docTipo' => 123,
'docNro' => 123,
'invoiceType' => 123
]),
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;
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Facturas
Crear facturas
Crea facturas electrónicas individuales o en lote. El sistema procesa las solicitudes de forma asíncrona a través de un sistema de colas.
POST
/
invoices
Crear facturas
curl --request POST \
--url https://facture.ar/api/invoices \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"cuitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1.01,
"description": "<string>",
"docTipo": 123,
"docNro": 123,
"invoiceType": 123
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
cuitId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
amount: 1.01,
description: '<string>',
docTipo: 123,
docNro: 123,
invoiceType: 123
})
};
fetch('https://facture.ar/api/invoices', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://facture.ar/api/invoices"
payload = {
"cuitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1.01,
"description": "<string>",
"docTipo": 123,
"docNro": 123,
"invoiceType": 123
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://facture.ar/api/invoices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'cuitId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'amount' => 1.01,
'description' => '<string>',
'docTipo' => 123,
'docNro' => 123,
'invoiceType' => 123
]),
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;
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Authorizations
API Key para autenticación. Formato: test_sk_xxx para testing, prod_sk_xxx para producción.
Body
application/json
- object
- object[]
ID del CUIT emisor
Monto de la factura
Required range:
x >= 0.01Descripción de la factura
Maximum string length:
500Tipo de documento del cliente
Número de documento del cliente
Tipo de factura
Tipo de IVA
Moneda de la factura
Available options:
ARS, USD Fecha de vencimiento