Skip to main content

Update Box

PATCH 

/api/amazon/:integrationInstance/draft-inbound-plans/:draft_inbound_plan/boxes/:box

Update a box's attributes and/or its packed items. Returns 404 if the box does not belong to the draft inbound plan.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Fields (all optional):

  • amazon_fba_carton_template_id (integer, nullable) — must exist in carton templates
  • length (numeric, nullable, > 0)
  • width (numeric, nullable, > 0)
  • height (numeric, nullable, > 0)
  • weight (numeric, nullable, > 0)
  • dimension_unit (string, IN or CM)
  • weight_unit (string, LB or KG)
  • items (array) — full-replace set of the box's items. When present, ALL existing box items are deleted and replaced with this set:
    • items.*.draft_amazon_fba_inbound_plan_item_id (integer, required) — must exist, must belong to this plan, and its MSKU must be part of the box's packing group (422 otherwise)
    • items.*.quantity (integer, required, min 1)
    • items.*.expiration_date (date, optional, nullable, must be today or later — "Expiration dates cannot be in the past.")

The authenticated user is recorded as packed_by_user_id on each created item.

Request

Responses

OK

Response Headers
    Content-Type