Obtener un CUIT
curl --request GET \
--url https://www.facture.ar/api/cuits/{cuitId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://www.facture.ar/api/cuits/{cuitId}', 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}"
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}",
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": "cm1a2b3c4d5e6f7g8h9i0j",
"number": "20123456789",
"testing_certificate_valid": true,
"production_certificate_valid": true,
"testing_afip_connection_valid": true,
"production_afip_connection_valid": true,
"is_default": true,
"setupStatus": "INITIALIZED",
"userId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"persona": {},
"personaLastUpdated": "2023-11-07T05:31:56Z",
"pos": {},
"posLastUpdated": "2023-11-07T05:31:56Z",
"default_pos": 1,
"default_concept": 2,
"default_invoice_type": 11,
"default_iva": 5,
"production_certificate_expiration": "2023-11-07T05:31:56Z",
"production_ta_expiration": "2023-11-07T05:31:56Z",
"testing_certificate_expiration": "2023-11-07T05:31:56Z",
"testing_ta_expiration": "2023-11-07T05:31:56Z",
"integrationMode": "DELEGATION",
"testingSetupState": "REQUESTED",
"productionSetupState": "REQUESTED"
}{
"type": "https://www.facture.ar/problems/invalid_request",
"title": "Bad Request",
"status": 400,
"detail": "<string>",
"code": "invalid_request",
"message": "<string>",
"resolution": "<string>",
"error": "<string>",
"details": "<unknown>",
"upgradeUrl": "<string>",
"creditNoteId": "<string>",
"batchId": "<string>"
}{
"type": "https://www.facture.ar/problems/invalid_request",
"title": "Bad Request",
"status": 400,
"detail": "<string>",
"code": "invalid_request",
"message": "<string>",
"resolution": "<string>",
"error": "<string>",
"details": "<unknown>",
"upgradeUrl": "<string>",
"creditNoteId": "<string>",
"batchId": "<string>"
}{
"type": "https://www.facture.ar/problems/invalid_request",
"title": "Bad Request",
"status": 400,
"detail": "<string>",
"code": "invalid_request",
"message": "<string>",
"resolution": "<string>",
"error": "<string>",
"details": "<unknown>",
"upgradeUrl": "<string>",
"creditNoteId": "<string>",
"batchId": "<string>"
}CUITs
Obtener un CUIT
Devuelve un CUIT de tu cuenta con sus datos del padrón, puntos de venta, defaults y estado de la configuración en ARCA.
GET
/
cuits
/
{cuitId}
Obtener un CUIT
curl --request GET \
--url https://www.facture.ar/api/cuits/{cuitId} \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://www.facture.ar/api/cuits/{cuitId}', 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}"
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}",
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": "cm1a2b3c4d5e6f7g8h9i0j",
"number": "20123456789",
"testing_certificate_valid": true,
"production_certificate_valid": true,
"testing_afip_connection_valid": true,
"production_afip_connection_valid": true,
"is_default": true,
"setupStatus": "INITIALIZED",
"userId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"persona": {},
"personaLastUpdated": "2023-11-07T05:31:56Z",
"pos": {},
"posLastUpdated": "2023-11-07T05:31:56Z",
"default_pos": 1,
"default_concept": 2,
"default_invoice_type": 11,
"default_iva": 5,
"production_certificate_expiration": "2023-11-07T05:31:56Z",
"production_ta_expiration": "2023-11-07T05:31:56Z",
"testing_certificate_expiration": "2023-11-07T05:31:56Z",
"testing_ta_expiration": "2023-11-07T05:31:56Z",
"integrationMode": "DELEGATION",
"testingSetupState": "REQUESTED",
"productionSetupState": "REQUESTED"
}{
"type": "https://www.facture.ar/problems/invalid_request",
"title": "Bad Request",
"status": 400,
"detail": "<string>",
"code": "invalid_request",
"message": "<string>",
"resolution": "<string>",
"error": "<string>",
"details": "<unknown>",
"upgradeUrl": "<string>",
"creditNoteId": "<string>",
"batchId": "<string>"
}{
"type": "https://www.facture.ar/problems/invalid_request",
"title": "Bad Request",
"status": 400,
"detail": "<string>",
"code": "invalid_request",
"message": "<string>",
"resolution": "<string>",
"error": "<string>",
"details": "<unknown>",
"upgradeUrl": "<string>",
"creditNoteId": "<string>",
"batchId": "<string>"
}{
"type": "https://www.facture.ar/problems/invalid_request",
"title": "Bad Request",
"status": 400,
"detail": "<string>",
"code": "invalid_request",
"message": "<string>",
"resolution": "<string>",
"error": "<string>",
"details": "<unknown>",
"upgradeUrl": "<string>",
"creditNoteId": "<string>",
"batchId": "<string>"
}Authorizations
API Key que generás en el panel (Desarrolladores > Claves API, https://www.facture.ar/app/api-keys) y mandás en el header x-api-key. Es la única credencial que acepta la API REST. Cada key tiene su entorno fijo: test_sk_... opera siempre en homologación y prod_sk_... en producción; el header x-environment se ignora.
Response
CUIT
CUIT de tu cuenta. Nunca incluye certificados, claves privadas ni tickets de acceso.