# CancelPaymentInput

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

```
input CancelPaymentInput {

  paymentId: ID!

  cancellationReason: CancellationReason

}
```

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

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

Payment id to cancel.

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

The reason for canceling the Payment.

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

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