> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fluz.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Configurar el PIN de una Tarjeta Virtual

> Encolar actualizaciones de PIN en todas las tarjetas virtuales elegibles.

```javascript theme={null}
import { GraphQLClient, gql } from 'graphql-request';

const API_URL = 'https://transactional-graph.staging.fluzapp.com/api/v1/graphql';

const SET_VIRTUAL_CARD_PIN = gql`
  mutation SetVirtualCardPIN {
    setVirtualCardPIN(input: { pin: "1234" }) {
      success
      pinError
    }
  }
`;

const client = new GraphQLClient(API_URL, {
  headers: {
    Authorization: `Bearer <<USER_ACCESS_TOKEN>>`,
    'Content-Type': 'application/json',
  },
});

const response = await client.request(SET_VIRTUAL_CARD_PIN);
console.log(response);
```

Requiere el alcance `CREATE_VIRTUALCARD`.
