Relevar los comprobantes de ARCA
curl --request POST \
--url https://www.facture.ar/api/arca-imports \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"cuitId": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({cuitId: '<string>'})
};
fetch('https://www.facture.ar/api/arca-imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.facture.ar/api/arca-imports"
payload = { "cuitId": "<string>" }
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://www.facture.ar/api/arca-imports",
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' => '<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;
}{
"job": {
"id": "<string>",
"status": "scanning",
"range": "mes",
"rangeLabel": "<string>",
"from": "<string>",
"to": "<string>",
"imported": 123,
"skipped": 123,
"gaps": 123,
"errorMessage": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"pointsOfSale": [
123
],
"segments": [
{
"ptoVta": 123,
"cbteTipo": 123,
"cbteTipoName": "<string>",
"lastNumber": 123,
"fromNumber": 123,
"toNumber": 123,
"fromDate": "<string>",
"toDate": "<string>",
"inRange": 123,
"already": 123,
"pending": 123,
"note": "<string>",
"resolved": true
}
],
"totals": {
"inRange": 123,
"already": 123,
"pending": 123
},
"scan": {
"phase": "puntos",
"done": 123,
"total": 123
},
"cursor": {
"ptoVta": 123,
"cbteTipoName": "<string>",
"next": 123,
"toNumber": 123
}
}
}{
"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>"
}{
"error": "<string>",
"code": "<string>",
"message": "<string>",
"resolution": "<string>",
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"details": "<unknown>"
}Importar desde ARCA
Relevar los comprobantes de ARCA
Empieza a relevar los comprobantes que ARCA ya autorizó para el CUIT en el período. Si ya hay un relevamiento en curso, lo devuelve. Cuando llega a status ready, importalo con la acción start.
POST
/
arca-imports
Relevar los comprobantes de ARCA
curl --request POST \
--url https://www.facture.ar/api/arca-imports \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"cuitId": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({cuitId: '<string>'})
};
fetch('https://www.facture.ar/api/arca-imports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.facture.ar/api/arca-imports"
payload = { "cuitId": "<string>" }
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://www.facture.ar/api/arca-imports",
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' => '<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;
}{
"job": {
"id": "<string>",
"status": "scanning",
"range": "mes",
"rangeLabel": "<string>",
"from": "<string>",
"to": "<string>",
"imported": 123,
"skipped": 123,
"gaps": 123,
"errorMessage": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"pointsOfSale": [
123
],
"segments": [
{
"ptoVta": 123,
"cbteTipo": 123,
"cbteTipoName": "<string>",
"lastNumber": 123,
"fromNumber": 123,
"toNumber": 123,
"fromDate": "<string>",
"toDate": "<string>",
"inRange": 123,
"already": 123,
"pending": 123,
"note": "<string>",
"resolved": true
}
],
"totals": {
"inRange": 123,
"already": 123,
"pending": 123
},
"scan": {
"phase": "puntos",
"done": 123,
"total": 123
},
"cursor": {
"ptoVta": 123,
"cbteTipoName": "<string>",
"next": 123,
"toNumber": 123
}
}
}{
"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>"
}{
"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.
Body
application/json
Response
Relevamiento
Un relevamiento de los comprobantes que ARCA ya autorizó para un CUIT, y su importación a Facturear
Show child attributes
Show child attributes