palbaseDocs

Palbase Commerce & Promotions · API

POST/commerce/stores/{store_id}/orders/{store_order_id}/fulfillments

Create shipment or fulfillment for store order

Create shipment or fulfillment for store order. 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 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.
store_order_idstring · requiredPath parameter store_order_id.
curl
curl -X POST "https://<your-ref>.palbase.studio/commerce/stores/<store_id>/orders/<store_order_id>/fulfillments" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{}'

Responses

201Create shipment or fulfillment for store order

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation SellerCreateFulfillment of commerce's contract.