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

# paymentMethodInitializeTokenization Mutation

Tokenize payment method.

Requires the AUTHENTICATED\_USER permission.

Triggers the following webhook events:

-   PAYMENT\_METHOD\_INITIALIZE\_TOKENIZATION\_SESSION (sync): The customer requested to tokenize payment method.

```graphql
paymentMethodInitializeTokenization(
  channel: String!
  data: JSON
  id: String!
  paymentFlowToSupport: TokenizedPaymentFlowEnum!
): PaymentMethodInitializeTokenization
```

Details

```graphql
type PaymentMethodInitializeTokenization {
  result: PaymentMethodTokenizationResult!
  id: String
  data: JSON
  errors: [PaymentMethodInitializeTokenizationError!]!
}
```

<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 payment method tokenization.

<a id="payment-flow-to-support"></a>

#### [`paymentFlowToSupport`](#payment-flow-to-support) ● [`TokenizedPaymentFlowEnum!`](/api-reference/payments/enums/tokenized-payment-flow-enum.md)

The payment flow that the tokenized payment method should support.

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

### Type

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

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

Tokenize payment method.

Requires the AUTHENTICATED\_USER permission.

Triggers the following webhook events:

-   PAYMENT\_METHOD\_INITIALIZE\_TOKENIZATION\_SESSION (sync): The customer requested to tokenize payment method.
