API Reference

Storefront checkout

Public storefront checkout for a published store slug.

POST/api/storefront/{slug}/checkout

Place a storefront order (guest or logged-in customer).

Auth: Public

Body

FieldTypeDescription
itemsrequiredarrayCart lines with price and quantity.
totalAmountrequirednumberClient-reported total (server recalculates with coupons).
customerInforequiredobjectemail (required), firstName, lastName, phone.
shippingAddressobjectname, phone, address fields.
paymentMethodstringe.g. cod, vodafone_cash, instapay.
couponCodestringOptional coupon.
attributionobjectOptional attribution payload merged into notes.

Email and phone are required. Optional storefront auth cookie can enrich the customer.