List Purchase Orders
GET/api/supplier-portal/purchase-orders
Paginated purchase orders sent to your supplier (drafts excluded).
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.
Queues: needs_response (awaiting your response on the current revision, sorted by acknowledgement deadline), in_progress (open, not awaiting a response), completed (closed or canceled), all (default). Every queue except needs_response lists the newest purchase order first when no sort is given.
queue_counts gives absolute tab counts and ignores every filter. portal_status is one of canceled, closed, needs_response, reconfirm, changes_requested, rejected, received, partially_received (part of the order has arrived), shipped, accepted.
Authentication: supplier-portal bearer token. Every lookup is scoped to the signed-in user's supplier; a purchase order of another supplier returns 404.
portal_status also includes partially_shipped (part of the order has shipped) and closed_short (the buyer closed it before everything shipped). Rejected orders count in the completed queue, not in_progress. A plain search matches the PO number, your SKUs and products — not the internal id (name id in search_columns to search it).
Request
Responses
- 200
- 401
- 403
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.