Lock Virtual Card

The lockVirtualCard mutation allows you to lock an existing virtual card, preventing further transactions. This mutation requires the EDIT_VIRTUALCARD scope.


Arguments

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

LockVirtualCardInput Fields

FieldTypeDescriptionRequired
virtualCardIdUUID!The virtual card to lock.Yes

Sample Mutation

mutation {
  lockVirtualCard(input: { virtualCardId: "07df5653-43a8-4532-9881-3ab5857bbe11" }) {
    virtualCardId
    locked
  }
}

cURL Example

curl -X POST \
  https://transactional-graph.staging.fluzapp.com/api/v1/graphql \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_USER_ACCESS_TOKEN' \
  -d '{
    "query": "mutation { lockVirtualCard(input: { virtualCardId: \"07df5653-43a8-4532-9881-3ab5857bbe11\" }) { virtualCardId locked } }"
  }'

Sample Response

{
  "data": {
    "lockVirtualCard": {
      "virtualCardId": "07df5653-43a8-4532-9881-3ab5857bbe11",
      "locked": true
    }
  }
}

Response Field Explanations

  • virtualCardId (UUID): The unique identifier of the virtual card that was targeted for locking.
  • locked (Boolean): A boolean value indicating true if the card was successfully locked, or false otherwise.

Code Example:

Want to learn more? Contact us at [email protected]

Speak with our experts for more info or to request a demo.