Generate a Receipt
Generates a signed Receipt for a Trust Record: a compact proof of what was decided and executed, to hand to a person or another system.
Authorizations
Caller API key issued by scripts/generate-api-key.ts. Sent as Authorization: Bearer . Verified against a stored SHA-256 hash in constant time by packages/api/src/auth/StaticKeyAuthenticator.ts. Required on every route not listed as exempt in this document's top-level description. See /api-reference/authentication.
Body
Request payload for POST /receipt. businessTransactionId is required and must be a valid UUID; both are rejected with a 400, with distinct messages depending on which check fails.
Response
The signed Receipt.
Response returned by POST /receipt and GET /receipt/latest/{businessTransactionId}. A bare Receipt, no wrapper.