curl --request POST 'https://api.mayar.id/software/v1/license/verify' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--data '{
    "licenseCode": "YOUR-LICENSE-CODE",
    "productId": "YOUR-PRODUCT-ID"
}'
{
    "statusCode": 200,
    "isLicenseActive": true,
    "licenseCode": {
        "licenseCode": "LICENSECODE12345",
        "status": "ACTIVE",
        "expiredAt": "2025-12-12T19:46:24.000Z",
        "transactionId": "994d4071-a81e-4558-a854-47530eea9b6d",
        "productId": "84d1d247-a8b3-4c7d-96f0-cf276edb7c33",
        "customerId": "6a38cf26-6bab-42c8-92be-72f3a9fd4c33",
        "customerName": "John Doe",
        "customerEmail": "johndoe@gmail.com",
        "activationLimit": "Tidak terbatas",
        "useCount": 10,
        "createdAt": "2024-02-12T08:41:13.579Z",
        "updatedAt": "2024-02-12T08:57:36.047Z"
    }
}
curl --request POST 'https://api.mayar.id/software/v1/license/verify' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--data '{
    "licenseCode": "YOUR-LICENSE-CODE",
    "productId": "YOUR-PRODUCT-ID"
}'
{
    "statusCode": 200,
    "isLicenseActive": true,
    "licenseCode": {
        "licenseCode": "LICENSECODE12345",
        "status": "ACTIVE",
        "expiredAt": "2025-12-12T19:46:24.000Z",
        "transactionId": "994d4071-a81e-4558-a854-47530eea9b6d",
        "productId": "84d1d247-a8b3-4c7d-96f0-cf276edb7c33",
        "customerId": "6a38cf26-6bab-42c8-92be-72f3a9fd4c33",
        "customerName": "John Doe",
        "customerEmail": "johndoe@gmail.com",
        "activationLimit": "Tidak terbatas",
        "useCount": 10,
        "createdAt": "2024-02-12T08:41:13.579Z",
        "updatedAt": "2024-02-12T08:57:36.047Z"
    }
}
Endpoint:
https://api.mayar.id/software/v1/license/verify

Authorization

Authorization
string
required
Example:Authorization | Bearer Paste-Your-API-Key-Here

Request Body

licenseCode
string
required
The license code is to be activated.
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.
isLicenseActive
boolean
required
Shows whether the license is currently active (true or false).
licenseCode
array of object
Detailed information about the license code.

licenseCode Structure (Array Of Object)

licenseCode
string
required
The license code value.
status
string
required
License status (example: "ACTIVE").
expiredAt
string (ISO 8601 datetime)
required
License expiration date.
transactionId
string<uuid>
required
Related transaction ID.
productId
string<uuid>
required
ID of the associated product.
customerId
string<uuid>
required
Customer ID linked to the license.
customerName
string
required
Customer’s full name.
customerEmail
string
required
Customer’s email address.
activationLimit
string
required
Maximum number of allowed activations (example: "Tidak terbatas" → means “Unlimited”).
useCount
number
required
Number of times the license has been used.
createdAt
string (ISO 8601 datetime)
required
License creation timestamp.
updatedAt
string (ISO 8601 datetime)
required
Last updated timestamp.