Templates
Templates define the reusable structure and visual identity of a pass. Every template belongs to one tenant.
Create a template
POST
/tenants/{tenant}/templatesBearer tokenJSON body
{
"name": "Coffee Club",
"type": "loyalty",
"issuer_name": "Ada Coffee",
"description": "Customer rewards card",
"colors": {
"background": "#25302B",
"foreground": "#FFFFFF"
},
"fields": [
{
"key": "points",
"label": "Points",
"value": "{{points}}"
}
]
}Supported types
loyaltyApple Store Card · Google LoyaltyeventApple Event Ticket · Google Event TicketcouponApple Coupon · Google OffergenericGeneric pass on both platformsField variables
Use double-brace placeholders such as {{points}} in field values. Replace them per customer through the variables object when issuing a pass.
List templates
GET
/tenants/{tenant}/templatesBearer tokenRead, update, or delete
GET
/tenants/{tenant}/templates/{template}PATCH
/tenants/{tenant}/templates/{template}DELETE
/tenants/{tenant}/templates/{template}Updates accept the same fields as creation. Only supplied fields are changed. Deletion returns 204. A template that already has issued passes cannot be deleted; deactivate it instead. Attempting deletion returns 409 Conflict.