Skip to main content
GET
/
v1
/
receipt-types
/
{name}
Get receipt type
curl --request GET \
  --url https://api.truthlocks.com/v1/receipt-types/{name} \
  --header 'X-API-Key: <api-key>'
{
  "name": "<string>",
  "display_name": "<string>",
  "schema": {},
  "signing_policy": {}
}
Retrieves a single receipt type by name. Returns the full type definition including the JSON Schema used to validate the payload field when minting receipts of this type. To pin a specific version, append @<version> to the name — for example, payment_receipt@1.0.0.

Path parameters

name
string
required
Receipt type name. Examples: payment_receipt, security_event_receipt, custom_receipt. Append @<version> to pin a specific schema version (e.g. payment_receipt@1.0.0).

Responses

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

name
string
required

Receipt type name

Response

Receipt type details

name
string
display_name
string
schema
object
signing_policy
object