Upload Tracking File
POST/api/supplier-portal/shipments/bulk
Validates a CSV/XLSX (max 5 MB, 2000 rows) and returns a preview; nothing is shipped yet. Required columns: po_number, tracking_number, carrier. Optional: ship_date (Y-m-d or MM/DD/YYYY), sku (your SKU or the buyer's), quantity (needs sku). Rows with the same PO and tracking number form one shipment; rows without sku ship everything remaining.
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.
Per-row errors: PO not found (also for another supplier's PO), PO was canceled, Already fully shipped, SKU not on this PO, Quantity exceeds remaining (N left), bad or future ship date, missing tracking or carrier.
Authentication: supplier-portal bearer token. Every lookup is scoped to the signed-in user's supplier; a record of another supplier returns 404.
A leading apostrophe that the errors CSV adds in front of formula characters (=, +, -, @) is stripped when that CSV is uploaded again.
Request
Responses
- 201
- 401
- 403
- 422
- 429
Created
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.
Unprocessable Entity
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.