WalletPassAPI Docs

API reference · Passes

Update a pass

PUT/v1/passes/{serial}1 operation, only when something changesSafe to retry with Idempotency-Key

Replaces its fields. Installed passes refresh on holders' phones, and a field with a changeMessage shows a notification when its value changes.

Path

serialstringrequired

The pass's serialNumber.

Body

All of the pass's fields, as they should now be: a field you leave out is removed. Or, for a pass with placeholders, only data and holder: they're merged over its values ("" clears one) and its design is filled again.

issuerstring

Optional: the pass's own set. A pass keeps its set for life, so naming another is refused.

dataobject

Values for the placeholders in its text, such as { "points": 120 }.

holderobject

The holder's name and email. Kept with the pass, so you can find one person's passes.

unlinkTemplateboolean

For a pass made from a template: true to replace its design, which stops the template updating it.

Answer

200Updated

notifiedDevices is how many Apple devices are being sent it. platforms: Apple queued, no_devices or no_push_key (its issuer has no push key); Google queued or not_saved.

200Nothing changed

The same fields again: no new version, nothing sent, and no operation used. Safe to send on every change in your system.

Errors

Every error has the same shape: see Errors.

StatusCodeWhen
400validation_errorA field is missing, too long or unknown.
400placeholder_missingA required placeholder has no value.
404not_foundNo pass with that serial number in this workspace.
409pass_revokedIt's revoked, so it can't change.
409template_linkedIt was made from a template: send data and holder, or "unlinkTemplate": true to replace its design.
409external_id_conflictAnother pass has that externalId.
409idempotency_conflictThe Idempotency-Key was already used for a different request.
422issuer_immutableissuer names another set: a pass keeps its set for life.
429usage_limit_exceededThis month's operations on your plan are used up.
429workspace_limit_reachedThis workspace's monthly limit, set by its organization, is used up.
429platform_usage_limitA test pass, and the 1,000 test operations a month are used up.