webaz_buy
One-call buy once the user chose the product, option and quantity and agreed the price (replaces quote → draft → submit; same checks). Within the owner's small-order auto-approval the order is placed now; pay_with "x402" also returns x402_payment_required: wallet signs it → webaz_pay_order. Otherwise returns approval_url. Price above max_total_usdc → nothing ordered. Several ways to pay, no pay_with → returns them for the user to choose. Direct Pay only. idempotency_key: submit uses it as is, the draft step "-d".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | ||
| pay_with | No | "x402" or a returned account_id | |
| quantity | No | ||
| product_id | Yes | ||
| variant_id | No | ||
| max_total_usdc | Yes | ||
| idempotency_key | No | ||
| digital_delivery | No |