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

# Deactivate a license installation

> Deactivates the matching device or server instance and releases its activation slot.



## OpenAPI

````yaml /api-reference/openapi.json post /license/deactivate
openapi: 3.1.0
info:
  title: BillingServ API V2
  description: >-
    Resources and tools for developers to integrate with the BillingServ v2 API.
    v1 is deprecated; use the v2 base URL and bearer-token authentication unless
    an endpoint states otherwise.
  version: '2.0'
servers:
  - url: https://demo.onlinebillingform.com/api/v2
    description: BillingServ demo API
security:
  - bearerAuth: []
tags:
  - name: Customer
  - name: Package
  - name: Group
  - name: Country
  - name: County
  - name: VPN
  - name: Invoice
  - name: Order
  - name: Module
  - name: Report
  - name: Marketing
  - name: Setting
  - name: Checkout
  - name: Usage
  - name: Support
  - name: Licensing
paths:
  /license/deactivate:
    post:
      tags:
        - Licensing
      summary: Deactivate a license installation
      description: >-
        Deactivates the matching device or server instance and releases its
        activation slot.
      operationId: POST_license_deactivate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LicenseDeactivationRequest'
      responses:
        '200':
          description: Deactivation processed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LicenseDeactivationResponse'
        '404':
          description: License key not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LicenseErrorResponse'
        '422':
          description: Request validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
        '429':
          description: Rate limit exceeded
      security: []
components:
  schemas:
    LicenseDeactivationRequest:
      type: object
      properties:
        license_key:
          type: string
        instance:
          type: string
          maxLength: 255
      required:
        - license_key
        - instance
      additionalProperties: false
    LicenseDeactivationResponse:
      type: object
      properties:
        success:
          type: boolean
          const: true
        deactivated:
          type: boolean
      required:
        - success
        - deactivated
    LicenseErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        error:
          type: string
        code:
          type: string
      required:
        - success
        - error
    ValidationErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          const: false
        errors:
          oneOf:
            - type: array
              items:
                type: string
            - type: object
              additionalProperties: true
            - type: string
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'Use `Authorization: Bearer <live_api_key>`.'

````