# updatePaymentRule

Updates a payment rule. Omitted fields are left unchanged.

```
updatePaymentRule(

  input: UpdatePaymentRuleInput!

): PaymentRule!
```

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

#### [`updatePaymentRule.input`](#input) ● [`UpdatePaymentRuleInput!`](https://docs.monei.com/es/es/apis/graphql/types/inputs/update-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.
