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

# Void Credit Grant

Voids an existing credit grant, removing the associated credits from the customer's balance.

## Mutation

<CodeGroup>
  ```graphql Mutation theme={null}
  mutation VoidCreditGrant($input: VoidCreditGrantInput!) {
    voidCreditGrant(input: $input) {
      id
      status
    }
  }
  ```

  ```json Variables theme={null}
  {
    "input": {
      "creditGrantId": "grant-123"
    }
  }
  ```

  ```json Response theme={null}
  {
    "data": {
      "voidCreditGrant": {
        "id": "grant-123",
        "status": "VOID"
      }
    }
  }
  ```
</CodeGroup>

## Parameters

<ParamField body="input" type="VoidCreditGrantInput" required>
  Input for voiding a credit grant

  <Expandable title="properties">
    <ParamField body="creditGrantId" type="UUID" required>
      Credit grant ID to void
    </ParamField>

    <ParamField body="environmentId" type="UUID">
      Environment ID
    </ParamField>
  </Expandable>
</ParamField>

<Warning>
  Overdraft credit grants cannot be voided via the API. They are automatically voided when fully settled by a new credit grant. Attempting to void an overdraft grant will return an error: `"Overdraft credit grants cannot be voided"`.
</Warning>

## Return Type

Returns the voided `CreditGrant` with updated status.

## Related Operations

* [Create Credit Grant](/api-and-sdks/api-reference/mutations/create-credit-grant) - Grant credits
* [Credit Grants](/api-and-sdks/api-reference/queries/credit-grants) - List grants
