Skip to main content

List Inbox Documents

GET 

/api/document-inbox

Return a unified, paginated, descending-by-created_at list combining customer PO and supplier invoice OCR extractions. Each item is normalized to the same shape so the frontend can render a single mixed-type table.

Example item:

{
"id": 42,
"type": "customer_po",
"status": "pending_review",
"source": "email",
"source_email_from": "orders@acme.com",
"source_email_subject": "PO-9988",
"customer_name": "Acme Co.",
"supplier_name": null,
"confirmed_record": null,
"error_message": null,
"created_at": "2026-04-25T10:30:00.000000Z"
}

When status is 'confirmed', confirmed_record is populated with { id, type, number } of the created sales order or purchase invoice.

Request

Responses

Successful response