get_order_draft
Retrieve an order draft by ID to inspect its status, snapshot line items and totals, and the resulting order ID once consumed.
Instructions
Read one of your order drafts by id: its status (pending, consumed, expired or void), the frozen lines and totals from its snapshot, and the placed order's id once the draft is consumed. Requires an orders:read or orders:write key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"draft_id": "<draft_id>"
},
"name": "get_order_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | Yes | The draft id, from `create_order_draft`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | The draft's lines, from its snapshot. | |
| status | Yes | `pending`, `consumed`, `expired` or `void`. | |
| draft_id | Yes | The draft's id. | |
| order_id | Yes | The placed order's id, once the draft is consumed. | |
| total_yen | Yes | Grand total in yen. | |
| expires_at | Yes | When the approval window closes, RFC 3339. | |
| approval_url | Yes | The browser approval URL (create answer only). | |
| shipping_yen | Yes | Shipping fee in yen. | |
| subtotal_yen | Yes | Sum of line totals in yen. |