Preview mobile checkout
checkout_previewPreview checkout fees and final order shape before committing, and obtain the one-time token required for placing the order. Does not submit the order; use after delivery options are selected.
Instructions
Run the read-side of the mobile checkout (sendOrder1 + delivery/payment-group reads) and return a one-time checkout token plus totals. Use after delivery_options/select_pickup_point to preview fees and the final order shape before committing, and to obtain the token that place_order requires. This never submits the order. Requires a non-empty cart. Requires a loaded mobile API access token — check account_status first; if none is loaded, run auth_start, have the user complete the browser sign-in, then auth_exchange with the returned code and state. Note: the mobile submission step (sendOrder3) currently returns HTTP 500 (docs/gap-analysis.md G1/G5) — the known-working submission path is web_place_order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selected_delivery_option_id | No | Delivery option id from `delivery_options` to preview that specific delivery method. Omit for the server default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | No | ||
| checkoutState | No | ||
| confirmationToken | Yes | ||
| deliveryPaymentGroups | No |