PPassflowAPI Docs
v1Sign in →
API REFERENCE

Passes

Issue a unique pass from a template, then use the returned URLs to distribute it to a customer.

Issue a pass

POST/tenants/{tenant}/templates/{template}/passesBearer token
JSON body
{
  "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

201 Created
{
  "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

PATCH/tenants/{tenant}/passes/{pass}passes:write
JSON body
{
  "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

GET/tenants/{tenant}/passes
GET/tenants/{tenant}/passes/{pass}

Revoke

POST/tenants/{tenant}/passes/{pass}/revokeBearer token

Revoked passes can no longer be downloaded or opened through their hosted page. The endpoint returns the updated record.