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.

Sets or updates the signing policy for a receipt type. The policy controls which issuers can mint receipts and which signing algorithms are permitted. If no policy is configured, all trusted issuers with any algorithm are permitted. To read the current policy, use GET /v1/receipt-types/{name}/signing-policy.

Path parameters

name
string
required
Receipt type name, optionally versioned: payment_receipt or payment_receipt@1.0.0.

Request

allow_any_issuer
boolean
required
If true, any trusted issuer meeting the min_trust_tier may mint receipts of this type.
allowed_issuer_ids
string[]
UUIDs of explicitly permitted issuers. Used when allow_any_issuer is false.
min_trust_tier
string
Minimum trust tier: any, self_issued, verified_org, or regulated_issuer. Defaults to any.
allowed_algs
string[]
Allowed signing algorithms (e.g. ["Ed25519"]). Empty array means all algorithms are permitted.

Response

receipt_type
string
The receipt type name.
allow_any_issuer
boolean
Whether any trusted issuer can mint.
allowed_issuer_ids
array
Whitelisted issuer UUIDs.
min_trust_tier
string
Minimum trust tier required.
allowed_algs
array
Permitted signing algorithms.
updated_at
string
ISO 8601 timestamp of last update.