# createPaymentRule

Creates a payment rule on the authenticated account.

```
createPaymentRule(

  input: CreatePaymentRuleInput!

): PaymentRule!
```

### Arguments[​](#arguments "Enlace directo al Arguments")

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

### Type[​](#type "Enlace directo al Type")

#### [`PaymentRule`](https://docs.monei.com/es/es/apis/graphql/types/objects/payment-rule/.md) object[​](#paymentrule- "Enlace directo al paymentrule-")

Conditional rule the merchant configures to control card routing or payment-method visibility. Rules are evaluated per transaction; when `conditions` match, `action` is applied.
