Report a payment you made
receipts.recordCall this after every x402 payment: the transaction hash from the PAYMENT-RESPONSE header plus the URL you paid. 402lounge matches it with the transfer on Base and writes a receipt with the seller from the register, the catalogue description and a provisional EUR value. Free.
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": {
"tx_hash": "<tx_hash>"
},
"name": "receipts.record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proof | No | An EIP-4361 message you got from a challenge, signed by your wallet | |
| amount | No | What you paid, in USDC, e.g. "0.002" | |
| client | No | Your client name, e.g. "claude-code 2.1" | |
| pay_to | No | The payTo address from the payment requirements | |
| supply | No | What you bought: gift_card for a gift card or other voucher (a Bitrefill order of a gift card, for example), service for everything else, an eSIM included. Leave it out when unsure, the seller's routes decide then | |
| network | No | base or base-sepolia. Default: the network 402lounge runs on, base | |
| tx_hash | Yes | The settlement transaction, 0x plus 64 hex characters | |
| description | No | What you bought, in your words. The seller's catalogue wins when it knows the URL. | |
| resource_url | No | The URL you paid for (the 402 resource) | |
| session_token | No | A lounge session token (lg_...) if you have one | |
| payment_response | No | The raw PAYMENT-RESPONSE header, if you still have it |