Saltar al contingut principal
GET

Llistat de documents entrants

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àmetres

Paràmetres de consulta

cursorstringopcional

Cursor opac de paginació. Utilitza el valor retornat a la resposta anterior

limitintegeropcional= 50

Nombre màxim de documents a retornar per pàgina. Per defecte 50, màxim 200

statusstringopcional

Estats pels quals filtrar, separats per comes (p. ex. pending_to_verify,done)

start_datestring<date-time>opcional

Filtrar documents creats a partir d'aquesta data (ISO 8601)

end_datestring<date-time>opcional

Filtrar documents creats fins a aquesta data (ISO 8601)

user_idstringopcional

Identificadors d'usuari separats per comes per filtrar per qui ha pujat el document

Petició

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())

Respostes

Resposta

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
}

Respostes exitoses

200Llistat de documents entrantsapplication/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

Respostes d'error

401API key no vàlida o no proporcionadaapplication/json
403Permisos insuficientsapplication/json
429Límit de sol·licituds exceditapplication/json