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

# Revoke Pending Price Change

> Revoke a price change that was scheduled with effective_type=end_of_period and has not taken effect yet. Immediate changes cannot be revoked.

Revoke a price change that was scheduled with effective\_type=end\_of\_period and has not taken effect yet. Immediate changes cannot be revoked.


## OpenAPI

````yaml openapi/v1-en.yaml POST /api/v1/subscription/{subscription_id}/revoke-price-change
openapi: 3.0.3
info:
  title: Subotiz API
  description: Subotiz OpenAPI
  version: 1.0.0
servers:
  - url: https://{api}.subotiz.com
    variables:
      api:
        default: api
security:
  - sec0: []
tags:
  - name: Subscription
    description: Subscription
  - name: Price
    description: Price
  - name: Trade
    description: Trade
  - name: Payment
    description: Payment
  - name: Checkout Session
    description: Checkout Session
  - name: Customer
    description: Customer
  - name: Customer Portal
    description: Customer Portal
paths:
  /api/v1/subscription/{subscription_id}/revoke-price-change:
    post:
      tags:
        - Subscription
      summary: Revoke Pending Price Change
      description: >-
        Revoke a price change that was scheduled with
        effective_type=end_of_period and has not taken effect yet. Immediate
        changes cannot be revoked.
      operationId: v1-subscription-revoke-price-change
      parameters:
        - name: subscription_id
          in: path
          description: Subscription ID
          required: true
          schema:
            type: string
        - $ref: '#/components/parameters/HeaderRequestID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokePriceChangeRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokePriceChangeResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BaseResponse'
              example:
                code: system_error
                message: Internal server error.
components:
  parameters:
    HeaderRequestID:
      name: Request-Id
      in: header
      description: The unique identifier of the request
      required: true
      schema:
        type: string
        default: 008e3967-a1b5-48bb-be14-d5bff5092e61
  schemas:
    RevokePriceChangeRequest:
      type: object
      properties: {}
      description: >-
        Revoke a scheduled end-of-period price change that has not yet taken
        effect.

        Applicable only to changes scheduled with effective_type=end_of_period.
        Immediate

        price changes cannot be revoked via this API.
    RevokePriceChangeResponse:
      type: object
      properties:
        code:
          type: string
          description: error code
        message:
          type: string
          description: error message
        data:
          $ref: '#/components/schemas/RevokePriceChangeResponse_Data'
      description: >-
        Response for revoke price change.

        result: revoked - the pending end-of-period price change was
        successfully revoked;

        no_pending_change - there was no pending end-of-period change to revoke.
    BaseResponse:
      type: object
      properties:
        code:
          type: string
          description: error code
        message:
          type: string
          description: error message
    RevokePriceChangeResponse_Data:
      type: object
      properties:
        subscription_id:
          type: string
          description: Subscription unique identifier
        result:
          type: string
          description: 'Operation result: revoked / no_pending_change'
      description: >-
        Response for revoke price change.

        result: revoked - the pending end-of-period price change was
        successfully revoked;

        no_pending_change - there was no pending end-of-period change to revoke.
  securitySchemes:
    sec0:
      type: http
      description: >-
        Bearer API Key authentication. Format: Authorization: Bearer
        {your_api_key}
      scheme: bearer

````