SDK Reference/revoke()
revoke()
Immediately revokes a card. Any subsequent charge attempt on a revoked card is declined at the network level. Revocation is permanent and cannot be undone.
Signature
client.revoke(cardId: string): Promise<void>⚠
Revocation is irreversible. You must issue a new card if spending needs to resume.
Example
revoke.ts
// Revoke immediately — all future charges are declined
await client.revoke('card_9x2kj7...')
// Or revoke by card object
const cards = await client.list({ status: 'active' })
await Promise.all(cards.map(c => client.revoke(c.id)))