Skip to main content
PATCH
/
invoices
/
batches
/
{batchId}
Agregar facturas a lote
curl --request PATCH \
  --url https://facture.ar/api/invoices/batches/{batchId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "invoices": [
    {
      "cuitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "amount": 1.01,
      "description": "<string>",
      "docTipo": 123,
      "docNro": 123,
      "invoiceType": 123,
      "ivaType": 123,
      "currency": "ARS",
      "dueDate": "2023-12-25"
    }
  ]
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "pending",
  "createdAt": "2023-11-07T05:31:56Z",
  "totalItems": 123,
  "processedItems": 123,
  "failedItems": 123,
  "updatedAt": "2023-11-07T05:31:56Z",
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "pending",
      "invoiceData": {
        "cuitId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "amount": 1.01,
        "description": "<string>",
        "docTipo": 123,
        "docNro": 123,
        "invoiceType": 123,
        "ivaType": 123,
        "currency": "ARS",
        "dueDate": "2023-12-25"
      },
      "invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "error": "<string>",
      "retryCount": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

x-api-key
string
header
required

API Key para autenticación. Formato: test_sk_xxx para testing, prod_sk_xxx para producción.

Path Parameters

batchId
string<uuid>
required

ID del lote

Body

application/json
invoices
object[]
required

Array de facturas a agregar al lote

Response

Facturas agregadas al lote exitosamente

id
string<uuid>
required

ID único del lote

status
enum<string>
required

Estado del lote

Available options:
pending,
processing,
completed,
failed
createdAt
string<date-time>
required

Fecha de creación

totalItems
integer

Total de items en el lote

processedItems
integer

Items procesados exitosamente

failedItems
integer

Items que fallaron

updatedAt
string<date-time>

Fecha de última actualización

items
object[]

Items del lote