> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# voidPurchase

> Void a member's one-time Payment Plan purchase — revoke their access and archive the purchase. Does not refund money.

**Required scope:** `host:write:network_plans`



**mutation** `voidPurchase(input: VoidPurchaseInput!): VoidPurchasePayload`

## Arguments

**`input`**: `VoidPurchaseInput!` (required)

Parameters for VoidPurchase

## Returns

`VoidPurchasePayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

---

**`purchase`**: `Purchase`

## Examples

```graphql Mutation
mutation VoidPurchase($input: VoidPurchaseInput!) {
  voidPurchase(input: $input) {
    clientMutationId
    errors
    purchase {
      amount
      couponRedemption {
        completed
        coupon {
          __typename
        }
        createdAt
        id
        member {
          __typename
        }
        plan {
          __typename
        }
      }
      createdAt
      currency
      devicePlatform
      id
    }
  }
}
```

```json Variables
{
  "input": {
    "id": "id"
  }
}
```

```json Response
{
  "data": {
    "voidPurchase": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "purchase": {
        "amount": 1,
        "couponRedemption": {
          "completed": true,
          "coupon": {
            "__typename": "PaymentCoupon"
          },
          "createdAt": "value",
          "id": "id",
          "member": {
            "__typename": "User"
          },
          "plan": {
            "__typename": "PaymentPlan"
          }
        },
        "createdAt": "value",
        "currency": "string",
        "devicePlatform": "string",
        "id": "id"
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.