Palbase Commerce & Promotions · API
/commerce/store-orders/{store_order_id}/fulfillmentsCreate shipment or fulfillment
Create shipment or fulfillment. A shipment that names items sends units a line has left to send — at least one, and no more than were ordered and not canceled or sent: otherwise 422 invalid_fulfillment_quantity. An order whose payment is still being asked for is not sent yet (409 order_being_placed: ask again). A shipment is made in one of the states a shipment begins in — pending, label_created, ready_for_pickup, shipped, in_transit, out_for_delivery, delivered — and not canceled, failed or returned_to_sender (422 invalid_fulfillment_status). It keeps the units it sends, line by line; one that names no items sends all that is left of the order, and with nothing left to send is 422 invalid_fulfillment_quantity. A bundle is sent by its line, its parts with it, each by its share of the bundles sent: a part named alone is 422 bundle_part.
Called by your server, with the project's secret key.
Path
store_order_idstring · requiredPath parameter store_order_id.curl -X POST "https://<your-ref>.palbase.studio/commerce/store-orders/<store_order_id>/fulfillments" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{}'Responses
201Create shipment or fulfillment
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation CreateFulfillment of commerce's contract.