# PaymentRuleActionInput

Action applied when a rule's `conditions` match. `type` selects which other fields are required (see `PaymentRuleActionType`).

```
input PaymentRuleActionInput {

  type: PaymentRuleActionType!

  category: PaymentRuleCategory!

  providerId: ID

  storeId: ID

  pointOfSaleId: ID

  splits: [PaymentRuleRouteSplitInput!]

  paymentMethods: [PaymentMethods!]

}
```

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

#### [`PaymentRuleActionInput.type`](#type) ● [`PaymentRuleActionType!`](https://docs.monei.com/apis/graphql/types/enums/payment-rule-action-type/.md) non-null enum[​](#type "Direct link to type")

What to do when the rule matches.

#### [`PaymentRuleActionInput.category`](#category) ● [`PaymentRuleCategory!`](https://docs.monei.com/apis/graphql/types/enums/payment-rule-category/.md) non-null enum[​](#category "Direct link to category")

Grouping the action belongs to. Must be consistent with `type` (see `PaymentRuleCategory`).

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

Target provider. Required when `type` is `route_to` or `block_provider`.

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

Target store to tag on the operation (set-if-absent). Required when `type` is `tag_store`.

#### [`PaymentRuleActionInput.pointOfSaleId`](#point-of-sale-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id/.md) scalar[​](#point-of-sale-id "Direct link to point-of-sale-id")

Target point of sale to tag on the operation (set-if-absent). Required when `type` is `tag_pos`.

#### [`PaymentRuleActionInput.splits`](#splits) ● [`[PaymentRuleRouteSplitInput!]`](https://docs.monei.com/apis/graphql/types/inputs/payment-rule-route-split-input/.md) list input[​](#splits "Direct link to splits")

Traffic shares for a split action. Required when `type` is `route_split` (with `providerId`), `tag_store_split` (with `storeId`), or `tag_pos_split` (with `pointOfSaleId`); percentages must sum to 100.

#### [`PaymentRuleActionInput.paymentMethods`](#payment-methods) ● [`[PaymentMethods!]`](https://docs.monei.com/apis/graphql/types/enums/payment-methods/.md) list enum[​](#payment-methods "Direct link to payment-methods")

Payment methods to hide at checkout. Required when `type` is `hide`.

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

[`CreatePaymentRuleInput`](https://docs.monei.com/apis/graphql/types/inputs/create-payment-rule-input/.md) input ● [`UpdatePaymentRuleInput`](https://docs.monei.com/apis/graphql/types/inputs/update-payment-rule-input/.md) input
