Upload Shipment Documents
POST/api/supplier-portal/shipments/:shipment/documents
Adds up to 5 documents to the shipment. multipart/form-data: documents[i][file] (PDF, PNG, JPG, Word, Excel or CSV, 10 MB each) and documents[i][document_type] (packing_list, commercial_invoice, bill_of_lading, certificate, other), optional documents[i][description] (255 characters). A shipment holds up to 50 documents per supplier; a canceled shipment takes none. The buyer is alerted. Throttled 30/min.
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.
Authentication: supplier-portal bearer token. Every lookup is scoped to the signed-in user's supplier; a shipment or file of another supplier, and any file the buyer added, returns 404.
Request
Responses
- 201
- 401
- 403
- 404
- 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.
Not Found
Response Headers
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.