Create an order
Creates an order and initialises a Paystack payment session.
The response includes:
order— a summary of the created order.payment.payment_link— the Paystack checkout URL to redirect the customer to.
Delivery modes (fulfilment_method):
| Value | Meaning |
|---|---|
pickup | Customer collects from the store |
delivery | Manual or ShipBubble delivery |
For manual delivery, pass manual_delivery_option (UID of a StoreDeliveryOptions record from GET /delivery-options).
For ShipBubble delivery, pass courier and rate from POST /shipping-quotes.
All item variants must belong to the authenticated store.
Authorizations
Authenticate using a Leyyow merchant API key.
Include the key in every request as a Bearer token:
Keys are scoped to a single store. All endpoints return data belonging to the store that issued the key — there is no X-Store-Id override.
Keys are created in the Leyyow merchant dashboard under Settings → Developer → API Keys.
Body
Extends the storefront order serializer for the public API.
The only addition is store-scoped variant validation: every item variant must belong to the authenticated store. All other logic (pricing, stock, delivery, coupon, Paystack init) is inherited unchanged.
paystack- paystack
paystack Manual delivery option for this order
100Cart this order came from (one cart, one order)
Optional note; stored on the order (not as a memo).
50