Passes
Issue a unique pass from a template, then use the returned URLs to distribute it to a customer.
Issue a pass
/tenants/{tenant}/templates/{template}/passesBearer token{
"platforms": ["apple", "google"],
"external_id": "customer-123",
"holder": {
"name": "Grace Hopper",
"email": "[email protected]"
},
"variables": {
"points": 120
},
"expires_at": "2027-12-31T23:59:59Z"
}The external_id is optional but must be unique inside the tenant. Use it to associate the pass with a customer record in your own system. Send an Idempotency-Key header when issuing or changing a pass; replaying the same request returns the original response.
Issuance response
{
"public_id": "a0d54d52-...",
"serial_number": "53dd0d8d-...",
"platforms": ["apple", "google"],
"status": "active",
"wallet_links": {
"apple": "https://stpasses.your-app-website.com/api/v1/public/passes/{publicId}/apple.pkpass",
"google": "https://stpasses.your-app-website.com/api/v1/public/passes/{publicId}/google"
}
}Use the returned public_id as the {pass} route parameter for all inspect, update, sync, and revoke operations.
Update and synchronize
/tenants/{tenant}/passes/{pass}passes:write{
"variables": {"points": 175},
"holder": {"name": "Grace Hopper"}
}Variables are merged into the existing pass and synchronization is queued for Apple and Google. Use POST /tenants/{tenant}/passes/{pass}/sync to retry manually.
Hosted installation page
For email, SMS, or QR distribution, share https://stpasses.your-app-website.com/p/{publicId}. It presents the correct wallet actions on a branded mobile-friendly page.
List and inspect
/tenants/{tenant}/passes/tenants/{tenant}/passes/{pass}Revoke
/tenants/{tenant}/passes/{pass}/revokeBearer tokenRevoked passes can no longer be downloaded or opened through their hosted page. The endpoint returns the updated record.