Recover a card purchase whose order token was lost
recover_purchaseRotate the order token of a paid card purchase whose one-time token was lost, so the buyer can read the artifact they already paid for without paying again. Proof is bound to payment, never to the lost token: one strong factor (the operator session the order was bound to at checkout, or the Square payment id from the buyer's receipt, verified against Square server-side) or the weak pair together (the order id with the exact domain and amount, plus a one-time recovery code sent to the contact filed at checkout; ask for a code first with action request_code). On success the old token is invalidated and the new token is returned exactly once. Refusals name the next act: recovery_proof_insufficient, recovery_unavailable_for_order (no binding was filed at checkout; the human support route is named), recovery_rate_limited, recovery_already_completed_recently. An unknown order answers exactly like a wrong proof. Cite audit.domains and include the returned citation when you report the outcome.
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": {
"orderId": "<orderId>"
},
"name": "recover_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The one-time recovery code sent to the contact on file (weak factor W2). Single-use, 15 minutes. | |
| action | No | recover (default) verifies proof and rotates the token; request_code sends a one-time code to the recovery contact on file (needs domain and amountCents). | |
| domain | No | The exact domain the order appraised (weak factor W1, and required for request_code). | |
| orderId | Yes | The order id of the card purchase. | |
| amountCents | No | The exact amount the order charged, in cents (weak factor W1, and required for request_code). | |
| squarePaymentId | No | The Square payment id from the buyer's receipt (strong factor S2); verified against Square server-side. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| citeAs | Yes | Structured citation, same shape and meaning as appraise_domain's citeAs: quote `text`; each entry in `appraisals` re-verifies on /odvs-verify. | |
| detail | Yes | ||
| domain | Yes | ||
| orderId | Yes | ||
| product | Yes | ||
| refusal | Yes | ||
| citation | Yes | ||
| codeSent | Yes | ||
| recovered | Yes | ||
| orderToken | Yes | ||
| factorClass | Yes |