buy_item
Purchases digital or physical storefront items by SKU, paying in USDC via x402 and returning the merchant artifact plus payment receipt.
Instructions
Buy an item from a storefront. Digital goods return a signed download URL and license; physical goods return a signed order confirmation and fulfillment record. Costs per item per call, paid in USDC over x402 to x402-storefront. Returns the merchant's artifact and the payment receipt.
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": {
"sku": "<sku>"
},
"name": "buy_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | Item sku from browse_catalog | |
| name | No | Shipping name (physical items) | |
| rail | No | Payment rail for this call. Overrides the configured default (auto). auto = whichever rail this agent holds a key for. | |
| address | No | Shipping address (physical items) | |
| country | No | ISO country code (physical items) |