Saltar al contenido principal
GET

Listado de documentos entrantes

Scope:inbox:inbox.read
https://api.holded.com/api/v2/inbox

Returns a cursor-paginated list of incoming documents in your inbox. Optional filters: `status` (comma-separated list of statuses: `new`, `processing`, `error`, `pending_to_verify`, `done`, `rejected`), `start_date`/`end_date` (ISO 8601 date range on creation date), `user_id` (comma-separated user IDs). Results are ordered by creation date descending (newest first). Pass `cursor` from the previous response to fetch the next page.

Parámetros

Parámetros de consulta

cursorstringopcional

Cursor opaco de paginación. Usa el valor devuelto en la respuesta anterior

limitintegeropcional= 50

Número máximo de documentos a devolver por página. Por defecto 50, máximo 200

statusstringopcional

Estados por los que filtrar, separados por comas (p.ej. pending_to_verify,done)

start_datestring<date-time>opcional

Filtrar documentos creados a partir de esta fecha (ISO 8601)

end_datestring<date-time>opcional

Filtrar documentos creados hasta esta fecha (ISO 8601)

user_idstringopcional

Identificadores de usuario separados por comas para filtrar por quien subió el documento

Petición

python
import requests

url = "https://api.holded.com/api/v2/inbox?cursor=value&limit=50&status=value"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Respuestas

Respuesta

json
{
  "items": [
    {
      "id": "string",
      "status": "pending_to_verify",
      "origin": {
        "id": "string",
        "name": "string",
        "type": "upload",
        "source": "string"
      },
      "document_number": "string",
      "type": "invoice",
      "outcome": {
        "documentId": "string",
        "documentNumber": "string",
        "type": "string",
        "isDraft": false,
        "exportedAt": "2024-01-15T10:30:00Z",
        "attached": false
      },
      "date": "2024-01-15T10:30:00Z",
      "contact_name": "string",
      "total": "100,00",
      "file": {
        "filename": "string",
        "path": "string"
      },
      "thumbnail": "string",
      "signature": {
        "filename": "string",
        "path": "string"
      },
      "scanned_at": "string",
      "seen_at": "string",
      "errors": [
        "string"
      ],
      "draft": {
        "description": "string"
      }
    }
  ],
  "cursor": "string",
  "has_more": false
}

Respuestas exitosas

200Listado de documentos entrantesapplication/json
object
items[]object[]
idstring

Unique identifier of the incoming document

statusstring

Current status

Enum:newprocessingerrorpending_to_verifydonerejected
originobject

Origin metadata

document_numberstring | null

Document number extracted from the file

typestring | null

Document type

Enum:invoicesalesreceiptcreditnotepurchaseorderpurchaseshipmentsalesorderreceiptpurchaserefundestimatewaybillproformreceiptnoteinvoicerecurringpurchaserecurringpayrollpayrollrecurringamazonorderproductionorderinvoicingforecast
outcomeobject | null

Linked document outcome if the document has been processed

datestring<date-time>

Creation date in ISO 8601 format

contact_namestring | null

Name of the associated contact

totalstring | null

Total amount as decimal string

fileobject | null

Primary file associated with the document

thumbnailstring | null

Thumbnail URL (reserved for future use)

signatureobject | null

Certified digitization signature file

scanned_atstring | null

Date the document was scanned (ISO 8601)

seen_atstring | null

Date the document was first seen (ISO 8601)

errors[]string[]

List of error codes if the scan failed

draftobject

Draft metadata extracted from the document

cursorstring | null
has_moreboolean

Respuestas de error

401API key inválida o no proporcionadaapplication/json
403Permisos insuficientesapplication/json
429Límite de solicitudes excedidoapplication/json