Skip to main content
The lockVirtualCard mutation allows you to lock an existing virtual card, preventing further transactions.
Prerequisites: a user access token with the EDIT_VIRTUALCARD scope, and the virtualCardId of the card to lock.

Arguments

  • input (LockVirtualCardInput!): The input object containing the ID of the virtual card to lock.

LockVirtualCardInput fields

Sample mutation

cURL example

Sample response

Response fields

To lock a card automatically after its first successful authorization, set lockCardNextUse: true at creation instead — see Create Virtual Card.

Next steps

Unlock a virtual card

Re-enable a locked card so authorizations succeed again.