# createPaymentRule

Creates a payment rule.

```
createPaymentRule(

  input: CreatePaymentRuleInput!

): PaymentRule!
```

### Arguments[​](#arguments "Direct link to Arguments")

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

### Type[​](#type "Direct link to Type")

#### [`PaymentRule`](https://docs.monei.com/apis/graphql/types/objects/payment-rule/.md) object[​](#paymentrule- "Direct link to paymentrule-")

Merchant-defined rule evaluated per transaction. When `conditions` match, `action` is applied (e.g. route the transaction to a provider, hide a payment method at checkout, or decline).
