# PaymentAction

Action a payment rule applies when its `conditions` match. Which fields are populated depends on `type`.

```
type PaymentAction {

  type: String!

  providerId: ID

  percentage: Int

  paymentMethod: String

  tokenizationMethod: String

}
```

### Fields[​](#fields "Direct link to Fields")

#### [`PaymentAction.type`](#type) ● [`String!`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) non-null scalar[​](#type "Direct link to type")

Action to apply. One of `route_to`, `force_challenge`, `skip_challenge`, `decline` (card routing), or `hide`, `show` (payment-method visibility).

#### [`PaymentAction.providerId`](#provider-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) scalar[​](#provider-id "Direct link to provider-id")

Provider to route to. Only used when `type` is `route_to`.

#### [`PaymentAction.percentage`](#percentage) ● [`Int`](https://docs.monei.com/apis/graphql/types/scalars/int/.md) scalar[​](#percentage "Direct link to percentage")

Percentage of matching transactions to route to `providerId`, 1-100. Only used when `type` is `route_to`. Use to split traffic across providers.

#### [`PaymentAction.paymentMethod`](#payment-method) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#payment-method "Direct link to payment-method")

Payment method to hide/show (e.g. `card`, `bizum`, `paypal`). Only used when `type` is `hide` or `show`.

#### [`PaymentAction.tokenizationMethod`](#tokenization-method) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#tokenization-method "Direct link to tokenization-method")

Tokenization method to hide/show (e.g. `googlePay`, `applePay`, `clickToPay`). Only used when `type` is `hide` or `show`.

### Member Of[​](#member-of "Direct link to Member Of")

[`PaymentRule`](https://docs.monei.com/apis/graphql/types/objects/payment-rule/.md) object
