Unlock Virtual Card

The unlockVirtualCard mutation allows you to unlock a previously locked virtual card, restoring its ability to process transactions. This mutation requires the EDIT_VIRTUALCARD scope.

Arguments

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

UnlockVirtualCardInput Fields

FieldTypeDescriptionRequired
virtualCardIdUUID!The virtual card to unlock.Yes

Sample Mutation

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

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 { unlockVirtualCard(input: { virtualCardId: \"07df5653-43a8-4532-9881-3ab5857bbe11\" }) { virtualCardId unlocked } }"
  }'

Sample Response

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

Response Field Explanations

  • virtualCardId (UUID): The unique identifier of the virtual card that was targeted for unlocking.
  • unlocked (Boolean): Indicates whether the card was successfully unlocked.