Palbase Commerce & Promotions · API
/commerce/stores/{store_id}/fulfillments/{fulfillment_id}Update fulfillment status (e.g. delivered)
Update fulfillment status (e.g. delivered). A shipment moves on along its way — pending, label_created, ready_for_pickup, shipped, in_transit, out_for_delivery, delivered — to any state further on; one that failed or came back to its sender (returned_to_sender) is delivered at last, sent on again, or canceled. Delivered and canceled are where a shipment ends: another move is 409 invalid_fulfillment_transition, and a state not in the list 422 invalid_fulfillment_status. A shipment not delivered may be canceled: its units are the order's again, to send or to cancel with their money — unless a return asks them back (409 fulfillment_units_returned), or the shipment was made before shipments kept their units (409 fulfillment_units_unknown). The store's share of the order is let go its days after the order is delivered: the store's escrow_hold_days, else the project's default_escrow_hold_days, 7 when never set.
Called by a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.
Path
store_idstring · requiredPath parameter store_id.fulfillment_idstring · requiredPath parameter fulfillment_id.curl -X PATCH "https://<your-ref>.palbase.studio/commerce/stores/<store_id>/fulfillments/<fulfillment_id>" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{}'Responses
200Update fulfillment status (e.g. delivered)
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation SellerUpdateFulfillment of commerce's contract.