Skip to main content

shop.checkout.createOrder(params)

Places an order. Call this when the customer confirms checkout.

Parameters

ParamTypeRequiredDescription
customer_namestringFull name
customer_emailstringEmail address
customer_phonestringPhone number
itemsCartItem[]At least one item required
shipping_addressobjectDelivery address
shipping_methodstringSelected shipping method
payment_methodstringDefault: 'cod'
notesstringOrder notes from customer
promo_code_idstringID from validatePromo result
discount_amountnumberDiscount value from validatePromo

CartItem type

Response

Example — Full checkout flow

Always snapshot the product name and price at checkout time into the items array. Do not rely on re-fetching prices at order creation — prices may change.