Skip to content
OAuth 2.0 Automation & Webhook Guide

Automate Apple Wallet & Google Wallet passes with Passinstance and Zapier

Everything a new workspace user or integration engineer needs to prepare a template, connect Passinstance via OAuth 2.0 or webhooks, configure triggers, dynamic attributes, and idempotent actions, and verify live Zap runs.

7 instant REST Hook triggers (issued, installed, validated, voided)
4 write actions & 3 searches with dynamic template attributes
OAuth 2.0 scoped connections + deterministic retry idempotency
Works with Passinstance Zapier App or standard Webhooks & REST API
Open Passinstance Studio
Zapier <-> Passinstance Architecture
OAuth 2.0 + REST
  1. 01

    Workspace OAuth Consent & Account Check

    GET /api/v1/me · 7 scoped permissions · Instant revocation

  2. 02

    Instant Triggers & Dynamic Template Schema

    POST /webhook-subscriptions · GET /integrations/templates/:id/attributes

  3. 03

    Idempotent Issuance, Updates & Push Notifications

    POST /passes · PATCH /passes/:id · POST /push-notifications/passes/:id

Step-by-step setup for a new Passinstance user

Follow these four steps in order before activating production Zaps so your templates, dynamic fields, webhook subscriptions, and retries behave deterministically.

01Passinstance Studio

Prepare custom attributes & publish your template

Create or open a wallet template, define writable custom attributes (avoid hidden or read-only flags), verify the publishing checklist, and publish.

/templates -> Custom attributes -> Publish

02OAuth 2.0 Authorization

Authorize your workspace in Zapier via OAuth 2.0

Select Passinstance in Zapier, pick Production (api.passinstance.com) or Staging, sign in to your workspace, and approve the OAuth 2.0 scopes.

GET /api/v1/me -> Workspace — Email

03Zap Editor

Map triggers, dynamic fields & Source event ID

Configure one of 7 instant triggers or 4 write actions / 3 searches, fill dynamic template attributes, and bind a unique Source event ID.

Idempotency-Key: <zapId>:<op>:<sha256>

04Webhooks & Connected Apps

Activate Zap & monitor Connected Applications / Webhooks

Turn the Zap ON to register HTTPS REST hook subscriptions, verify Successful runs in Zap History, and manage OAuth access in Dashboard.

/account/settings/workspace/connected-apps

Two ways to connect Zapier: Managed OAuth App vs. Custom Webhooks

Choose the OAuth 2.0 Passinstance Zapier integration for turn-key dynamic attributes and auto-managed REST hooks, or wire standard Webhooks by Zapier steps directly to Passinstance REST endpoints and HMAC webhooks today.

Recommended · Managed IntegrationOAuth 2.0 Bearer · 7 Scopes

Passinstance Zapier App (OAuth 2.0 & REST Hooks)

Connect your Passinstance workspace with one-click OAuth 2.0 login (via private invite or once listed publicly). Zapier manages webhook subscriptions automatically and fetches your live template attributes inside every action.

  • 7 instant REST Hook triggers subscribe on Zap ON and clean up automatically on Zap OFF.
  • Issue Pass and Update Pass dynamically inspect custom template properties (attr__<key>) and types.
  • Deterministic Source event ID hashing prevents duplicate pass creation or push notifications on retries.

/api/v1/me · /webhook-subscriptions · /integrations/templates/:id/attributes

Always Available · Custom WorkflowsX-API-Key & HMAC-SHA256

Webhooks by Zapier + Passinstance REST API

Available immediately on every workspace without any app invitation: send signed Passinstance outbound webhooks to a Zapier Catch Hook, or invoke Passinstance REST endpoints directly from Zapier Webhooks using X-API-Key.

  • Register a Zapier hooks.zapier.com/hooks/catch URL directly under Developer -> Webhooks.
  • Call POST /api/v1/passes or /api/v1/mechanics/redeem via Zapier Custom Request with X-API-Key: pi_live_...
  • Includes retries, circuit-breaker protection, and HMAC-SHA256 X-Webhook-Signature verification.

POST /api/v1/passes · /account/settings/workspace/developer/webhooks

Where to find Connectors, Connected Applications & Webhooks in Passinstance

Open Workspace Settings -> Integrations -> Platform Connectors (/account/settings/workspace/connectors?provider=zapier) to launch Zapier, review active OAuth tokens under Connected Applications (/account/settings/workspace/connected-apps), and inspect registered Zapier REST hook subscriptions or custom catch hooks under Developer -> Webhooks (/account/settings/workspace/developer/webhooks).

Phase 1: Prepare Templates & Custom Attributes in Studio

Define custom fields and complete the publishing checklist inside Passinstance Studio first so Zapier displays dynamic fields and issues passes reliably.

Dashboard view· 1 / 2
Key UI elements

Define writable Custom Attributes before configuring Zapier

Every writable custom attribute created here is returned by /api/v1/integrations/templates/:id/attributes as an attr__* field inside Zapier's Issue Pass and Update Pass designer.

Phase 2: Configure Triggers, Dynamic Actions & Verify Zap Runs

Step through real Zapier editor configurations across all 4 core screens: OAuth account + instant trigger, dynamic Issue Pass mapping, push notification dispatch, and live Zap Run inspection.

Dashboard view· 1 / 4
Key UI elements

Select any of the 7 instant Passinstance triggers & connect via OAuth 2.0

When you publish a Zap with a Passinstance trigger, Zapier subscribes via POST /api/v1/webhook-subscriptions and labels the connected workspace with your authorized account.

Complete Reference: Triggers, Write Actions, Searches & Webhooks

Inspect every event key, required/optional field, API endpoint, and hidden dynamic loader used by the Passinstance Zapier integration.

TriggerZapier Key / EventPassinstance EventWhen it fires
New Pass Issuedpass_issued (pass.issued)PASS_CREATEDFires immediately when a pass is issued via Studio, PassFlow, CSV import, or REST API.
Pass Installed in Walletpass_installed (pass.installed)PUSHNOTIFICATION_REGISTEREDFires when a customer adds the card to Apple Wallet or Google Wallet and push registration completes.
Pass Updatedpass_updated (pass.updated)PASS_UPDATEDFires when dynamic attributes, loyalty points, stamp counters, tier level, or stored value change.
Pass Validatedpass_validated (pass.validated)APP_SCAN_CREATEDFires when a barcode or NFC credential is scanned via Passinstance Scanner or /api/v1/scans.
Pass Removed From Walletpass_removed (pass.removed)PUSHNOTIFICATION_UNREGISTEREDFires when a pass holder removes or unregisters the pass from their wallet device.
Pass Voidedpass_voided (pass.voided)PASS_VOIDEDFires when an issued pass or voucher is explicitly voided, revoked, or deactivated.
Pass Expiredpass_expired (pass.expired)PASS_VOIDED (lifecycle: expired)Fires when a pass reaches its expiration boundary or expires through lifecycle enforcement.
E-Commerce · Issue & Email

Paid Order -> Issue & Email Wallet Pass

Automatically creates a signed Apple & Google Wallet loyalty or gift pass and emails the direct smart installation link in one atomic workflow.

Trigger: Shopify / Stripe / WooCommerce: Order Paid
Action: Passinstance: Issue Pass (with Delivery email + External reference = Order ID)
CRM · Lookup & Sync

CRM Tier Upgrade -> Find Pass & Update

Locates the member's pass by email or external reference and pushes live updated attributes directly to installed phones.

Trigger: HubSpot / Salesforce / Airtable: Contact Tier Updated
Action: Passinstance: Find Pass Holder -> Update Pass (tier + points)
In-Store · Scan Telemetry

Pass Validated -> Log Visit & Trigger Follow-Up

Streams store check-ins and redemptions into BI sheets or team channels while sending a thank-you wallet update.

Trigger: Passinstance: Pass Validated (app_scan_created)
Action: Google Sheets / Slack / Email + Passinstance: Send Pass Notification
Billing · Lifecycle Control

Subscription Cancelled / Refund -> Deactivate Pass

Finds the active card by external reference or email and immediately deactivates it across both mobile wallets.

Trigger: Stripe / Billing / Form: Membership Ended
Action: Passinstance: Find Pass -> Deactivate Pass

OAuth 2.0 Scopes, Security Guardrails & Troubleshooting

All Zapier requests are isolated to your workspace tenant, scoped by explicit OAuth 2.0 permissions, protected against duplicate retries, and revocable in one click.

Least-Privilege OAuth & Instant Revocation

Passinstance issues workspace-scoped OAuth 2.0 tokens across 7 explicit scopes and pins allowed API environments to https://api.passinstance.com/api/v1 and https://api-staging.passinstance.com/api/v1. Revoking a connection in Dashboard -> Connected Applications invalidates active access immediately.

Retry Safety, SSRF Guard & Rate-Limit Resilience

REST Hook URLs must be public HTTPS endpoints. On transient HTTP 408/429/5xx responses, Zapier follows Passinstance Retry-After throttling while Passinstance Idempotency-Key deduplication prevents duplicate pass issuance or push alerts.

Granted OAuth 2.0 Scopes Reference

ScopeCovered EndpointsPurpose
workspace:readGET /api/v1/meReads workspace & user identity for Zapier connection labeling.
templates:readGET /api/v1/templates · /api/v1/integrations/templates/:id/attributesLists workspace templates and loads dynamic custom attribute schemas.
passes:readGET /api/v1/passes · GET /api/v1/passes/:idPowers Find Pass searches, dynamic pass dropdowns, and test samples.
passes:writePOST /api/v1/passes · PATCH /api/v1/passes/:id · /deactivate · /send-emailIssues new passes, updates dynamic fields, sends delivery emails, and deactivates cards.
notifications:writePOST /api/v1/push-notifications/passes/:passIdSends targeted wallet lock-screen update notifications for installed passes.
webhooks:readGET /api/v1/webhook-subscriptionsInspects OAuth-managed REST hook subscriptions belonging to your tenant.
webhooks:writePOST /api/v1/webhook-subscriptions · DELETE /api/v1/webhook-subscriptions/:idAutomatically creates and removes Zap trigger subscriptions on Zap ON/OFF.

Common Issues & Resolution Checklist

SymptomCauseResolution
Custom template attributes do not appear in Issue Pass / Update PassAttributes marked Read-only, Hidden, or Archived in Studio are intentionally excluded from writable Zapier input fields, or no Template is selected yet.Open Templates -> Custom attributes in Studio, verify fields are active and writable, save/publish, and click Refresh fields in Zapier.
Duplicate passes or double notifications during retriesSource event ID (idempotencyKey) was left blank across runs or mapped to a constantly changing timestamp instead of the upstream event ID.Map Source event ID strictly to a deterministic unique trigger event ID or record UUID (e.g. Trigger Event ID).
Zap fails with 401 Unauthorized after running previouslyOAuth connection was revoked in Workspace Settings -> Connected Applications, or the Zapier connection points to Staging instead of Production.Reconnect your Passinstance account in Zapier selecting the intended API Environment (api.passinstance.com for live traffic).
Zap receives HTTP 429 Rate Limit or Quota Exceeded (400)Burst traffic exceeded workspace per-minute/daily API limits or active pass/webhook quotas for your plan.Zapier automatically throttles and retries 429 responses using Retry-After; review workspace usage and quotas in Dashboard -> Billing.

Frequently asked questions about Passinstance & Zapier

What must a new Passinstance user do step by step to start using Zapier?

First create and publish a template in Passinstance Studio with any writable custom attributes you want to populate (avoiding Read-only/Hidden flags). Next, authorize your Passinstance workspace via OAuth 2.0 in Zapier (selecting Production api.passinstance.com), map your Trigger/Action fields plus a unique Source event ID, and turn the Zap ON.

What is the difference between the Passinstance Zapier App and Developer Webhooks?

The Passinstance Zapier integration uses OAuth 2.0 to subscribe automatically to 7 instant REST hooks when Zaps turn ON and dynamically loads your template attributes inside actions and searches. Standard Developer Webhooks (Workspace Settings -> Developer -> Webhooks) remain available anytime with X-Webhook-Signature (HMAC-SHA256) and X-API-Key REST calls — ideal if you already build custom Webhooks by Zapier steps.

Why is there no inbound Zapier webhook URL inside Platform Connectors?

Unlike Shopify or Stripe where external stores push into /webhooks/<vendor>, Zapier acts as an OAuth 2.0 client calling /api/v1/* endpoints and subscribing to Passinstance's outgoing webhook events (/api/v1/webhook-subscriptions). No manual inbound webhook path needs to be copied for Zapier.

How do my template's custom fields appear inside Issue Pass and Update Pass?

When you select a Template in Issue Pass (or a Pass in Update Pass), Zapier invokes GET /api/v1/integrations/templates/:templateId/attributes and converts writable text, number, boolean, date, and choice properties into native mapped fields automatically.

Where can I inspect or immediately revoke Zapier's access and webhook subscriptions?

Open Workspace Settings -> Integrations -> Connected Applications (/account/settings/workspace/connected-apps) to inspect active OAuth connections and revoke all Zapier tokens immediately. You can also view or remove individual active webhook subscriptions under Workspace Settings -> Developer -> Webhooks.

Are duplicate triggers or retries deduplicated automatically?

Yes. All Passinstance write actions compute an explicit Idempotency-Key header scoped to your Zap ID and Source event ID (or stable input digest), and Passinstance's REST hook trigger automatically ignores Zapier's synthetic webhook test pings and filters stale duplicates.

Connect Apple Wallet & Google Wallet to your automation stack

Publish a template with writable custom attributes, connect Zapier via OAuth 2.0 or signed webhooks, and monitor every Zap execution cleanly.

Grand Palazzo
Elite
BALANCE1,200 pts
MEMBER NO.GP-84920
HOLDER
VALID UNTIL12/2027
GP-2026-84920