Prepare checkout
prepare_orderCreate a draft order from the cart + address + promo and return {checkout_url, draft_id, expires_at}. The human opens checkout_url — everything is pre-filled — reviews and pays. The agent never pays. Call get_order_preview and confirm with the human first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| error | No | Empty cart, missing address or no orderable items. | |
| total | No | ||
| issues | No | ||
| currency | No | ||
| draft_id | No | Draft order number. | |
| expires_at | No | ISO 8601 time when the draft expires (48 h). | |
| checkout_url | No | Pre-filled checkout link — send it to the human to review and pay. |