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.
integrations:writeGrant 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
- 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 Content
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.