Skip to main content

Import Cart from PO Document

POST 

/api/portal/cart/import-document

Upload a purchase-order document (PDF) to extract order lines by OCR. High-confidence, catalog-matched rows are added automatically; low-confidence or unmatched rows are returned as candidates requiring confirmation and are never added silently. Returns 422 when document import is not enabled or the document cannot be processed.

Buyer portal token

Called by a B2B portal buyer with the bearer token POST /api/portal/auth/login returns (or the buyer's feed key) — not with a staff Personal Access Token.

Request​

Responses​

OK

Response Headers
    Content-Type