curl --request GET \
--url https://www.facture.ar/api/invoices/{invoiceId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://www.facture.ar/api/invoices/{invoiceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.facture.ar/api/invoices/{invoiceId}"
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/invoices/{invoiceId}",
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;
}{
"id": "<string>",
"userId": "<string>",
"cuitId": "<string>",
"environment": "production",
"amount": 1210,
"voucherNumber": 145,
"feCAEReq": {},
"status": "processing",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"ptoVta": 1,
"invoiceType": 11,
"feCabResp": {},
"errorMessage": "<string>",
"description": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"origin": "facturear",
"voidedBy": "<string>",
"cuit": {
"number": "20-12345678-9",
"persona": {}
}
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"resolution": "<string>",
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"details": "<unknown>"
}Obtener factura por ID
Obtiene los detalles de una factura específica por su ID.
curl --request GET \
--url https://www.facture.ar/api/invoices/{invoiceId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://www.facture.ar/api/invoices/{invoiceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.facture.ar/api/invoices/{invoiceId}"
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/invoices/{invoiceId}",
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;
}{
"id": "<string>",
"userId": "<string>",
"cuitId": "<string>",
"environment": "production",
"amount": 1210,
"voucherNumber": 145,
"feCAEReq": {},
"status": "processing",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"ptoVta": 1,
"invoiceType": 11,
"feCabResp": {},
"errorMessage": "<string>",
"description": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"origin": "facturear",
"voidedBy": "<string>",
"cuit": {
"number": "20-12345678-9",
"persona": {}
}
}{
"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 de la factura
Response
Factura obtenida exitosamente
ID de la factura
ID del usuario
ID del CUIT emisor
Entorno en el que se emitió
production, homologation Importe total
1210
Número de comprobante
145
Solicitud enviada a ARCA (FeCAEReq con FeCabReq y FeDetReq), más items, tributos y clientName
Estado de la factura
processing, success, error Fecha de creación
Fecha de última actualización
Punto de venta
1
Tipo de comprobante (código de ARCA)
11
Respuesta de ARCA tal cual (FeCabResp y FeDetResp; el CAE y su vencimiento están en FeDetResp.FECAEDetResponse)
Motivo del error, si status es error
Descripción de la factura
Cuándo ARCA autorizó el comprobante. En las facturas emitidas desde Facturear es la fecha de creación; en las importadas desde ARCA, la fecha del comprobante. Los reportes agrupan por este campo
facturear: emitida desde Facturear. arca: copiada de un comprobante que ARCA ya había autorizado (Importar desde ARCA)
facturear, arca ID de la nota de crédito que anuló esta factura (POST /invoices/{invoiceId}/credit-note), o null. Solo viene en GET /invoices
CUIT emisor. persona solo viene en GET /invoices/{invoiceId}
Show child attributes
Show child attributes