# CreatePaymentRuleInput

Input for `createPaymentRule`.

```
input CreatePaymentRuleInput {

  conditions: AWSJSON!

  action: PaymentRuleActionInput!

  name: String

  priority: Int

  enabled: Boolean

}
```

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

#### [`CreatePaymentRuleInput.conditions`](#conditions) ● [`AWSJSON!`](https://docs.monei.com/apis/graphql/types/scalars/awsjson/.md) non-null scalar[​](#conditions "Direct link to conditions")

JsonLogic expression evaluated against the transaction context. JSON-encoded string.

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

Action to apply when `conditions` match.

#### [`CreatePaymentRuleInput.name`](#name) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string/.md) scalar[​](#name "Direct link to name")

Human-readable label. Optional.

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

Evaluation order; lower runs first. Defaults to 0.

#### [`CreatePaymentRuleInput.enabled`](#enabled) ● [`Boolean`](https://docs.monei.com/apis/graphql/types/scalars/boolean/.md) scalar[​](#enabled "Direct link to enabled")

Whether the rule is evaluated. Defaults to `true`.

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

[`createPaymentRule`](https://docs.monei.com/apis/graphql/operations/mutations/create-payment-rule/.md) mutation
