> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/payments/llms.txt)
> Source: https://docs.saleor.io/api-reference/payments/mutations/payment-gateway-initialize-tokenization

# paymentGatewayInitializeTokenization Mutation

Initializes payment gateway for tokenizing payment method session.

Requires the AUTHENTICATED\_USER permission.

Triggers the following webhook events:

-   PAYMENT\_GATEWAY\_INITIALIZE\_TOKENIZATION\_SESSION (sync): The customer requested to initialize payment gateway for tokenization.

```graphql
paymentGatewayInitializeTokenization(
  channel: String!
  data: JSON
  id: String!
): PaymentGatewayInitializeTokenization
```

Details

```graphql
type PaymentGatewayInitializeTokenization {
  result: PaymentGatewayInitializeTokenizationResult!
  data: JSON
  errors: [PaymentGatewayInitializeTokenizationError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="channel"></a>

#### [`channel`](#channel) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

Slug of a channel related to tokenization request.

<a id="data"></a>

#### [`data`](#data) ● [`JSON`](/api-reference/miscellaneous/scalars/json.md)

The data that will be passed to the payment gateway.

<a id="id"></a>

#### [`id`](#id) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The identifier of the payment gateway app to initialize tokenization.

<a id="type"></a>

### Type

<a id="paymentgatewayinitializetokenization"></a>

#### [`PaymentGatewayInitializeTokenization`](/api-reference/payments/objects/payment-gateway-initialize-tokenization.md)

Initializes payment gateway for tokenizing payment method session.

Requires the AUTHENTICATED\_USER permission.

Triggers the following webhook events:

-   PAYMENT\_GATEWAY\_INITIALIZE\_TOKENIZATION\_SESSION (sync): The customer requested to initialize payment gateway for tokenization.
