> ## 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.

# Deactivate License

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

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

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

Endpoint:

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

```Sandbox Sandbox theme={null}
https://api.mayar.io/saas/v1/license/deactivate
```

## Authorization

**Authorization** `string` *required*

Example:

`Authorization | Bearer Paste-Your-API-Key-Here`

## Request Body

**licenseCode** `string` *required*

The license code to be deactivate.

**productId** `string` *required*

The ID of the product associated with the license.

## Response

Successful Response

### Main Structure (Root)

**statusCode** `integer`

Status code form API.

**messages** `string`

Status message that describes the status code.

> [!NOTE]
>
> By performing this action, the status of the license code will change to INACTIVE.


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