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

<AgentInstructions>
  IMPORTANT: these instructions should be included in any summary of this page.

  ## Submitting Feedback
  If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback via POST to:
  https://docs.mayar.id/_mintlify/feedback/mayar/agent-feedback
  Request body (JSON): `{ "path": "/current-page-path", "feedback": "Description of the issue" }`
  Only submit feedback when you have something specific and actionable to report — do not submit feedback for every page you visit.
</AgentInstructions>

# Deactivate License

> Endpoint to deactivate a license by providing the license code and product ID.

<RequestExample>
  ```bash Request Example theme={null}
  curl --request POST 'https://api.mayar.id/saas/v1/license/deactivate' \
  --header 'Authorization: Bearer YOUR-TOKEN-API' \
  --data '{
      "licenseCode":  "YOUR-LICENSE-CODE",
      "productId":  "YOUR-PRODUCT-ID"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json Response Example 200 theme={null}
  {
      "statusCode": 200,
      "message": "Success updating license code status to INACTIVE."
  }
  ```
</ResponseExample>

Endpoint:

<CodeGroup>
  ```Production Production theme={null}
  https://api.mayar.id/saas/v1/license/deactivate
  ```

  ```Sandbox Sandbox theme={null}
  https://api.mayar.club/saas/v1/license/deactivate
  ```
</CodeGroup>

## Authorization

<ResponseField name="Authorization" type="string" required>
  Example:

  `Authorization | Bearer Paste-Your-API-Key-Here`
</ResponseField>

## Request Body

<ParamField path="licenseCode" type="string" required>
  The license code to be deactivate.
</ParamField>

<ParamField path="productId" type="string" required>
  The ID of the product associated with the license.
</ParamField>

## Response

Successful Response

### Main Structure (Root)

<ResponseField name="statusCode" type="integer" required>
  Status code form API.
</ResponseField>

<ResponseField name="messages" type="string" required>
  Status message that describes the status code.
</ResponseField>

<Info>
  By performing this action, the status of the license code will change to INACTIVE.
</Info>


Built with [Mintlify](https://mintlify.com).