> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/deprecated/llms.txt)
> Source: https://docs.saleor.io/api-reference/deprecated/payments/mutations/payment-void

# paymentVoid Mutation

DEPRECATED

The legacy Payments API is deprecated and will be removed. Use the Transactions API instead.

Voids the authorized payment.

Requires the MANAGE\_ORDERS permission.

```graphql
paymentVoid(
  paymentId: ID!
): PaymentVoid @deprecated
```

Details

```graphql
type PaymentVoid {
  payment: Payment
  paymentErrors: [PaymentError!]! @deprecated
  errors: [PaymentError!]!
}
```

<a id="arguments"></a>

### Arguments

<a id="payment-id"></a>

#### [`paymentId`](#payment-id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

Payment ID.

<a id="type"></a>

### Type

<a id="paymentvoid"></a>

#### [`PaymentVoid`](/api-reference/payments/objects/payment-void.md)

Voids the authorized payment.

Requires the MANAGE\_ORDERS permission.
