webaz_order_draft
Buyer ORDER DRAFT (scope draft_order; OAuth grant). create: ONE quote_token → frozen snapshot (single-use), or items → one draft per checkout group (one fee/approval/payment). SNAPSHOT ONLY: no order/charge/stock; drift at approval hard-fails. 24h expiry. Zero PII. Next: webaz_submit_order_request; human approval creates the order.
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": {
"action": "<action>"
},
"name": "webaz_order_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | [{product_id,variant_id?,quantity}] ≤10, instead of quote_token | |
| action | Yes | create (quote_token or items); cancel/get (draft_id); list | |
| draft_id | No | cancel/get: the odr_ or ogd_ id | |
| quote_token | No | create: the qtk_ token from webaz_quote_order (single-use) | |
| idempotency_key | No | create with quote_token (optional): [A-Za-z0-9_-]{1,64}; same key replays the draft | |
| digital_delivery | No | Game currency, per the quote's buyer_fields + listing_combo. Fixed: listing fields at top level; unit price: listings[] | |
| direct_receive_account_id | No | payment_options account (seller has several) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| count | No | ||
| error | No | present ONLY on failure (with error_code + structured recovery fields) | |
| price | No | product price: amount_minor / currency USDC / display (display line only; fx table gives display-only local conversions) | |
| drafts | No | list form: compact draft projections | |
| status | No | v2 status {code,label,label_en}; code canonical (never from label) | |
| product | No | ||
| draft_id | No | ||
| quantity | No | positive integer, or null when invalid (see quantity_valid); display-only (amount=price.amount_minor) | |
| rail_note | No | ||
| error_code | No | ||
| expires_at | No | ||
| destination | No | ||
| disclosures | No | ||
| payment_rail | No | ||
| fiat_estimate | No | display-only ≈ local fiat (see quote schema) | |
| quantity_error | No | invalid-quantity code: missing|empty|zero|negative|not_integer|overflow|non_numeric | |
| quantity_valid | No | false only when quantity is invalid data (card shows 数量数据异常, buttons disabled) | |
| schema_version | No | ||
| available_actions | No |