WalletPassAPI Docs

API reference · Passes

Send a notification

POST/v1/passes/{serial}/notifications1 operationSafe to retry with Idempotency-Key

Shows a message on holders' lock screens, and keeps it in the pass's Latest message field.

Path

serialstringrequired

The pass's serialNumber.

Body

messagestring, up to 256 charactersrequired

What holders see.

Answer

200Sent

The same as an update's, with the message. firstMessage is true when the pass had no Latest message field before: this one adds it, and may not show a banner.

Errors

Every error has the same shape: see Errors.

StatusCodeWhen
400validation_errorNo message, it's too long, or it has a placeholder such as {{name}}: messages are sent exactly as written.
404not_foundNo pass with that serial number in this workspace.
409pass_not_activeIt's revoked, or not published yet.
409idempotency_conflictThe Idempotency-Key was already used for a different request.
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.