# CancelPaymentInput

Input for `cancelPayment`. Voids an authorization before capture.

```
input CancelPaymentInput {

  paymentId: ID!

  cancellationReason: CancellationReason

}
```

### Fields[​](#fields "Enlace directo al Fields")

#### [`CancelPaymentInput.paymentId`](#payment-id) ● [`ID!`](https://docs.monei.com/es/es/apis/graphql/types/scalars/id/.md) non-null scalar[​](#payment-id "Enlace directo al payment-id")

Payment id to cancel.

#### [`CancelPaymentInput.cancellationReason`](#cancellation-reason) ● [`CancellationReason`](https://docs.monei.com/es/es/apis/graphql/types/enums/cancellation-reason/.md) enum[​](#cancellation-reason "Enlace directo al cancellation-reason")

The reason for canceling the Payment.

### Member Of[​](#member-of "Enlace directo al Member Of")

[`cancelPayment`](https://docs.monei.com/es/es/apis/graphql/operations/mutations/cancel-payment/.md) mutation
