Get Purchase Order
GET/api/supplier-portal/purchase-orders/:purchaseOrder
One purchase order as last sent to you: header, ship-to (end customer for dropship orders), the lines of the latest sent revision with your supplier SKUs, your response history and a timeline (newest first, max 50). Respond against latest_snapshot.id. The first time anyone at your supplier opens it, the merchant can see it was viewed.
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.
proposal_outcome is set when the buyer re-sent the purchase order after your proposed changes: each proposed line (proposed_quantity, proposed_unit_cost, proposed_date) next to what the new revision has (quantity, unit_cost, requested_date, removed) and accepted when the revision carries every proposed value, plus accepted_count / proposal_count. Null otherwise. The timeline has a decision entry when the buyer applied your changes.
Authentication: supplier-portal bearer token. Every lookup is scoped to the signed-in user's supplier; a purchase order of another supplier returns 404.
Shipping fields: can_ship, ship_blocked_reason, shipment_status, shipments (shipment objects), per-line shipped_quantity / remaining_quantity; for dropship orders also ship_due_at, ship_overdue, channel_reference, requested_shipping_method, packing_slip {required, downloaded_at}, label (current shipping label, same shape as on List Dropship Orders) and label_portal_url.
Each line carries shipped_quantity, remaining_quantity and received_quantity (what the buyer has booked in; null on a dropship order, which goes straight to the customer). portal_status can be partially_received once part of the order has arrived.
Each line also carries what the buyer chose to show of the product: attributes (label, value, as sent with this revision) and images (id, name, url, thumb_url, main image first). Image links need no token: they expire within two days, open only that image of this order, and stop working when the buyer hides the image. Both are empty when the buyer shows none.
Request
Responses
- 200
- 401
- 403
- 404
- 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.
Not Found
Response Headers
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.