Place order
place_orderPlace the order from the current cart. Call review_order first so the customer can confirm the total. Set confirm:true to actually place the order — without it, this returns a preview only. Requires sign-in and a non-empty cart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to place the order. If false, returns a preview (same as review_order). | |
| addressId | No | Address ID to deliver to. Defaults to your first saved address. | |
| voucherCode | No | Voucher/promo code to apply. | |
| paymentTypeId | Yes | Payment method ID (from get_payment_methods). | |
| confirmActiveOrder | No | Set true to place even though you have an active order — only after the user acknowledges. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fees | No | ||
| note | No | ||
| _note | No | ||
| total | No | ||
| wallet | No | Wallet balance and can_pay flag. | |
| currency | No | ||
| delivery | No | ||
| discount | No | ||
| order_id | No | ||
| subtotal | No | ||
| addresses | No | Addresses eligible for this merchant's city. | |
| address_id | No | ||
| payment_url | No | Payment gateway URL for online methods. | |
| merchant_city | No | ||
| voucher_error | No | ||
| not_serviceable | No | ||
| payment_type_id | No | ||
| confirm_required | No | ||
| paid_from_wallet | No |