WalletPassAPI Docs

API reference · Passes

Delete a revoked pass

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

Deletes a revoked pass's content and holder details now, rather than 30 days after it was revoked. Only its serial number is kept.

Path

serialstringrequired

The pass's serialNumber.

Answer

200Deleted

Deleting it again answers alreadyErased: true.

Errors

Every error has the same shape: see Errors.

StatusCodeWhen
404not_foundNo pass with that serial number in this workspace.
409pass_not_revokedRevoke it first, so holders' copies are voided.
409revoked_too_recentlyIt was revoked less than 24 hours ago: phones need time to receive the voided copy.
409idempotency_conflictThe Idempotency-Key was already used for a different request.