Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt

Use this file to discover all available pages before exploring further.

Revokes a receipt event. Sets the status to revoked and records a RECEIPT_REVOKE event in the transparency log. Only active receipts can be revoked.

Path parameters

id
string
required
UUID of the receipt to revoke.

Headers

Idempotency-Key
string
required
UUID for idempotent revocation. Prevents duplicate revocation events.

Response

receipt_id
string
UUID of the revoked receipt.
status
string
revoked
revoked_at
string
ISO 8601 timestamp of revocation.

Webhook event

A receipt.revoked webhook event is delivered after successful revocation:
{
  "event_type": "receipt.revoked",
  "receipt_id": "<uuid>",
  "receipt_type": "payment_receipt",
  "tenant_id": "<uuid>",
  "revoked_at": "<RFC3339>"
}
Revocation is permanent and recorded in the transparency log.