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

# Cancel VPS

> To cancel a VPS product, provide either the KVM ID or service ID, along with the type of cancellation you wish to proceed with.




## OpenAPI

````yaml post /kvm/v2/cancel/product
openapi: 3.0.0
info:
  title: EDIS Global ORDER API
  description: >
    Welcome to EDIS Global ORDER API 🚀

    The EDIS Global ORDER API allows seamless integration with our
    infrastructure to automate the entire product lifecycle (ordering and
    cancellations).


    Whether you’re integrating into your billing system or automating your
    service orders, our ORDER API makes managing the product lifecycle of EDIS
    Global services simple and effective. Below is a quick overview to help you
    get started.


    🚀 **Get Started Here**

    Follow these steps to begin using the EDIS Global ORDER API:


    - **Authentication:** Ensure you are authenticated (WHMCS username and
    password)

    - **Explore the Endpoints:** Use the endpoints below to order and cancel VPS
    services in any of our worldwide server locations.


    Available API Endpoints:


    **Payment Methods**

    - POST `get payment methods`
      Retrieve the available payment methods for your order.

    **Billing Cycles**

    - POST `get billingcycles`
      Get available billing cycles for different products.

    **Locations**

    - POST `get locations`
      Fetch all available VPS locations across the globe.

    **Products**

    - POST `get products`
      List the available VPS products and configurations.

    **Place an Order**

    - POST `add order`
      Add a new VPS order to the EDIS Global infrastructure.

    **Cancel a Product**

    - POST `cancel product`
      Cancel a specific product or VPS service.

    For more details on the EDIS Global ORDER API, please refer to the full
    documentation, and feel free to reach out if you have any questions or need
    assistance.


    Happy Coding!

    The EDIS Global Team
  version: 1.0.0
servers:
  - url: https://order.edisglobal.com
    description: Sandbox Server
security: []
paths:
  /kvm/v2/cancel/product:
    post:
      summary: Cancel-VPS.
      description: >
        To cancel a VPS product, provide either the KVM ID or service ID, along
        with the type of cancellation you wish to proceed with.
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/cancel_product_body'
        required: true
      responses:
        '200':
          description: Successfully canceled the product.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_200_7'
        '400':
          description: Bad Request - Invalid parameters or missing fields.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_400_6'
        '401':
          description: Unauthorized - Invalid WHMCS credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_401_6'
        '404':
          description: Not Found - The specified KVM ID or service ID does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_404_3'
      servers:
        - url: https://order.edisglobal.com
          description: Specific endpoint for retrieving cancel a VPS
components:
  schemas:
    cancel_product_body:
      type: object
      properties:
        email:
          type: string
          description: Your WHMCS email address.
          example: yourwhmc_email
        pw:
          type: string
          description: Your WHMCS password.
          example: yourwhmcs_password
        kvmid:
          type: string
          description: The KVM ID to cancel if the service ID is unknown.
          example: kvm_xxxxx_yyyyy
        serviceid:
          type: string
          description: The service ID to cancel if the KVM ID is unknown.
          example: '1234'
        type:
          type: string
          description: >-
            The type of cancellation. Either 'Immediate' or 'End of Billing
            Period'.
          example: End of Billing Period
    inline_response_200_7:
      type: object
      properties:
        status:
          type: string
          example: success
        serviceid:
          type: integer
          example: 123456
        clientid:
          type: integer
          nullable: true
    inline_response_400_6:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Invalid parameters or missing required fields.
        errors:
          type: array
          example:
            - service ID is required
            - cancellation type is invalid
          items:
            type: string
    inline_response_401_6:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: Invalid WHMCS credentials provided.
        suggestion:
          type: string
          example: Please check your credentials and try again.
    inline_response_404_3:
      type: object
      properties:
        status:
          type: string
          example: error
        message:
          type: string
          example: The specified KVM ID or service ID does not exist.
        hint:
          type: string
          example: Please verify the provided KVM ID or service ID and try again.

````