Import Boxes (CSV)
POST/api/amazon/:integrationInstance/draft-inbound-plans/:draft_inbound_plan/boxes/import
Import box contents for a packing group from a CSV file (multipart/form-data). Boxes are created or updated by box_number and item quantities are added per row.
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Form fields:
file(file, required) — CSV file (.csv/.txt), max 2MBamazon_fba_inbound_packing_group_id(integer, required) — must exist and must belong to this draft inbound plan (422 otherwise)
CSV columns (header row required; column names are case-insensitive):
box_number(required) — positive whole number; rows with the same box number go into the same box. A box number already used by a DIFFERENT packing group on this plan is rejectedsku(required) — matched case-insensitively against the plan items' product SKU or MSKU; must resolve to an item that is part of the selected packing groupquantity(required) — positive whole number; added to the box's quantity for that itemweight,length,width,height(optional) — numbers > 0; when present they update the box's measurements
The import is all-or-nothing: every row is validated first, and any invalid row aborts the entire import with row-numbered error messages (422). On success the response includes a summary (boxes_created, items_imported) plus the full refreshed box list for the plan.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 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 — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
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.