# CancelPaymentInput

Input for `cancelPayment`. Cancels a payment that waits for the customer (`PENDING`) or voids an authorization before capture (`AUTHORIZED`).

```
input CancelPaymentInput {

  paymentId: ID!

  cancellationReason: CancellationReason

}
```

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

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

ID of the payment to cancel (`Charge.id`).

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

The reason for canceling the Payment (Cancellation reason).

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

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