Download and check a receipt for a Wally action
Every action Wally commits for your organization comes with a receipt signed by Turtini. So does every commit made with your API key through POST /v1/run, which returns it in the response.
**What a receipt says**
- Which action ran, and which tool.
- A hash of what the action was given, never the details themselves.
- The account that authorized it, and your organization's id.
- How it was authorized: a person confirmed it on its card, or an API key ran it.
- A mandate field, empty for now.
- Where it sits in your organization's Wally activity ledger.
- When it ran, and whether it can be undone, can only be offset by another action, or cannot be taken back.
It holds ids and hashes only: no names, email addresses, notes or amounts.
**Download one**
Press **Receipt** on the action's card in Wally, or in the Receipt column under **Admin -> Wally Activity**. The file saves to your device, and Turtini then checks it and shows the result beside the link.
**What the result means**
- *Verified*: the signature is Turtini's, the ledger entry is unchanged, and a person confirmed the action.
- *Signed and in the ledger*: the same checks pass, but an API key ran the action, so no person confirmed it.
- *Signed, not in the ledger yet*: the ledger was busy when the action ran. Seal unchained rows under Wally Activity, then check again.
- *Does not check out*: the receipt or the ledger entry was changed after it was written. Contact support with the file.
**Checking without Turtini**
Anyone you give the file to can check the signature with only the receipt and Turtini's published receipt key (a JWKS at https://api.turtini.com/wally/activity-audit/receipt/keys). Receipts have their own signing key, separate from the one that signs Verified by Turtini credentials. Until that key is in place, a receipt checks as *Not signed*, and everything else on it still holds. The checker is one open file, src/lib/actionReceipt.ts. To prove what an action was given, share its details along with the salt stored on its ledger entry, and they will reproduce the hash.
**Limits**
A receipt shows where the action sat in a ledger that Turtini keeps. To detect a ledger rewritten from start to finish, save a checkpoint under Wally Activity and keep it somewhere Turtini cannot reach. A daily copy published outside Turtini is planned and not built yet.