Record purchase approval
record_approvalRecords a human's approval for an agent purchase on any payment rail and returns a receipt ID, public URL, and one-time edit token. Use it to document spending without holding or moving funds.
Instructions
Record a human's approval of a purchase on any payment rail. BotSupply does not hold or move the money. Returns receipt_id, a public receipt_url, and an edit_token shown once. No wallet or API key. Rate limited per IP. Same as POST /v1/receipts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | What the human approved, in plain text. | |
| agent_id | No | Optional id of the agent that will pay. Not a BotSupply API key. | |
| approver | Yes | Display name or handle of the human who approved the purchase. | |
| agent_name | No | Optional display name of the paying agent. | |
| merchant_url | No | Optional http or https URL for the merchant. | |
| payment_rail | Yes | How the agent will pay. Examples: stripe_link, card, x402, botsupply_wallet. | |
| merchant_name | Yes | Merchant or seller name. | |
| approver_contact | No | Optional email or phone. Stored only as a hash and never shown on the receipt. | |
| price_cap_amount | Yes | Maximum amount approved. A positive decimal, for example 25 or "19.95". | |
| price_cap_currency | Yes | Currency code, 3 to 10 letters, for example USD or USDC. | |
| external_payment_ref | No | Optional id from the payment rail. BotSupply does not look it up. |