Fulfillments
Partial Pack line items within a sale
Sets pack quantity for line items for a given sale. This is an idempotent action.
Each line item may optionally include a source_breakdown, which specifies how a packing quantity should be sourced. When provided, both fields are required and must sum to the parent quantity. Source breakdown is not allowed when the quantity is negative (unpacking).
🔒 Requires: sales:write scope
post/fulfillments/{fulfillment_id}/pack
Path parameters
fulfillment_idstring required
The unique identifier of the fulfillment
Request body
Example request
{
"line_items": [
{
"quantity": 1,
"sale_line_item_id": "f3a8d2c1-9b7e-4f56-8a12-3e4d5c6b7a89"
}
],
"version": 5
}Response
Sale line item packed successfully.
Example response
{
"data": {
"id": "7428951063847291856",
"version": 3
}
}