PPassflowAPI Docs
v1Sign in →
API REFERENCE

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 token
JSON 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 Loyalty
eventApple Event Ticket · Google Event Ticket
couponApple Coupon · Google Offer
genericGeneric pass on both platforms

Field 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 token

Read, 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.