# cancelPayment

Cancels a payment. `PENDING` payments and Bizum payments are canceled directly; other methods are voided through the processor. Already-captured payments cannot be canceled (use `refundPayment`).

```
cancelPayment(

  input: CancelPaymentInput!

): Payment
```

### Arguments[​](#arguments "Direct link to Arguments")

#### [`cancelPayment.input`](#input) ● [`CancelPaymentInput!`](https://docs.monei.com/apis/graphql/types/inputs/cancel-payment-input/.md) non-null input[​](#input "Direct link to input")

### Type[​](#type "Direct link to Type")

#### [`Payment`](https://docs.monei.com/apis/graphql/types/objects/payment/.md) object[​](#payment- "Direct link to payment-")

Payment returned from create/refund/capture/cancel and the send-link/receipt mutations.
