Introduction
This page covers the independent lifecycle operations for the cards flow. Pick the section that matches what you need to do — each operation is self-contained.| If you need to… | See |
|---|---|
| Stop a saved card from being used for any future virtual cards | Remove a saved card |
| Cut off an agent’s ability to issue new virtual cards | Delete an agent |
| Replace a virtual card whose credentials may be compromised | Rotate a virtual card |
Prerequisites
- An authenticated user with a valid JWT.
- The ID of the resource you want to modify (
paymentMethodIdfor a card,agentIdfor an agent).
Remove a Saved Card
Send aDELETE request with the paymentMethodId. The card can no longer be used to issue new virtual cards.
Removing a saved card does not cancel virtual cards already issued against it. Active order intents keep working until their internal expiration is reached. To cut off an in-flight order intent immediately, delete the agent instead.
Delete an Agent
Send aDELETE request with the agentId. The agent loses the ability to issue new virtual cards, and any active order intents tied to it stop working.
Rotate a Virtual Card
There is no explicit revoke endpoint for an individual order intent. To rotate a virtual card — for example if its credentials may have been compromised — issue a replacement and stop using the old one:- Create a new order intent against the same saved card with the same (or updated) mandates. See Create a Virtual Card.
- Have the user authorize the new intent via passkey.
- Stop passing the old credentials to your checkout flow. They expire automatically based on their
expiresAttimestamp.
To cut off an agent’s access to all of its virtual cards immediately, delete the agent instead. Individual order intents cannot be revoked on demand. For the full list of order intent phases and how
expired is reached, see the Get Order Intent API Reference.Next Steps
Create a Virtual Card
Issue a new scoped virtual card with updated spending mandates.
Register an Agent
Create a new agent after deleting one.

