Verify a receipt
verify_receiptCheck that a purchase receipt is genuine. Use it when you or your principal need proof of what was bought and paid. Pass the receipt object exactly as purchase or order_status returned it. Returns whether the receipt's signature is valid and whether it matches its entry in the store's hash-chained ledger. Read-only; nothing is changed or charged.
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": {
"receipt": "<receipt>"
},
"name": "verify_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receipt | Yes | The receipt object exactly as purchase or order_status returned it | |
| agent_id | No | Your agent id (or X-Agent-Id header) | |
| agent_key | No | Secret returned by register_agent (or X-Agent-Key header) | |
| principal_id | No | The principal you act for (or X-Principal-Id header) |