Upload Inventory Document

Sube uno o varios archivos de factura/albarán y los almacena en S3, creando
un documento por archivo en estado PROCESSING y encolando el OCR en background.

Formato multipart (retrocompatible):

  • file (singular, opcional) → 1 archivo (comportamiento antiguo).
  • files (plural, opcional) → N archivos para procesar en batch.
  • Ambos pueden llegar en la misma request; se combinan.

Respuesta:

  • documents: lista con todos los documentos creados.
  • Cuando sólo hay un archivo, los campos del primero se exponen también en
    el top-level (id, status, type, fileUrl, uploadedAt) por retrocompat.

Integration access is restricted to the credential's location. Pagination, monetary units and response envelopes are endpoint-specific; use the schema below. Do not assume that POST/PATCH requests are safe to retry after a timeout.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
Defaults to INVOICE
string
Defaults to INGREDIENTS
array | null
Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json