API Reference
update Changelog
GET

List tax documents

language https://api.araucaria.money/v1/tax-profiles/{taxProfileId}/tax-documents

Returns the electronic tax documents (invoices, credit notes, ...) registered with a tax authority for a tax profile, newest document first (by issuedDate), with cursor-based pagination. Amounts are reported positive; the sign is implied by kind.


Parameters

Name Type Description
taxProfileId * path string
limit query number Number of items per page
starting_after query string Return items after this ID. Pass the `next_cursor` from the previous response. Omit for the first page

Request Example

bash
curl -X GET "https://api.araucaria.money/v1/tax-profiles/{taxProfileId}/tax-documents" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Example

200 OK
json
{
  "data": [
    {
      "id": "tdoc_01HQ3K5J7X8Y9Z0A1B2C3D4E5F",
      "taxProfileId": "tprof_01HQ3K5J7X8Y9Z0A1B2C3D4E5F",
      "direction": "received",
      "kind": "invoice",
      "documentType": "33",
      "number": "184523",
      "counterpartyTaxId": "96689310-9",
      "counterpartyName": "Proveedor Ejemplo SpA",
      "issuedDate": "2026-03-12",
      "receivedAt": "2026-03-12T17:41:08.000Z",
      "taxPeriod": "2026-03",
      "subtotalAmount": 100000,
      "exemptAmount": 0,
      "taxAmount": 19000,
      "totalAmount": 119000,
      "currency": "CLP",
      "status": "accepted",
      "details": {
        "v": 1,
        "source": "cl_sii",
        "fields": [
          {
            "key": "estado_rcv",
            "label": "Estado RCV",
            "value": "REGISTRO"
          },
          {
            "key": "fecha_acuse_recibo",
            "label": "Fecha Acuse Recibo",
            "value": "13/03/2026 09:02:11"
          }
        ]
      },
      "createdAt": "2026-03-15T14:30:00Z",
      "lastSyncedAt": "2026-03-15T14:30:00Z"
    }
  ],
  "has_more": false
}

Response Fields

Field Type Description
data * TaxDocumentResponseDto[] Array of tax documents
has_more * boolean Whether more results are available
next_cursor string Cursor for the next page. Pass it as the `starting_after` query parameter. Only present when `has_more` is true