Report a purchase
report_purchaseReport a purchase you made after Sealgraf allowed it, so the receipt seals.
Call it AFTER paying — never before, and never for a purchase that did not happen. It moves no money. Send the preauth_id; add the decision_token when the check itself said allow (after an owner approval, leave it out — Sealgraf already holds it for you). note (what was bought) is required. Always send the amount actually charged (completed_amount_minor, in minor units, not above the allowed amount); add the merchant's order or receipt reference, and optionally a payment object describing how you paid (e.g. rail "link_stripe", virtual_last4, charged_amount_minor, currency, rail_ref {kind, value} such as the Link spend request id, provenance "browser_checkout"). The receipt records your report as reported by the agent. Repeating the call returns the same receipt. Only the connection or key that ran the check can report it. The account comes from your connection, never from call arguments: passing tenant_id, tenant, or tenantId refuses the call.
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": {
"preauth_id": "<preauth_id>",
"note": "<note>"
},
"name": "report_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| tenant | No | ||
| payment | No | ||
| tenantId | No | ||
| tenant_id | No | ||
| preauth_id | Yes | ||
| decision_token | No | ||
| completed_amount_minor | No | ||
| counterparty_receipt_ref | No |