Preview order
get_order_previewFull order summary to show the human before ordering: line items, promo/discount, shipping, address, grand total. Prices are server-computed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| error | No | Present when the cart is empty. | |
| items | No | Re-priced order lines. | |
| total | No | ||
| issues | No | Lines that became unavailable, if any. | |
| currency | No | ||
| discount | No | ||
| shipping | No | ||
| subtotal | No | ||
| promo_code | No | ||
| ready_to_prepare | No | True when an address is set and all lines are orderable. | |
| shipping_address | No | Address set via set_shipping_address (null if not set). |