Skip to content
REST API Reference & SDKs

Passinstance Developer Documentation

Build high-volume Apple Wallet (.pkpass) and Google Wallet integrations. Issue, update, scan, and broadcast real-time lockscreen notifications via production-grade REST APIs.

Get API Keys
5-Minute QuickstartGet API Key

Create your first Wallet pass in under 5 minutes

Issue, cryptographically sign, and distribute Apple Wallet (.pkpass) & Google Wallet passes with one simple REST request.

POST/api/v1/passes
curl --max-time 30 -X POST https://api.passinstance.com/api/v1/passes \
  -H "X-API-Key: $PASSINSTANCE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d" \
  -d '{
    "templateId": "tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b",
    "serialNumber": "MEMBER-2024-8891",
    "externalId": "CRM-CUST-99201",
    "name": "Acme VIP Customer Pass",
    "attributes": {
      "guestName": "Jane Doe",
      "tier": "Gold VIP",
      "points": "450"
    },
    "storedValue": "50.00",
    "organizationName": "Acme Rewards",
    "backgroundColor": "#1b2d3c",
    "foregroundColor": "#ffffff",
    "labelColor": "#7db4f0",
    "barcode": {
      "value": "PI-8891-JD-VIP",
      "alternativeText": "8891-VIP"
    },
    "images": {
      "icon": "https://assets.passinstance.com/media/icon.png",
      "logo": "https://assets.passinstance.com/media/logo.png",
      "strip": "https://assets.passinstance.com/media/strip.png"
    },
    "relevantDate": "2026-08-25T18:00:00.000Z"
  }'
Overview

Introduction — API Overview

The Passinstance API enables developers to dynamically issue, distribute, update, and validate digital passes for Apple Wallet (iOS) and Google Wallet (Android). All API requests must be made over HTTPS and return a standardized API response envelope with machine-readable status codes.

Production Base URL
Active
https://api.passinstance.com/api/v1
Staging Sandbox Base URL
https://staging-api.passinstance.com/api/v1
Request & Response Formatapplication/json (UTF-8) standard response envelope
Backend Server TimezoneEurope/Berlin (ISO 8601 timestamps)
Security

Authentication — API Keys & Authorization

Use X-API-Key: <key> or Authorization: ApiKey <key> for API-key-enabled endpoints. Bearer is reserved for access JWTs. Keep credentials on the server.

Production Keys (Live)
Authorization: ApiKey pi_live_xxxxxxxxxxxxxxxxxxxxxxxx
Sandbox Keys (Test)
Authorization: ApiKey pi_test_xxxxxxxxxxxxxxxxxxxxxxxx
Hardware Scanner Keys
x-scanner-key: scan_key_77a8b9c0d1e2f3a4...
Security Invariant:Server-to-server only. Never embed secret keys in frontend bundles.
Quick Start

Quick Start — First API Request

Create your first usable pass in under 5 minutes. Set your API key header, call POST /api/v1/passes with a valid templateId, and deliver the returned passAccessUrl to your end-user.

Step 1: Set Key
export PASSINSTANCE_API_KEY="pi_test_..."
Step 2: Issue Pass

POST /api/v1/passes with templateId and serialNumber

Step 3: Get URL

Extract response.data.passAccessUrl from 201 Created payload

Step 4: Distribute

Deliver URL via SMS/Email; user taps "Add to Apple/Google Wallet"

Resources

Postman Collection — Import & Test API Requests

Import the Passinstance OpenAPI 3.0 specification (/api/docs/openapi.json) directly into Postman, Insomnia, or Bruno to test endpoints, inspect schemas, and generate typed HTTP clients.

Open OpenAPI 3.0 JSON Spec
1. OpenAPI 3.0 Spec URL
https://passinstance.com/api/docs/openapi.json
2. Import into Postman / Bruno

Click Import in Postman, Insomnia, or Bruno and paste /api/docs/openapi.json to load all routes

3. Configure Environment

Set baseUrl = https://api.passinstance.com and PASSINSTANCE_API_KEY = pi_test_...

4. Verify Connectivity

Run GET /api/v1/templates with X-API-Key: to test your workspace

Operations

FAQ — Frequently Asked Questions & Error Handling

Every response uses the standard API response envelope. Fix 4xx before retrying; back off on 5xx and 429 using Retry-After.

200 OK / 201 CreatedSuccess
{
  "success": true,
  "data": { ... },
  "errors": [],
  "statusCode": 200
}
Core Concepts

Architecture & Pass Lifecycle

Pass management follows a 6-stage lifecycle: 1. Template (visual blueprint) → 2. Pass (cryptographically signed record) → 3. Distribution (secure passAccessUrl) → 4. Wallet Registration (device enrolls with APNs / Google Push) → 5. Live Updates (real-time lockscreen notifications) → 6. Scan & Redemption Telemetry (barcode validation & webhook stream).

1. TemplatePOST /api/v1/templates

Master layout, barcode type, branding colors, and schema fields

Platform Guides

Apple Wallet vs. Google Wallet Matrix

Passinstance automatically signs .pkpass bundles for iOS and generates signed JWT objects for Google Wallet. Assets, barcodes, and lockscreen triggers adapt seamlessly across both operating systems.

Apple WalletiOS · .pkpass
Apple Wallet Signing

Cryptographic PKCS#7 signature using Apple Pass Type ID certificate

Google WalletAndroid · JWT
Google Wallet Issuer

Google Cloud Service Account REST JWT payload

Cross-platform parity (single REST call)iOS + Android
Hero / Strip ArtworkApple: 375×123 px (3:1) | Google: 1032×336 px (approx 3:1)
Universal BarcodesQR Code and PDF417 supported natively on both mobile platforms
Core Concepts

Pass Mechanics & Loyalty Solutions Engine

Attach stateful business mechanics to templates across 8 turnkey solutions (Loyalty, Stamp Cards, Coupons, Gift/Prepaid Cards, Event Tickets, Memberships, Employee IDs, VIP Cards). Rules execute atomically on scan or API call.

LOYALTY_PROGRAM

LOYALTY_PROGRAM & Tiers

Points accrual per scan (defaultChangeValue) with automated tier upgrade progression

STAMP_CARD_ADD / STAMP_CARD_DEDUCT

STAMP_CARD_ADD / DEDUCT

Tracks stamp positions (0..maximumValue) with onCap ('noop' | 'reset') and rewardClaimBehavior

PREPAID_CARD

PREPAID_CARD Ledger

ISO 4217 minor-unit prepaid ledger accounting with disallowNegativeBalance enforcement

VALID_ONCE_PER_DAY / RENEW_EXPIRATION

VALID_ONCE_PER_DAY & RENEW

Timezone-aware daily check-in limits and automatic expirationDate extension on scan

Template Management

11 endpoints
GEThttps://api.passinstance.com/api/v1/templatesAPI Key
Template Management

List Templates

Retrieve a paginated list of pass templates belonging to the authenticated workspace customer context.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Query Parameters7 optional
Response Body Structure (JSON)6 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataarray of objectsSchema
Required

Template summary records matching your filters.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

paginationobject
Required

Pagination metadata.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/templates/{id}API Key
Template Management

Get Template Details

Retrieve full details of a pass template including colors, barcode settings, layout fields, and mechanic rules.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idUUID
Required

Unique template identifier.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Base and draft template revision pair.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/templates/{id}/fieldsAPI Key
Template Management

Get Template Fields

Retrieve the computed dynamic field definitions and custom property keys that can be populated per pass for a given template.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Unique template UUID.

Example: 8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Query Parameters1 optional
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Field definitions retrieved successfully
errorsarray
Required

List of error messages (empty array on success).

dataarray of objects
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

GEThttps://api.passinstance.com/api/v1/templates/{id}/attributesAPI Key
Template Management

Get Template Attributes

Retrieve the attribute definitions (keys, types, required flags, regex validations, and dropdown options) expected when issuing passes for a template.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Resource UUID.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataarray of objects
Required

Template attribute schema definitions.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/templatesAPI Key
Template Management

Create Template

Design and register a new reusable pass template with visual branding, barcode type, NFC configuration, and layout fields.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Template creation request payload defining pass kind, branding colors, fields, and barcode settings.

Request Body6 required • 19 optional
namestring
Required

Template display name.

Example: VIP Loyalty Card Template
descriptionstring
Required

Detailed description of the pass purpose and tier perks.

Example: Exclusive loyalty and rewards card for VIP customers
organizationNamestring
Required

Organization / brand name printed on the card header.

Example: Acme Rewards
kindstring (enum)
Required

storeCard, coupon, eventTicket, generic, boardingPass, or membership.

Allowed values:boardingPassstoreCardcoupongenericposterGenericeventTicket
Example: storeCard
statusstring (enum)
Required

DRAFT, PUBLISHED, ARCHIVED, DEPRECATED, or UNDER_REVIEW.

Allowed values:DRAFTPUBLISHEDARCHIVEDDEPRECATEDUNDER_REVIEWDELETING
Example: PUBLISHED
preferredStyleSchemestring (enum)
Required

DARK, posterGeneric, posterEventTicket, bannerEventTicket, or semanticBoardingPass.

Allowed values:posterGenericposterEventTicketbannerEventTicketsemanticBoardingPassDARK
Example: DARK
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject
Required

Newly created template identifier.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

PUThttps://api.passinstance.com/api/v1/templates/{id}API Key
Template Management

Update Template Draft

Save edits to the template draft revision (creating a draft if one does not exist) without modifying live passes until published. Send If-Match for optimistic version locking.

Headers1 required • 1 optional
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Base template UUID whose draft revision will be updated.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b

Partial UpdateTemplateDto payload (any subset of CreateTemplateDto properties, including colors, fields, barcodes, images, mechanics, locations, beacons, nfc, expiration, and attributes).

Request Body39 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject
Required

Draft revision update metadata.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

PATCHhttps://api.passinstance.com/api/v1/templates/{id}API Key
Template Management

Patch Base Template

Apply a partial update directly to the production (base) template record without staging changes in a separate draft revision.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Base template UUID to patch directly.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b

Partial PatchTemplateDto payload applied immediately to the production base template.

Request Body39 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Patched production base template object.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/templates/{id}/publishAPI Key
Template Management

Publish Template Draft

Promote a template draft revision (rowKind: DRAFT) to PUBLISHED, mark changesToPush: true, and enqueue background APNs and Google Wallet updates to all active passes.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Template UUID to publish.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b

Request payload controlling immediate vs. scheduled publication and wallet push propagation.

Request Body4 optional
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

descriptionstring
Required

Human-readable status description.

Example: Template published successfully
errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

POSThttps://api.passinstance.com/api/v1/templates/{id}/copyAPI Key
Template Management

Duplicate Template

Create an unpublished draft copy of an existing pass template within your workspace, optionally overriding the template name, description, or currency code.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Source template UUID to duplicate.

Example: 8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b

Optional name, description, and ISO 4217 currency override for the duplicated template.

Request Body1 required • 2 optional
namestring
Required

Name for the new template copy.

Example: VIP Loyalty Card (2027 Edition)
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Template successfully copied!
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 201

Response Status Codes

DELETEhttps://api.passinstance.com/api/v1/templates/{id}API Key
Template Management

Delete Template

Initiate asynchronous template deletion and wallet pass revocation across registered devices.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Template UUID to delete.

Example: 8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Template deletion initiated. Wallet revocation and pass cleanup in progress.
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 202

Response Status Codes

GEThttps://api.passinstance.com/api/v1/templates/{id}/deletion-statusAPI Key
Template Management

Get Template Deletion Status

Poll asynchronous template deletion progress (wallet revocation, pass soft-deletion, and retention phase) after calling DELETE /api/v1/templates/{id}.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Resource UUID.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject
Required

Deletion lifecycle progress snapshot.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

Template Notifications

3 endpoints
POSThttps://api.passinstance.com/api/v1/push-notifications/templates/{id}/sendAPI Key
Template Notifications

Schedule Push Notification

Broadcast an immediate lock-screen push notification across all active Apple Wallet and Google Wallet passes issued under a template.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Template UUID whose registered devices will receive the broadcast.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b

Request payload containing pushNotificationText (max 85 chars) and optional header text.

Request Body1 required • 1 optional
pushNotificationTextstring
Required

Lock-screen notification message broadcast to active template passes (max 85 chars; supports placeholders).

Example: Flash Sale starts now! Show your VIP pass at checkout for 2x points.
Response Body Structure (JSON)1 required
(empty body)void (HTTP 204)
Required

Immediate template push notification broadcast queued.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/templates/{id}/notificationAPI Key
Template Notifications

List Scheduled Notifications

List all pending scheduled push notifications and previously executed broadcast tasks for a pass template.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Template UUID.

Example: 8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Template notifications retrieved successfully
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

DELETEhttps://api.passinstance.com/api/v1/templates/notification/{notificationId}API Key
Template Notifications

Cancel Scheduled Notification

Cancel and delete a scheduled template push notification before it has been dispatched to passholders.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
notificationIdstring (UUID)
Required

Scheduled notification UUID returned when listing or scheduling notifications.

Example: f1e2d3c4-b5a6-4987-8765-43210fedcba9
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Notification deleted successfully
datanullnullable
Required

Primary resource or operation result payload.

errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

Template Integrations

2 endpoints
POSThttps://api.passinstance.com/api/v1/integration-framework/embed-widgetsAPI Key
Template Integrations

Create Embed Integration (iFrame)

Create an embedded pass download widget (iFrame) bound to a template with strict origin allowlisting.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Configuration for the embedded download widget including templateId and allowed host domains.

Request Body3 required • 1 optional
namestring
Required

Display name for the embed widget integration.

Example: Checkout Loyalty Embed Widget
templateIdstring (UUID)
Required

Target pass template UUID.

Example: 8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
allowedDomainsstring[]
Required

List of allowed origins permitted to embed the widget.

Example: ["shop.yourbrand.com", "app.yourbrand.com"]
Response Body Structure (JSON)4 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 201

Response Status Codes

Pass Management

13 endpoints
POSThttps://api.passinstance.com/api/v1/passesAPI Key
Pass Management

Create Pass

Create and issue a new Apple Wallet (.pkpass) & Google Wallet pass from a template with customer fields, barcode, and dynamic values.

Headers2 required • 1 optional
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_xxxxxxxxxxxxxxxxxxxxxxxx
Content-Typestring
Required

Must be application/json.

Example: application/json
Query Parameters2 optional

Request payload containing template ID, unique serial number, customer field values, and optional barcode configuration.

Request Body1 required • 23 optional
templateIdstring (UUID)UUID v4
Required

Template ID for the pass.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Newly created Pass object with passAccessUrl, downloadURL, and optional passSource.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/passes/upsert-by-external-idAPI Key
Pass Management

Create or Update Pass by External ID

Idempotently create or update a pass keyed on (customerId, externalId) for seamless CRM, POS, and e-commerce synchronization.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Request payload containing templateId, externalId, and dynamic pass attributes.

Request Body2 required • 3 optional
templateIdstring (UUID)
Required

Target template UUID.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
externalIdstring
Required

Stable external CRM/POS identifier unique within your workspace.

Example: CRM-CUST-99201
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Created or updated pass record with action indicator.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/batch-pass-operations/createAPI Key
Pass Management

Batch Create Passes

Issue multiple wallet passes in an atomic batch operation with validation and failure reporting.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Request payload containing an array of pass configurations.

Request Body1 required
passesarray of objects1 – 1000 itemsSchema
Required

Array of pass items with templateId, barcodeValue, and additionalData.

Example: [ { "templateId": "tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b", "barcodeValue": "BULK-001", "additionalData": { "name": "Member #001" } }, { "templateId": "tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b", "barcodeValue": "BULK-002", "additionalData": { "name": "Member #002" } } ]
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject
Required

Batch pass issuance summary.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/passesAPI Key
Pass Management

List Passes by Template

Retrieve a paginated list of passes for the authenticated customer workspace with search and status filters.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Query Parameters15 optional
Response Body Structure (JSON)6 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataarray of objectsSchema
Required

Paginated array of Pass resources.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

paginationobject
Required

Pagination metadata.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/passes/{id}API Key
Pass Management

Get Pass Details

Get full details, installation status, and download links for a single pass by its unique ID.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

The unique UUID identifier of the pass.

Example: pass_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Complete Pass resource.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/passes/by-external-id/{externalId}API Key
Pass Management

Get Pass by External ID

Retrieve an existing pass using your own external CRM or order identifier without needing to store the internal Passinstance UUID.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
externalIdstringmax 255 chars
Required

Unique external business identifier previously assigned to the pass.

Example: crm-member-99412
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Complete pass resource matched by externalId.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

PATCHhttps://api.passinstance.com/api/v1/passes/{id}API Key
Pass Management

Update Pass

Update pass dynamic fields, colors, or barcode and automatically broadcast APNs and Google Wallet push notifications to installed devices.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

The unique UUID of the pass to update.

Example: pass_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d

Request payload fields to modify on the pass. Installed devices will receive instant background updates.

Request Body17 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Updated Pass resource.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

PUThttps://api.passinstance.com/api/v1/passes/{id}API Key
Pass Management

Update Pass (PUT)

Update an existing pass via REST PUT using UpdatePassDto (including attributes, storedValue, barcode, colors, images, boardingPass, locations, and push notification options).

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Resource UUID.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d

UpdatePassDto payload applied to the target pass and synchronized to registered devices.

Request Body20 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Updated Pass resource.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/passes/voiding/{id}/voidAPI Key
Pass Management

Void Pass

Mark a pass as voided or reactivated across Apple Wallet and Google Wallet with instant push propagation.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idUUID
Required

Unique pass instance ID to void or reactivate.

Example: 9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d

Request payload controlling voided state, audit reason, and wallet propagation options.

Request Body1 required • 1 optional
voidedboolean
Required

Set to true to void the pass, or false to reactivate it.

Example: true
Response Body Structure (JSON)1 required
(empty body)void (HTTP 204)
Required

Returns HTTP 204 No Content after updating the pass voided flag and queuing wallet sync.

Response Status Codes

DELETEhttps://api.passinstance.com/api/v1/passes/{id}API Key
Pass Management

Delete Pass

Delete a pass record by UUID and revoke its active wallet installations.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Unique pass UUID to delete.

Example: b1d972dc-eccf-4f87-ab21-25939d9213d8
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Pass deleted successfully
datanullnullable
Required

Primary resource or operation result payload.

errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

POSThttps://api.passinstance.com/api/v1/passes/{id}/useAPI Key
Pass Management

Update Pass Loyalty or Balance

Execute an atomic pass mechanic operation: INCREMENT (stamp card), DECREMENT, DEBIT (prepaid balance), CREDIT, or VALIDATE (single-use coupon).

Headers3 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_xxxxxxxxxxxxxxxxxxxxxxxx
Content-Typestring
Required

Must be application/json.

Example: application/json
Idempotency-Keystring
Required

Mandatory UUID to ensure atomic execution and prevent duplicate balance or stamp deductions.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
Path Parameters1 required
idstring (UUID)
Required

The unique UUID of the pass to operate upon.

Example: pass_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d

Request payload containing the mechanic action, optional decimal amount, operator ID, and location.

Request Body1 required • 4 optional
actionstring (enum)
Required

INCREMENT, DECREMENT, DEBIT, CREDIT, VALIDATE, or NOOP.

Allowed values:INCREMENTDECREMENTSET
Example: INCREMENT
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject
Required

Pass mechanic ledger mutation result.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/passes/{id}/adjust-valueAPI Key
Pass Management

Adjust Pass Stored Value

Manually credit (add) or debit (deduct) stored value or reward points on a pass with transaction audit logging.

Headers3 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_xxxxxxxxxxxxxxxxxxxxxxxx
Content-Typestring
Required

Must be application/json.

Example: application/json
Idempotency-Keystring
Required

Mandatory UUID to ensure atomic adjustment and prevent double-crediting.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
Path Parameters1 required
idUUID
Required

Target pass instance ID.

Example: 9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d

Adjustment payload specifying CREDIT or DEBIT operation, amount, and reason.

Request Body2 required • 2 optional
actionstring
Required

Transaction action: 'CREDIT' to add value, or 'DEBIT' to deduct value.

Example: CREDIT
amountstring
Required

Numeric amount to credit or debit as a string.

Example: 25.00
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

descriptionstring
Required

Human-readable status description.

Example: Value adjusted successfully
errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

POSThttps://api.passinstance.com/api/v1/mechanics/redeemAPI Key
Pass Management

Redeem Pass Reward

Redeem an earned loyalty or stamp card reward on a pass using its configured pass mechanic with idempotency protection.

Headers2 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_xxxxxxxxxxxxxxxxxxxxxxxx
Idempotency-Keystring (UUID)
Required

Required idempotency UUID matching body.idempotencyKey (or provided as header alone) to prevent duplicate reward redemptions.

Example: 9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d

Request payload specifying passId, mechanicId, and optional idempotencyKey.

Request Body2 required • 3 optional
passIdstring (UUID)
Required

UUID of the pass redeeming the reward.

Example: pass_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
mechanicIdstring (UUID)
Required

UUID of the pass mechanic rule attached to the template.

Example: mech_1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
Response Body Structure (JSON)2 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

Response Status Codes

Search & Analytics

4 endpoints
GEThttps://api.passinstance.com/api/v1/passes/searchAPI Key
Search & Analytics

Search Passes

Search passes across your workspace by holder name, email, serial number, external ID, or custom attribute value.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Query Parameters1 required
querystring
Required

Search query string (up to 500 characters).

Example: Jane Doe
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Search completed successfully
errorsarray
Required

List of error messages (empty array on success).

dataarray of objects
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

GEThttps://api.passinstance.com/api/v1/passes/statistics/{templateId}API Key
Search & Analytics

Get Pass Statistics

Retrieve time-series pass issuance, active installation, and status increment statistics for a template.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
templateIdstring (UUID)
Required

Target template UUID.

Example: 8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
Query Parameters2 optional
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Statistics retrieved successfully
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

GEThttps://api.passinstance.com/api/v1/passes/{id}/historyAPI Key
Search & Analytics

Get Pass Status History

Retrieve the chronological lifecycle, wallet installation, scan, delivery, and balance activity timeline for a pass.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Pass UUID.

Example: b1d972dc-eccf-4f87-ab21-25939d9213d8
Query Parameters1 optional
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Pass history retrieved successfully
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

POSThttps://api.passinstance.com/api/v1/passes/exportAPI Key
Search & Analytics

Export Passes to CSV

Stream a UTF-8 CSV export (text/csv; charset=utf-8) of selected pass instances by pass ID.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Request payload specifying 1 to 2,000 pass UUIDs and the export format.

Request Body2 required
passIdsstring[] (UUID v4)
Required

Array of 1 to 2,000 pass UUIDs to include in the CSV export.

Example: ["pass_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d"]
formatstring (enum)
Required

Export output format ('csv').

Example: csv
Response Body Structure (JSON)1 required
(file stream)text/csv | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Required

Downloadable CSV or XLSX export containing pass identity, lifecycle status, stored value, and dynamic holder attributes for the requested passIds.

Response Status Codes

Pass Delivery

4 endpoints
GEThttps://api.passinstance.com/api/v1/passes/{id}/urisAPI Key
Pass Delivery

Get Pass Resource URLs

Retrieve the canonical distribution URLs for a pass, including the hosted download page link, direct Apple Wallet (.pkpass) URL, Google Wallet save link, and QR code URL.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Pass UUID.

Example: b1d972dc-eccf-4f87-ab21-25939d9213d8
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Pass resource URLs retrieved successfully
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

GEThttps://api.passinstance.com/d/{slug}/infoPublic
Pass Delivery

Get Download Page Details

Resolve a public branded pass download page payload by slug (prefix-free GET /d/{slug}/info). For authenticated management lookup by slug, use GET /api/v1/download-pages/slug/{slug}.

Path Parameters1 required
slugstring
Required

Unique vanity slug of the hosted download page.

Example: acme-vip-2026
Query Parameters2 optional
Response Body Structure (JSON)2 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/passes/{id}/enabledownloadAPI Key
Pass Delivery

Enable Pass Download

Temporarily re-enable downloading for an already-installed pass when template re-download lock is active (defaults to a 10-minute window if enableDownloadUntil is omitted).

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Pass UUID to unlock for download.

Example: b1d972dc-eccf-4f87-ab21-25939d9213d8

Optional timestamp specifying how long re-download remains unlocked.

Request Body1 optional
Response Body Structure (JSON)1 required
(empty body)void (HTTP 204)
Required

Pass download window unlocked successfully.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/passes/{id}/send-emailAPI Key
Pass Delivery

Send Pass by Email

Deliver a pass installation link directly to one or more recipient email addresses using your workspace email configuration.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Pass UUID to deliver via email.

Example: b1d972dc-eccf-4f87-ab21-25939d9213d8

Recipient email address(es) and optional custom subject and message body.

Request Body4 optional
Response Body Structure (JSON)4 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Email sent successfully
errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

Push Notifications

2 endpoints
POSThttps://api.passinstance.com/api/v1/passes/{id}/notificationsAPI Key
Push Notifications

Send Pass Push Notification

Send an immediate push notification and lock-screen message to an installed Apple Wallet (.pkpass) or Google Wallet pass. For scheduled sends or custom notification headers, use POST /api/v1/push-notifications/passes/{id}.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idUUID
Required

Unique pass instance UUID to receive the notification.

Example: 9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d

Request payload containing message body and optional header title.

Request Body1 required • 1 optional
messagestring
Required

Text message to display on the user's lock-screen.

Example: Your reward points have been updated! You now have 250 points.
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

descriptionstring
Required

Human-readable status description.

Example: Notification processed successfully
errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

POSThttps://api.passinstance.com/api/v1/passes/sendpushnotificationsAPI Key
Push Notifications

Send Bulk Push Notifications

Send a personalized lock-screen push notification to up to 500 pass UUIDs in a single request and receive per-pass delivery results.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Target pass UUID array (up to 500 passes) and notification message text supporting {attribute} placeholders.

Request Body2 required
listOfPassesstring[] (UUID)
Required

Array of 1 to 500 pass UUIDs.

Example: ["b1d972dc-eccf-4f87-ab21-25939d9213d8"]
pushNotificationTextstring
Required

Lock-screen notification message (supports dynamic placeholders like {holderName}).

Example: Hi {holderName}, you unlocked a new reward!
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Notification delivery completed with per-pass results
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

Bundle Management

11 endpoints
GEThttps://api.passinstance.com/api/v1/bundlesAPI Key
Bundle Management

List Pass Bundles

Retrieve a paginated list of pass bundles for the authenticated workspace with optional filtering by search term, status, mode, or template.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Query Parameters9 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject
Required

Paginated pass bundle collection.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/bundles/{id}API Key
Bundle Management

Get Pass Bundle

Retrieve metadata and lifecycle status for a single pass bundle by UUID.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Pass bundle UUID.

Example: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7a8b
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

PassBundle resource.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/bundlesAPI Key
Bundle Management

Create Pass Bundle

Create a named pass bundle scoped to a single template and optionally attach up to 10 existing passes immediately.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

CreatePassBundleDto payload specifying bundle name, templateId, optional mode (MANUAL or AUTO), and up to 10 passIds.

Request Body2 required • 3 optional
namestringmax 255 chars
Required

Bundle name.

Example: Summer Travel Bundle
templateIdstring (UUID)UUID
Required

Template the bundle belongs to.

Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Created PassBundle resource.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

PUThttps://api.passinstance.com/api/v1/bundles/{id}API Key
Bundle Management

Update Pass Bundle

Update a pass bundle's name, description, lifecycle status (ACTIVE or CANCELLED), or replace its member passIds (up to 10 passes from the same template).

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Pass bundle UUID to update.

Example: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7a8b

UpdatePassBundleDto payload containing any combination of name, description, status, or replacement passIds.

Request Body4 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Updated PassBundle resource.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/bundles/upsertAPI Key
Bundle Management

Create or Update Bundle

Group up to 10 passes into a downloadable multi-pass bundle (.pkpasses / Google Wallet multi-save). Omit bundleId to create a new bundle, or pass an existing bundleId to update it.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Array of pass UUIDs (up to 10) and optional existing bundleId.

Request Body1 required • 1 optional
passesstring[] (UUID)
Required

Array of 1 to 10 pass UUIDs to bundle together.

Example: ["b1d972dc-eccf-4f87-ab21-25939d9213d8", "c2e083ed-fddf-4a98-bc32-36040e0324e9"]
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Pass Bundle was created successfully!
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

GEThttps://api.passinstance.com/api/v1/bundles/{id}/passesAPI Key
Bundle Management

List Passes in Bundle

Retrieve the ordered list of passes belonging to a pass bundle with pagination or ID-only projection.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Pass bundle UUID.

Example: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7a8b
Query Parameters3 optional
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
descriptionstring
Required

Human-readable status description.

Example: Bundle passes retrieved successfully
errorsarray
Required

List of error messages (empty array on success).

dataobject
Required

Primary resource or operation result payload.

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

GEThttps://api.passinstance.com/api/v1/bundles/{id}/with-passesAPI Key
Bundle Management

Get Bundle with Passes

Retrieve a pass bundle together with its paginated member passes in a single API request.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Resource UUID.

Example: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7a8b
Query Parameters2 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject
Required

Bundle metadata and paginated pass list.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/bundles/{id}/assign-passesAPI Key
Bundle Management

Assign Passes to Bundle

Attach 1 to 10 passes from the same template into an existing pass bundle.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Resource UUID.

Example: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7a8b

BundlePassIdsDto specifying 1 to 10 unique pass UUIDs to add to the bundle.

Request Body1 required
passIdsstring[] (UUID)1 – 10 items, UUID v4
Required

Array of pass UUIDs (max 10 passes from the same template).

Example: ["9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"]
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Updated PassBundle resource.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/bundles/{id}/remove-passesAPI Key
Bundle Management

Remove Passes from Bundle

Detach 1 to 10 passes from a pass bundle without deleting or voiding the passes themselves.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Resource UUID.

Example: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7a8b

BundlePassIdsDto specifying 1 to 10 unique pass UUIDs to detach from the bundle.

Request Body1 required
passIdsstring[] (UUID)1 – 10 items, UUID v4
Required

Array of pass UUIDs (max 10 passes from the same template).

Example: ["9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"]
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Updated PassBundle resource.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/bundles/{id}/voidAPI Key
Bundle Management

Void Bundle Passes

Mark all passes belonging to a pass bundle as voided across Apple Wallet and Google Wallet.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Pass bundle UUID.

Example: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7a8b

Confirmation flag and optional audit reason for voiding all passes in the bundle.

Request Body1 required • 1 optional
voidedboolean
Required

Must be set to true to void all passes in the bundle.

Example: true
Response Body Structure (JSON)1 required
(empty body)void (HTTP 204)
Required

All passes in the bundle were marked as voided.

Response Status Codes

DELETEhttps://api.passinstance.com/api/v1/bundles/{id}API Key
Bundle Management

Delete Bundle

Delete a pass bundle container without deleting the underlying individual pass records.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Pass bundle UUID to delete.

Example: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7a8b
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataarray
Required

Primary resource or operation result payload.

descriptionstring
Required

Human-readable status description.

Example: Pass Bundle was removed successfully!
errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

Security

Overview — How Pass Validation Works

Every barcode or NFC scan executes a deterministic rule-engine validation pipeline (scanner config, pass status & void check, expiration & grace period, validation places, check-in/cooldown & once-per-day limits, mechanics, and anti-replay nonces) with optional offline dataset sync.

Anti-Replay Nonce

POST /api/v1/scans/prepare issues a short-lived cryptographic anti-replay nonce bound to the barcode

Validation Rule Pipeline

ConfigCheck → PassStatus & VoidCheck → PassExpiry & GracePeriod → ValidationPlace & Cooldown/OncePerDay → Mechanics & AntiReplay

Offline Dataset Sync

GET /api/v1/scans/offline-dataset provides cursor-paginated snapshots for offline terminals

Scanner Key Pairing

POST /api/v1/scanner-keys/from-link exchanges a pairing token + PIN for a scoped x-scanner-key

Scanner Configuration

5 endpoints
GEThttps://api.passinstance.com/api/v1/validation/configsAPI Key
Scanner Configuration

List Scanner Configurations

List all scanner configurations (validation profiles) in your workspace along with their bound templates, scan modes, and active device counts.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Query Parameters2 optional
Response Body Structure (JSON)5 required
configsarray of objectsSchema
Required

Scanner configuration profiles.

pagenumber
Required

Current 1-based page index.

pageSizenumber
Required

Number of items requested per page.

totalnumber
Required

Total number of items matching the query.

totalPagesnumber
Required

Total number of pages for the current limit.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/validation/configs/{id}API Key
Scanner Configuration

Get Scanner Configuration

Retrieve a single scanner configuration profile by ID, including its allowed templates, validation rules, and after-scan display message.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Scanner configuration UUID.

Example: 7a8b9c0d-1e2f-4a3b-8c9d-0e1f2a3b4c5d
Response Body Structure (JSON)15 required • 24 optional
idstring (UUID)
Required

Scanner profile identifier.

namestring
Required

Profile name.

templateIdstring (UUID)
Required

Primary template.

templateNamestring
Required

Primary template name.

scanModestring (enum)
Required

Scan behavior.

Allowed values:SAVE_ATTENDANCEVOIDED_AFTER_SCANINVALIDATE_AFTER_SCANCHECK_INCHECK_OUTCHECK_IN_CHECK_OUT_TOGGLE
typestring (enum)
Required

Scanner platform.

Allowed values:SMART_SCAN_APPVALIDATION_LINK
allowColorOverrideboolean
Required

Colors may be overridden by the link.

showStoredValueboolean
Required

Show the stored value.

incrementStoredValueboolean
Required

Increment the stored value.

doesNotExpireboolean
Required

The profile never expires.

isActiveboolean
Required

The profile is active.

linkCountnumber
Required

Number of scanner access links.

eventCountnumber
Required

Number of scan events.

createdAtstring (ISO 8601)
Required

Creation timestamp.

updatedAtstring (ISO 8601)
Required

Last update timestamp.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/validation/configsAPI Key
Scanner Configuration

Create Scanner Configuration

Create a new scanner configuration profile defining which templates can be scanned, the validation mode (check-in, single-use voiding, loyalty increment), and anti-replay cooldown rules.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Scanner configuration profile name, primary templateId, scanMode, platform type, optional additional allowedTemplates, and optional cooldown duration in hours.

Request Body4 required • 16 optional
namestring
Required

Human-readable name for the scanner configuration.

Example: Main Entrance Gate Scanners
templateIdstring (UUID)
Required

Primary template UUID for pass validation under this profile.

Example: tpl_8f2a1e0b-3c4d-4e5f-9a1b-2c3d4e5f6a7b
scanModestring (enum)
Required

Scanning behavior: SAVE_ATTENDANCE, VOIDED_AFTER_SCAN, INVALIDATE_AFTER_SCAN, CHECK_IN, CHECK_OUT, or CHECK_IN_CHECK_OUT_TOGGLE.

Allowed values:SAVE_ATTENDANCEVOIDED_AFTER_SCANINVALIDATE_AFTER_SCANCHECK_INCHECK_OUTCHECK_IN_CHECK_OUT_TOGGLE
Example: CHECK_IN
typestring (enum)
Required

Scanner platform type: SMART_SCAN_APP or VALIDATION_LINK.

Allowed values:SMART_SCAN_APPVALIDATION_LINK
Example: SMART_SCAN_APP
Response Body Structure (JSON)15 required • 24 optional
idstring (UUID)
Required

Scanner profile identifier.

namestring
Required

Profile name.

templateIdstring (UUID)
Required

Primary template.

templateNamestring
Required

Primary template name.

scanModestring (enum)
Required

Scan behavior.

Allowed values:SAVE_ATTENDANCEVOIDED_AFTER_SCANINVALIDATE_AFTER_SCANCHECK_INCHECK_OUTCHECK_IN_CHECK_OUT_TOGGLE
typestring (enum)
Required

Scanner platform.

Allowed values:SMART_SCAN_APPVALIDATION_LINK
allowColorOverrideboolean
Required

Colors may be overridden by the link.

showStoredValueboolean
Required

Show the stored value.

incrementStoredValueboolean
Required

Increment the stored value.

doesNotExpireboolean
Required

The profile never expires.

isActiveboolean
Required

The profile is active.

linkCountnumber
Required

Number of scanner access links.

eventCountnumber
Required

Number of scan events.

createdAtstring (ISO 8601)
Required

Creation timestamp.

updatedAtstring (ISO 8601)
Required

Last update timestamp.

Response Status Codes

PUThttps://api.passinstance.com/api/v1/validation/configs/{id}API Key
Scanner Configuration

Update Scanner Configuration

Update an existing scanner profile's scanMode, stored-value rules, colors, NFC settings, or custom operator scan fields.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Scanner configuration UUID to update.

Example: cfg_12a3b4c5-6d7e-8f9a-0b1c-2d3e4f5a6b7c

Partial UpdateScannerConfigurationDto payload. Increments the profile version automatically.

Request Body20 optional
Response Body Structure (JSON)15 required • 24 optional
idstring (UUID)
Required

Scanner profile identifier.

namestring
Required

Profile name.

templateIdstring (UUID)
Required

Primary template.

templateNamestring
Required

Primary template name.

scanModestring (enum)
Required

Scan behavior.

Allowed values:SAVE_ATTENDANCEVOIDED_AFTER_SCANINVALIDATE_AFTER_SCANCHECK_INCHECK_OUTCHECK_IN_CHECK_OUT_TOGGLE
typestring (enum)
Required

Scanner platform.

Allowed values:SMART_SCAN_APPVALIDATION_LINK
allowColorOverrideboolean
Required

Colors may be overridden by the link.

showStoredValueboolean
Required

Show the stored value.

incrementStoredValueboolean
Required

Increment the stored value.

doesNotExpireboolean
Required

The profile never expires.

isActiveboolean
Required

The profile is active.

linkCountnumber
Required

Number of scanner access links.

eventCountnumber
Required

Number of scan events.

createdAtstring (ISO 8601)
Required

Creation timestamp.

updatedAtstring (ISO 8601)
Required

Last update timestamp.

Response Status Codes

DELETEhttps://api.passinstance.com/api/v1/validation/configs/{id}API Key
Scanner Configuration

Delete Scanner Configuration

Delete a scanner profile and revoke associated validation link access. Returns HTTP 204 No Content.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Scanner configuration UUID to delete.

Example: cfg_12a3b4c5-6d7e-8f9a-0b1c-2d3e4f5a6b7c
Response Body Structure (JSON)1 required
(empty body)void (HTTP 204)
Required

Returns HTTP 204 No Content with an empty response body upon successful deletion.

Response Status Codes

Scan Operations

6 endpoints
GEThttps://api.passinstance.com/api/v1/validation/scansAPI Key
Scan Operations

List Scan Records

Retrieve a paginated audit log of recorded pass scans across your scanner configurations, filterable by scanner profile, template, or validation outcome.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Query Parameters3 optional
Response Body Structure (JSON)4 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

POSThttps://api.passinstance.com/api/v1/scansScanner Key
Scan Operations

Record Pass Scan

Validate an optical barcode, QR code, or Apple VAS / Google Smart Tap NFC scan payload from a terminal or mobile scanner through the deterministic scan validation rule engine.

Headers3 required • 1 optional
x-scanner-keystring
Required

Scoped scanner configuration key provisioned in the Dashboard or via scanner pairing link.

Example: scan_key_77a8b9c0d1e2f3a4b5c6d7e8
Content-Typestring
Required

Must be application/json.

Example: application/json
x-idempotency-keystring
Required

Required unique key (UUID or client token) guaranteeing idempotent scan execution across network retries.

Example: scan-op-9b1deb4d-3b7d-4bad-9bdd

Request payload containing scanned barcode string, optional anti-replay nonce, channel/protocol metadata, and operator context.

Request Body1 required • 13 optional
scannedBarcodeValuestring
Required

The raw payload string read from the QR code, PDF417, CODE128, AZTEC, or NFC tap.

Example: PI-8891-JD-VIP
Response Body Structure (JSON)1 required • 20 optional
decisionstring (enum)
Required

Outcome of the validation pipeline.

Allowed values:SUCCESSFAILEDALREADY_USEDALREADY_VOIDEDEXPIREDINVALID

Response Status Codes

GEThttps://api.passinstance.com/api/v1/scans/result/{scanId}Scanner Key
Scan Operations

Get Scan Result by ID

Retrieve the decision, rule trace, pass snapshot, and effects of a previously processed scan by UUID using a scanner key.

Headers1 required
x-scanner-keystring
Required

Scoped scanner device key issued via pairing link or scanner-keys API.

Example: scan_key_77a8b9c0d1e2f3a4
Path Parameters1 required
scanIdstring (UUID)UUID v4
Required

Scan record UUID.

Example: scn_3c4d5e6f-7a8b-4c9d-8e1f-2a3b4c5d6e7f
Response Body Structure (JSON)1 required • 20 optional
decisionstring (enum)
Required

Outcome of the validation pipeline.

Allowed values:SUCCESSFAILEDALREADY_USEDALREADY_VOIDEDEXPIREDINVALID

Response Status Codes

POSThttps://api.passinstance.com/api/v1/scans/prepareScanner Key
Scan Operations

Prepare Anti-Replay Scan Nonce

Issue a short-lived cryptographic anti-replay nonce bound to a pass barcode prior to executing POST /api/v1/scans.

Headers1 required
x-scanner-keystring
Required

Scoped scanner configuration key provisioned in the Dashboard or via scanner pairing link.

Example: scan_key_77a8b9c0d1e2f3a4b5c6d7e8

Request payload containing the scanned barcode value to bind the cryptographic nonce to.

Request Body1 required
scannedBarcodeValuestring
Required

Barcode or NFC token string to bind the anti-replay nonce to.

Example: PI-8891-JD-VIP
Response Body Structure (JSON)3 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

metadataobject
Required

Returned metadata property.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/scans/passScanner Key
Scan Operations

Lookup Pass by Barcode (Read-Only)

Inspect current pass status, tier, stored value, and attributes for a scanned barcode using a scanner key without creating a scan record or mutating balances.

Headers1 required
x-scanner-keystring
Required

Scoped scanner device key issued via pairing link or scanner-keys API.

Example: scan_key_77a8b9c0d1e2f3a4
Query Parameters1 required
barcodestring
Required

Scanned barcode or NFC payload value (passed as query parameter to preserve URL-shaped payloads).

Example: MEMBER-2026-8891
Response Body Structure (JSON)7 required • 8 optional
passIdstring (UUID)
Required

Pass id.

templateIdstring (UUID)
Required

Template id.

statusstring
Required

Pass status.

isExpiredboolean
Required

The pass is expired.

isVoidedboolean
Required

The pass is voided.

barcodeValuestring
Required

Barcode value.

checkedAtstring (ISO 8601)
Required

Time of the lookup.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/scans/offline-datasetScanner Key
Scan Operations

Get Offline Scanner Dataset

Download a cursor-paginated pass snapshot dataset scoped to the calling x-scanner-key for local offline validation when network connectivity drops.

Headers1 required
x-scanner-keystring
Required

Scoped scanner configuration key provisioned in the Dashboard or via scanner pairing link.

Example: scan_key_77a8b9c0d1e2f3a4b5c6d7e8
Query Parameters3 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Cursor-paginated offline scanner dataset.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

Overview & Endpoints

9 endpoints
Webhooks

Webhooks Overview & Signature Verification

Verify X-Webhook-Signature as HMAC-SHA256 over the exact raw request body with your subscription secret. Use constant-time comparison and idempotent event processing.

Signature Header
X-Webhook-Signature: sha256=9f8e7d6c5b4a3...
Timestamp Header
X-Webhook-Timestamp: 2026-08-21T20:30:00.000Z
Replay protection

Match X-Webhook-Id to the signed eventId; deduplicate events and validate the signed timestamp according to your replay policy.

Supported Events

PASS_CREATED, PASS_UPDATED, PASS_VOIDED, PUSHNOTIFICATION_FIRST, PUSHNOTIFICATION_REGISTERED, PUSHNOTIFICATION_UNREGISTERED, TEMPLATE_CREATED, TEMPLATE_UPDATED, APP_SCAN_CREATED, MESSAGE_SENT, MESSAGE_FAILED

Expected Response

Return HTTP 200 OK within 10,000ms to acknowledge receipt

Public Key Discovery

GET /api/v1/webhooks/public-key returns the active public key for signature verification

POSThttps://api.passinstance.com/api/v1/webhooks/subscriptionsAPI Key
Overview & Endpoints

Subscribe to Webhooks

Register an HTTPS endpoint to receive HMAC-signed real-time event notifications for pass issuance, updates, scans, and uninstalls.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Request payload containing target HTTPS destination URL and array of webhook event types.

Request Body2 required • 5 optional
urlstring (HTTPS URL)
Required

Your server endpoint URL (must start with https://, max 2048 chars).

Example: https://your-server.com/webhooks/passinstance
eventsstring[] (enum)
Required

Supported webhook event values: PASS_CREATED, PASS_UPDATED, PASS_VOIDED, PUSHNOTIFICATION_FIRST, PUSHNOTIFICATION_REGISTERED, PUSHNOTIFICATION_UNREGISTERED, TEMPLATE_CREATED, TEMPLATE_UPDATED, APP_SCAN_CREATED, MESSAGE_SENT, MESSAGE_FAILED.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
Example: ["PASS_CREATED", "PASS_UPDATED", "APP_SCAN_CREATED"]
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Created webhook subscription including the one-time plaintext HMAC signing secret.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/webhooks/subscriptions/{id}API Key
Overview & Endpoints

Get Webhook Subscription

Retrieve a single webhook subscription by UUID. Returns hasSecret: boolean and never re-exposes the plaintext HMAC signing secret.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Webhook subscription UUID.

Example: wh_sub_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Public webhook subscription without plaintext secret.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

PATCHhttps://api.passinstance.com/api/v1/webhooks/subscriptions/{id}API Key
Overview & Endpoints

Update Webhook Subscription

Modify a webhook subscription's HTTPS destination URL, subscribed events, template filter, rate limits, or pause/resume deliveries via isActive.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Webhook subscription UUID to update.

Example: wh_sub_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d

Partial UpdateWebhookSubscriptionDto payload. Send templateId: null to remove template filtering.

Request Body7 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobjectSchema
Required

Updated public webhook subscription (hasSecret only, no plaintext secret).

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

DELETEhttps://api.passinstance.com/api/v1/webhooks/subscriptions/{id}API Key
Overview & Endpoints

Unsubscribe from Webhooks

Delete an active webhook subscription by ID to stop receiving event deliveries at that destination URL.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)
Required

Webhook subscription UUID to remove.

Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
datanullnullable
Required

Primary resource or operation result payload.

descriptionstring
Required

Human-readable status description.

Example: Webhook subscription deleted successfully
errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

GEThttps://api.passinstance.com/api/v1/webhooks/subscriptionsAPI Key
Overview & Endpoints

List Active Subscriptions

Retrieve all active webhook subscriptions registered for your customer workspace.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataarray of objectsSchema
Required

Public webhook subscriptions (with hasSecret, never plaintext secret).

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/webhooks/historyAPI Key
Overview & Endpoints

List Webhook Delivery History

Inspect historical outbound webhook delivery logs, HTTP attempt counts, statuses, and event payloads with filtering.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Query Parameters7 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataarray of objectsSchema
Required

Webhook event delivery history records.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/webhooks/subscriptions/{id}/testAPI Key
Overview & Endpoints

Test Webhook Subscription

Dispatch a signed synthetic test event to an existing webhook subscription to verify endpoint connectivity and HMAC-SHA256 verification.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Resource UUID.

Example: wh_sub_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d

WebhookTestDto specifying the eventType and synthetic payload data to send.

Request Body2 required
eventTypestring (enum)
Required

Canonical webhook event type.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
Example: PASS_CREATED
dataRecord<string, unknown>
Required

Synthetic event payload data delivered to your webhook endpoint.

Example: {"passId": "test-pass-123", "templateId": "test-template-456"}
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject
Required

Webhook endpoint test delivery outcome.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/webhooks/subscriptions/{id}/regenerate-secretAPI Key
Overview & Endpoints

Regenerate Webhook Signing Secret

Rotate the HMAC-SHA256 signing secret for a webhook subscription. The newly generated plaintext secret is returned once in this response.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Path Parameters1 required
idstring (UUID)UUID v4
Required

Resource UUID.

Example: wh_sub_9a8b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject
Required

Newly rotated HMAC-SHA256 signing secret (returned once).

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

GEThttps://api.passinstance.com/api/v1/webhooks/public-keyPublic
Overview & Endpoints

Get Webhook Signature Public Key

Retrieve the PEM-encoded RSA public key for legacy webhook signature verification. For new integrations, use the per-subscription HMAC-SHA256 signing secret returned when subscribing.

Response Body Structure (JSON)4 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

Pull-Based Webhooks

2 endpoints
Webhooks

How Pull Webhooks Work & Pull Webhook Limitations

Consume real-time pass and scan events via outbound HMAC-SHA256 Push Webhooks (with exponential backoff and circuit breakers) or inbound Pull Webhook polling for firewall-restricted environments, plus no-code Workflows.

Push Webhook Resilience

5 retries with jittered exponential backoff; circuit breaker opens after 10 consecutive failures

Pull Webhook Polling

GET /api/v1/webhook-payload & POST /api/v1/webhook-payload/acknowledge for private networks

Workflow Triggers

PASS_CREATED, PASS_UPDATED, PASS_VOIDED, PUSHNOTIFICATION_FIRST, APP_SCAN_CREATED, TEMPLATE_UPDATED

Workflow Actions

ASSIGN_OR_UPDATE_CARD, ADD_POINTS, APPLY_STAMP, UPGRADE_MEMBERSHIP_TIER, UPDATE_PREPAID_BALANCE, SEND_DELIVERY_NOTIFICATION, TRIGGER_WALLET_UPDATE

GEThttps://api.passinstance.com/api/v1/webhook-payloadAPI Key
Pull-Based Webhooks

Retrieve Pending Webhook Events

Fetch pending webhook event payloads over outbound HTTPS GET for firewall-restricted or private-network environments without exposing public inbound ports.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1
Query Parameters3 optional
Response Body Structure (JSON)5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataarray of objectsSchema
Required

Queued pull webhook payload items.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

Response Status Codes

POSThttps://api.passinstance.com/api/v1/webhook-payload/acknowledgeAPI Key
Pull-Based Webhooks

Acknowledge Webhook Events

Acknowledge processed pull-webhook payloads up to a specified payload ID so they are marked delivered and removed from the inbound polling queue.

Headers1 required
X-API-Keystring
Required

Workspace secret API key (pi_live_... or pi_test_...). You may alternatively send Authorization: ApiKey <key>.

Example: pi_live_98a7b6c5d4e3f2a1

Request payload specifying the high-water mark payload ID (upTo).

Request Body1 required • 1 optional
upTostring (UUID)
Required

Last processed webhook payload ID; all queued events up to this ID are acknowledged.

Example: whp_55a4b3c2-1d0e-9f8a-7b6c-5d4e3f2a1b0c
Response Body Structure (JSON)5 required
successboolean
Required

Indicates whether the API request succeeded.

Example: true
dataobject
Required

Primary resource or operation result payload.

descriptionstring
Required

Human-readable status description.

Example: Webhook payloads acknowledged successfully
errorsarray
Required

List of error messages (empty array on success).

statusCodenumber
Required

HTTP status code mirrored in the JSON envelope.

Example: 200

Response Status Codes

Webhook Events

4 guides
Webhook EventsOutbound HTTP POST Webhook Notification

Template Events

Outbound HTTP POST webhook notifications dispatched whenever a pass template is created, updated, published, or deleted in your workspace.

Template Created
POST
TEMPLATE_CREATED

Fired when a new pass template is created

Template Updated
POST
TEMPLATE_UPDATED

Fired when template fields, layout, or mechanics are modified

Webhook EventsOutbound HTTP POST Webhook Notification

Pass Events

Outbound HTTP POST webhook notifications tracking every stage of an individual pass lifecycle from creation to device installation and removal.

Pass Created
POST
PASS_CREATED

Fired immediately when a new pass is issued via REST API or PassFlow

Pass Updated
POST
PASS_UPDATED

Fired when pass attributes, loyalty points, tier, or balance change

Pass Voided
POST
PASS_VOIDED

Fired when a pass is voided or deactivated across Apple & Google Wallet

Pass First Downloaded
POST
PUSHNOTIFICATION_FIRST

Fired the first time a customer claims or downloads the pass

Pass Downloaded
POST
PUSHNOTIFICATION_REGISTERED

Fired on each subsequent pass bundle or Google Wallet link download

Pass Removed from Device
POST
PUSHNOTIFICATION_UNREGISTERED

Fired when the customer deletes the pass from Apple Wallet or Google Wallet

Webhook EventsOutbound HTTP POST Webhook Notification

Scan Events

Outbound HTTP POST webhook notifications emitted in real time whenever a pass barcode or NFC credential is scanned and validated.

Pass Scan Created
POST
APP_SCAN_CREATED

Fired when POST /api/v1/scans or a paired scanner records a scan

Scan Outcome Metadata

Includes passId, serialNumber, templateId, configId, scan decision, and balance delta

Delivery Guarantee

At-least-once HTTPS POST delivery with X-Webhook-Id and X-Webhook-Signature headers

Pull Queue Compatibility

Also available via GET /api/v1/webhook-payload for firewalled POS and on-premise workers

Webhook EventsOutbound HTTP POST Webhook Notification

Message Events & Status Reference

Outbound HTTP POST webhook notifications and delivery status codes for wallet push notifications, email sendouts, and SMS deliveries.

Message Sent
POST
MESSAGE_SENT

Fired when a pass message or push update is dispatched

Message Delivery Failed
POST
MESSAGE_FAILED

Fired when an outbound email, SMS, or push notification fails delivery

Message Status Reference

QUEUED -> SENT -> DELIVERED (or FAILED / BOUNCED with provider diagnostic code)

Idempotent Event Correlation

Match eventId and passId in your webhook consumer to deduplicate retried deliveries

Objects & Data Structures

31 objects

Canonical request and response objects for this API domain. Expand any nested object or array property to inspect every field, allowed enum value, and validation constraint.

ApiResponse

Object5 properties

Every standard JSON response is wrapped in this envelope.

Object Properties5 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject | array | null
Required

Resource payload. null on errors.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

PaginatedApiResponse

Object10 properties

Paginated list endpoints extend the envelope with a pagination block.

Object Properties6 required
successboolean
Required

true when the operation succeeded, false for every error response.

dataobject | array | null
Required

Resource payload. null on errors.

descriptionstring
Required

Human-readable summary of the result.

errorsstring[]
Required

Error messages. Empty array on success.

statusCodenumber
Required

HTTP status code mirrored in the body.

paginationobject
Required

Pagination metadata.

ApiErrorResponse

Object5 properties

Error payload returned on validation, authorization, conflict, and rate-limit failures.

Object Properties5 required
successboolean
Required

Always false on 4xx and 5xx error responses.

Example: false
datanullnullable
Required

Always null on error responses.

Example: null
descriptionstring
Required

Short error summary matching the HTTP status.

Example: Bad Request
errorsstring[]
Required

Array of actionable validation or authorization error messages.

statusCodenumber
Required

HTTP status code (400, 401, 403, 404, 409, 422, 429, 500).

Example: 400

Template

Object1464 properties

Write model accepted by POST, PUT and PATCH /templates. Reads return the same properties inside base, draft and effectiveDraft.

Object Properties6 required • 62 optional
namestring
Required

Template name.

descriptionstring
Required

Template description.

organizationNamestring
Required

Issuing organization shown on the pass.

kindstring (enum)
Required

Wallet pass kind.

Allowed values:boardingPassstoreCardcoupongenericposterGenericeventTicket
statusstring (enum)
Required

Template lifecycle status.

Allowed values:DRAFTPUBLISHEDARCHIVEDDEPRECATEDUNDER_REVIEWDELETING
preferredStyleSchemestring (enum)
Required

Preferred Apple Wallet style scheme.

Allowed values:posterGenericposterEventTicketbannerEventTicketsemanticBoardingPassDARK

TemplateVersionPair

Object4395 properties

Returned in data by GET /templates/{id}, separating the live production base from any unpublished draft.

Object Properties1 required • 2 optional
baseobjectSchema
Required

Published/production template revision.

draftobjectnullableSchema
Optional

Unpublished draft revision if pending edits exist.

effectiveDraftobjectnullableSchema
Optional

Merged effective view combining base and draft edits.

TemplateColors

Object9 properties

Colors of a template. Hex values only, e.g. #FFFFFF.

Object Properties9 optional
idstring
Optional

Identifier of the stored color settings.

labelColorstring (hex)#RRGGBB
Optional

Label color.

Example: #FFFFFF
labelColorDifferentForEachPassboolean
Optional

Allow each pass to override the label color.

foregroundColorstring (hex)#RRGGBB
Optional

Foreground color. Google Wallet chooses text color automatically.

Example: #000000
foregroundColorDifferentForEachPassboolean
Optional

Allow each pass to override the foreground color. Not supported by Google Wallet.

backgroundColorstring (hex)#RRGGBB
Optional

Background color.

Example: #FF0000
backgroundColorDifferentForEachPassboolean
Optional

Allow each pass to override the background color.

voidedBackgroundColorstring (hex)#RRGGBB
Optional

Background color used for voided passes.

Example: #CCCCCC
templateIdstring
Optional

Template these color settings belong to.

TemplateFields

Object155 properties

Field groups rendered on the pass. Every group contains PassField objects.

Object Properties1 required • 6 optional
primaryFieldsarray of objects
Required

Primary (most prominent) fields.

headerFieldsarray of objects
Optional

Fields in the pass header.

secondaryFieldsarray of objects
Optional

Secondary fields below the primary fields.

auxiliaryFieldsarray of objects
Optional

Auxiliary fields, optionally split in two rows.

backFieldsarray of objects
Optional

Fields on the back of the pass.

additionalInfoFieldsarray of objects
Optional

Additional information fields.

footerFieldsarray of objects
Optional

Fields in the pass footer.

TemplateImages

Object826 properties

Image slots of a template. Each slot is an image object.

Object Properties14 optional
logoobject
Optional

Logo shown on the pass.

primaryLogoobject
Optional

Primary logo variant.

backgroundobject
Optional

Background image.

thumbnailobject
Optional

Thumbnail image.

iconobject
Optional

Icon used in notifications and lock screen.

artworkobject
Optional

Hero artwork for poster and event passes.

posterobject
Optional

Event ticket poster (alias for artwork).

venueMapobject
Optional

Venue map image.

secondaryLogoobject
Optional

Secondary logo.

footerobject
Optional

Footer image.

googlePayLogoobject
Optional

Logo used by Google Wallet.

stripobject
Optional

Strip image behind the primary fields.

androidBackgroundobject
Optional

Google Wallet background override.

androidLogoobject
Optional

Google Wallet logo override.

PassMechanic

Object294 properties

Loyalty, stamp-card, prepaid or renewal behavior attached to a template.

Object Properties1 required • 27 optional
typestring (enum)
Required

Mechanic type.

Allowed values:LOYALTY_PROGRAMSTAMP_CARD_ADDSTAMP_CARD_DEDUCTVALID_ONCE_PER_DAYPREPAID_CARDRENEW_EXPIRATION

BoardingPass

Object25 properties

Airline and transit boarding pass metadata (airports, carrier, gate, terminal, seat, boarding group, and WWDC25 semantics).

Object Properties25 optional

BatchCreatePassPayload

Object9 properties

Request body accepted by POST /batch-pass-operations/create (1 to 1000 passes per batch).

Object Properties1 required
passesarray of objects1 – 1000 items
Required

Passes to issue in this batch.

PassVoidRequest

Object4 properties

Body of POST /passes/voiding/{id}/void.

Used by:Void Pass
Object Properties1 required • 1 optional
voidedboolean
Required

true voids the pass, false re-activates it.

optionsobject
Optional

Voiding options.

PassBundle

Object18 properties

A group of up to 10 passes of one template that is delivered together.

Object Properties8 required • 5 optional
idstring (UUID)
Required

Bundle identifier.

namestringmax 255 chars
Required

Bundle name.

modestring (enum)Default: MANUAL
Required

How passes join the bundle.

Allowed values:MANUALAUTO
statusstring (enum)Default: ACTIVE
Required

Bundle status.

Allowed values:ACTIVECANCELLED
templateIdstring (UUID)
Required

Template every pass in the bundle belongs to.

customerIdstring (UUID)
Required

Owning workspace customer.

createdAtstring (ISO 8601)
Required

Creation timestamp.

updatedAtstring (ISO 8601)
Required

Last update timestamp.

descriptionstringnullablemax 500 chars
Optional

Bundle description.

tenantIdstring (UUID)nullable
Optional

Owning tenant.

passCountnumber
Optional

Count of passes currently attached to this bundle.

passesarray of objects
Optional

Summary of member passes (included on detail/with-passes endpoints).

deletedAtstring (ISO 8601)nullable
Optional

Soft-deletion timestamp.

CreatePassBundle

Object5 properties

Body of POST /bundles.

Object Properties2 required • 3 optional
namestringmax 255 chars
Required

Bundle name.

Example: Summer Travel Bundle
templateIdstring (UUID)UUID
Required

Template the bundle belongs to.

descriptionstringmax 500 chars
Optional

Bundle description.

modestring (enum)Default: MANUAL
Optional

How passes join the bundle. AUTO requires bundleEnabled on the template.

Allowed values:MANUALAUTO
passIdsstring[] (UUID)max 10 items, UUID v4
Optional

Passes to include.

UpdatePassBundle

Object4 properties

Body of PUT /bundles/{id}. Only supplied properties change.

Object Properties4 optional
namestringmax 255 chars
Optional

Bundle name.

descriptionstringmax 500 chars
Optional

Bundle description.

statusstring (enum)
Optional

Bundle status.

Allowed values:ACTIVECANCELLED
passIdsstring[] (UUID)max 10 items, UUID v4
Optional

Replaces the passes in the bundle. All passes must belong to the bundle template.

ScannerConfiguration

Object66 properties

A scanner profile as returned by the validation configs endpoints.

Object Properties15 required • 24 optional
idstring (UUID)
Required

Scanner profile identifier.

namestring
Required

Profile name.

templateIdstring (UUID)
Required

Primary template.

templateNamestring
Required

Primary template name.

scanModestring (enum)
Required

Scan behavior.

Allowed values:SAVE_ATTENDANCEVOIDED_AFTER_SCANINVALIDATE_AFTER_SCANCHECK_INCHECK_OUTCHECK_IN_CHECK_OUT_TOGGLE
typestring (enum)
Required

Scanner platform.

Allowed values:SMART_SCAN_APPVALIDATION_LINK
allowColorOverrideboolean
Required

Colors may be overridden by the link.

showStoredValueboolean
Required

Show the stored value.

incrementStoredValueboolean
Required

Increment the stored value.

doesNotExpireboolean
Required

The profile never expires.

isActiveboolean
Required

The profile is active.

linkCountnumber
Required

Number of scanner access links.

eventCountnumber
Required

Number of scan events.

createdAtstring (ISO 8601)
Required

Creation timestamp.

updatedAtstring (ISO 8601)
Required

Last update timestamp.

ScannerConfigurationInput

Object39 properties

Body of POST and PUT /validation/configs. PUT accepts any subset.

Object Properties4 required • 16 optional
namestringmax 255 chars
Required

Scanner profile name.

templateIdstring (UUID)
Required

Primary template accepted by the profile.

scanModestring (enum)
Required

How passes are processed when scanned.

Allowed values:SAVE_ATTENDANCEVOIDED_AFTER_SCANINVALIDATE_AFTER_SCANCHECK_INCHECK_OUTCHECK_IN_CHECK_OUT_TOGGLE
typestring (enum)
Required

Scanner platform.

Allowed values:SMART_SCAN_APPVALIDATION_LINK

ScanRequest

Object21 properties

Body of POST /scans.

Object Properties1 required • 16 optional
scannedBarcodeValuestring
Required

Barcode or NFC payload read by the scanner.

ScanResponse

Object70 properties

Result of POST /scans. Returned directly, not wrapped in the standard envelope.

Object Properties1 required • 20 optional
decisionstring (enum)
Required

Outcome of the validation pipeline.

Allowed values:SUCCESSFAILEDALREADY_USEDALREADY_VOIDEDEXPIREDINVALID

PassLookup

Object17 properties

Read-only pass state returned by GET /scans/pass. Returned directly, not wrapped in the standard envelope.

Object Properties7 required • 8 optional
passIdstring (UUID)
Required

Pass id.

templateIdstring (UUID)
Required

Template id.

statusstring
Required

Pass status.

isExpiredboolean
Required

The pass is expired.

isVoidedboolean
Required

The pass is voided.

barcodeValuestring
Required

Barcode value.

checkedAtstring (ISO 8601)
Required

Time of the lookup.

OfflineScanDataset

Object47 properties

Cursor-paginated snapshot for offline scanners. Returned inside the standard envelope.

Object Properties5 required • 2 optional
configobject
Required

Scanner configuration snapshot.

passesarray of objects
Required

Pass snapshots for local validation.

hasMoreboolean
Required

More pages are available.

snapshotAtstring (ISO 8601)
Required

Time the snapshot was taken.

totalPassesnumber
Required

Total number of passes in the snapshot.

templatesarray of objects
Optional

Template summaries.

nextCursorstring
Optional

Cursor for the next page.

WebhookSubscription

Object13 properties

A webhook subscription. The signing secret is only returned once by the create call; GET and PATCH return hasSecret.

Object Properties7 required • 5 optional
idstring (UUID)
Required

Subscription identifier.

urlstring (URL)max 2048 chars
Required

Destination URL.

eventsstring[] (enum)
Required

Subscribed events.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
isActiveboolean
Required

Whether deliveries are enabled.

hasSecretboolean
Required

A signing secret exists. The secret itself is only returned once, when the subscription is created.

createdAtstring (ISO 8601)
Required

Creation timestamp.

updatedAtstring (ISO 8601)
Required

Last update timestamp.

templateIdstring (UUID)nullable
Optional

Only deliver events of this template.

filtersobject
Optional

Event filters applied before webhook dispatch.

secretstring
Optional

HMAC-SHA256 signing secret. Present only in the create response.

Example: whsec_...
rateLimitnumber1 – 1000
Optional

Maximum deliveries per window.

rateWindownumber60 – 86400
Optional

Rate-limit window in seconds.

CreateWebhookSubscription

Object8 properties

Body of POST /webhooks/subscriptions.

Object Properties2 required • 5 optional
urlstring (HTTPS URL)max 2048 chars
Required

Destination URL.

eventsstring[] (enum)
Required

Events to subscribe to.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
templateIdstring (UUID)
Optional

Only deliver events of this template.

idempotencyKeystringmax 191 chars, [A-Za-z0-9:_-]
Optional

Stable key used to safely retry creation.

filtersobject
Optional

Event filters applied before webhook dispatch.

rateLimitnumber1 – 1000
Optional

Maximum deliveries per window.

rateWindownumber60 – 86400
Optional

Rate-limit window in seconds.

UpdateWebhookSubscription

Object8 properties

Body of PATCH /webhooks/subscriptions/{id}. Only supplied properties change.

Object Properties7 optional
urlstring (HTTPS URL)max 2048 chars
Optional

Destination URL.

eventsstring[] (enum)
Optional

Replaces the subscribed events.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
templateIdstring (UUID)nullable
Optional

Template filter. Send null to remove it.

filtersobject
Optional

Event filters applied before webhook dispatch.

rateLimitnumber1 – 1000
Optional

Maximum deliveries per window.

rateWindownumber60 – 86400
Optional

Rate-limit window in seconds.

isActiveboolean
Optional

Enable or pause deliveries.

WebhookDeliveryHeaders

Object3 properties

Headers sent with every outbound webhook delivery.

Object Properties3 required
X-Webhook-Signaturestring
Required

sha256=<HMAC-SHA256 of the raw body with your subscription secret>.

X-Webhook-Timestampstring (ISO 8601)
Required

Timestamp covered by the signature.

X-Webhook-Idstring
Required

Event id. Matches the signed eventId; use it to deduplicate retries.

WebhookEventPayload

Object13 properties

JSON body delivered to your HTTPS endpoint (and wrapped inside pull webhook records) for every subscribed event.

Object Properties5 required
eventIdstring (UUID)
Required

Unique event identifier matching the X-Webhook-Id header for idempotent deduplication.

eventTypestring (enum)
Required

Canonical webhook event type.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
timestampstring (ISO 8601)
Required

UTC timestamp when the event was emitted.

customerIdstring (UUID)
Required

Owning workspace customer UUID.

dataobject
Required

Event-specific resource snapshot.

WebhookEventHistory

Object21 properties

Delivery attempt log record returned by GET /webhooks/history.

Object Properties7 required • 1 optional
idstring (UUID)
Required

Event history record identifier.

subscriptionIdstring (UUID)
Required

Target webhook subscription UUID.

eventTypestring (enum)
Required

Canonical webhook event type.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
statusstring (enum)
Required

Delivery lifecycle status.

Allowed values:PENDINGPROCESSINGDELIVEREDFAILEDCANCELLED
attemptsnumber
Required

Number of HTTP delivery attempts executed.

createdAtstring (ISO 8601)
Required

Timestamp when the event was recorded.

payloadobjectSchema
Required

Delivered event JSON payload.

lastAttemptAtstring (ISO 8601)
Optional

Timestamp of the most recent delivery attempt.

PullWebhookPayloadItem

Object18 properties

Queued event record returned by GET /webhook-payload for firewall-restricted polling consumers.

Object Properties5 required
idstring (UUID)
Required

Queued webhook payload id used for acknowledgement cursors.

eventTypestring (enum)
Required

Canonical webhook event type.

Allowed values:PASS_CREATEDPASS_UPDATEDPASS_VOIDEDPUSHNOTIFICATION_FIRSTPUSHNOTIFICATION_REGISTEREDPUSHNOTIFICATION_UNREGISTERED
subscriptionIdstring (UUID)
Required

Webhook subscription that queued this event.

payloadobjectSchema
Required

Event payload containing pass, template, scan, or message details.

createdAtstring (ISO 8601)
Required

Timestamp when the event was queued.