Skip to main content

Update Shipment Carton Weights

PUT 

/api/spscommerce/fulfillments/:salesOrderFulfillment/packing/weights

Set the weight of a shipment's finalized cartons without reopening packing, so their SSCC numbers and printed labels stay. The 856 reports a total weight only when every carton is weighed in one unit; a trading partner with the ship_notice_weight document rule has its carton-level 856 held until then, and saving the missing weights sends a shipped order's held 856 unless another rule still holds it.

Required scope: integrations:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Body fields:

  • cartons (required, 1 to 500): the cartons to weigh; others keep their weight.
  • cartons.*.id (required, integer): a carton of this shipment.
  • cartons.*.weight (required, more than zero, up to 99999).
  • cartons.*.weight_unit (required): LB, KG, OZ or G.

When the 856 is built and not sent yet (ready, held while sync is paused, failed or rejected) it is rebuilt with the same shipment identification and purpose 00; when the rebuild is refused the weights are left as they were. Returns 422 with the reason when the 856 has been sent, when packing is not finalized, or when a carton is not part of the shipment. are_weights_editable in the packing response says whether weights can change.

Authentication: Requires Bearer token. Available for shipments of SPS Commerce EDI orders; other shipments return 404. Requires the sales_orders.update permission.

Shipments made by a receive-only 3PL: the cartons and labels of a shipment a receive-only 3PL made come from its ship notice, so this returns 422 with a message naming the warehouse. Reading the packing and downloading its labels still work.

Request​

Responses​

OK

Response Headers
    Content-Type