buy_item
Purchase digital or physical items from a storefront with USDC. Digital goods return a signed download URL and license; physical goods return a signed order confirmation and fulfillment record.
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.
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) |