buy_product
Buy a listing from anywhere on the network, settled in USDC on Base, without leaving this connector. Pass the seller_mcp_url and product_id from the listing (mcp_ref). For physical products include the full delivery block; for event passes include the attendee block; the call rejects with the missing fields listed if any are blank. Free passes are not bought here: use claim_pass. Returns an x402 payment requirement and an order_ref, then settle at the absolute /api/x402/purchase endpoint it returns (sign an EIP-2612 USDC permit and POST { order_ref, x_payment }, OR send a raw USDC transfer to payTo and POST { order_ref, payment_tx_hash }). Call get_shipping_quote first and pass buyer_country to include shipping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | ||
| attendee | No | Required for event passes. | |
| delivery | No | Required for physical products. Omit for digital / service. | |
| product_id | Yes | The listing id from discovery (mcp_ref.product_id). | |
| buyer_wallet | Yes | The buyer wallet that will settle in USDC on Base. | |
| buyer_country | No | ISO 3166-1 alpha-2 destination country. Required when the seller ships; folds the shipping quote into the total. | |
| selected_size | No | Variant size, for network-member products that have a size axis (e.g. S, M, L). Ignored by VIA-native listings. | |
| buyer_agent_id | No | ERC-8004 agent id of the Buying Agent acting on the buyer's behalf. | |
| selected_color | No | Variant colour, for network-member products that have a colour axis. Ignored by VIA-native listings. | |
| seller_mcp_url | Yes | mcp_ref.seller_mcp_url from a find_seller / get_seller_products result. |