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

# Withdraw a change

> Withdraws a change that waits for its payment or its date. Refused with
a 422: a price change, the difference left by an upgrade for a period
paid at the old price (`follow_up`), a scheduled change once a
period on its new terms is paid, and a billing cycle change while a
later renewal is already invoiced. Needs `services.manage`.



## OpenAPI

````yaml /api-reference/console/openapi.json delete /services/{service}/changes/{change}
openapi: 3.1.2
info:
  title: PerfGrid API
  version: 1.0.0
  description: >-
    The PerfGrid customer API. A member creates a token for one billing account
    under *API tokens* in the panel; it can do what both the token's permissions
    and the member's own permissions allow, the same as the panel.


    Send it as `Authorization: Bearer pgapi_...`. Each token may make 120
    requests a minute, of which 30 change something; a `429` response says when
    to try again (`Retry-After`). Ids are the ULIDs the API returns; amounts are
    decimal strings next to their currency; lists are newest first and paged
    with `cursor` (`meta.next_cursor`). Messages are in English, or Danish with
    `Accept-Language: da`.


    The same tokens work with the MCP server at `/mcp` for AI assistants.
servers:
  - url: https://console.perfgrid.com/api/v1
security:
  - http: []
tags:
  - name: Account
  - name: Invoices
  - name: Services
  - name: Domains
  - name: Support
paths:
  /services/{service}/changes/{change}:
    delete:
      tags:
        - Services
      summary: Withdraw a change
      description: |-
        Withdraws a change that waits for its payment or its date. Refused with
        a 422: a price change, the difference left by an upgrade for a period
        paid at the old price (`follow_up`), a scheduled change once a
        period on its new terms is paid, and a billing cycle change while a
        later renewal is already invoiced. Needs `services.manage`.
      operationId: v1.services.changes.destroy
      parameters:
        - name: service
          in: path
          required: true
          schema:
            type: string
        - name: change
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: '`ServiceChangeResource`'
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/ServiceChangeResource'
                required:
                  - data
        '404':
          $ref: '#/components/responses/ModelNotFoundException'
components:
  schemas:
    ServiceChangeResource:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - upgrade
            - downgrade
            - option_change
            - addon_added
            - cycle_change
            - price_change
            - due_date_move
            - domain_change
            - follow_up
            - option_discount
        status:
          type: string
          enum:
            - pending_payment
            - scheduled
            - applied
            - canceled
        currency:
          type: string
        amount:
          type:
            - string
            - 'null'
        effective_on:
          type:
            - string
            - 'null'
        covered_until:
          type:
            - string
            - 'null'
        invoice:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
            reference:
              type: string
            status:
              type: string
              enum:
                - unpaid
                - paid
                - canceled
                - held
          required:
            - id
            - reference
            - status
        created_at:
          type:
            - string
            - 'null'
      required:
        - id
        - type
        - status
        - currency
        - amount
        - effective_on
        - covered_until
        - invoice
        - created_at
      title: ServiceChangeResource
  responses:
    ModelNotFoundException:
      description: Not found
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
                description: Error overview.
            required:
              - message
  securitySchemes:
    http:
      type: http
      description: >-
        An API token from *API tokens* in the console, sent as `Authorization:
        Bearer pgapi_...`. It works for one billing account, and its permissions
        decide which endpoints it may call.
      scheme: bearer

````

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