Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

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.

customer_name
string
required
write-only
customer_email
string<email>
required
write-only
items
object[]
required
write-only
payment_source
enum<string>
required
  • paystack - paystack
Available options:
paystack
customer_phone
string
write-only
delivery_address
string | null
delivery_method
string | null
manual_delivery_option
string<uuid> | null

Manual delivery option for this order

fulfilment_method
string
default:pickup
courier
any
rate
string
Maximum string length: 100
cart
string<uuid> | null

Cart this order came from (one cart, one order)

note
string

Optional note; stored on the order (not as a memo).

coupon_code
string
write-only
Maximum string length: 50

Response

Order created and payment initialised.

order
object
required
payment
object
required