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"
}'
{
    "statusCode": 200,
    "message": "Success updating license code status to INACTIVE."
}
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"
}'
{
    "statusCode": 200,
    "message": "Success updating license code status to INACTIVE."
}
Endpoint:
https://api.mayar.id/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
required
Status code form API.
messages
string
required
Status message that describes the status code.
By performing this action, the status of the license code will change to INACTIVE.