Skip to main content
curl --request POST 'https://api.mayar.id/software/v2/license/verify' \
--header 'Authorization: Bearer Paste-Your-API-Key-Here' \
--header 'Content-Type: application/json' \
--data-raw '{
    "licenseCode": "YOUR-LICENSE-CODE",
    "productId": "YOUR-PRODUCT-ID"
}'
{
    "statusCode": 200,
    "isLicenseActive": true,
    "licenseCode": {
        "licenseCode": "LICENSECODE12345",
        "status": "ACTIVE",
        "expiredAt": "2026-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/v2/license/verify

Authorization

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

Request Body

licenseCode
string
required
The license code to verify.
productId
string
required
The ID of the product (payment link) associated with the license.

Response

Successful Response

Main Structure (Root)

statusCode
integer
Status code from the API.
isLicenseActive
boolean
Shows whether the license is currently active (true or false).
licenseCode
object
Detailed information about the license code.

licenseCode Structure (Object)

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

Errors

400 Bad Request
object
Returned when licenseCode or productId is missing or invalid.
401 Unauthorized
object
Returned when the Authorization header is missing or invalid.
404 Not Found
object
Returned when the license code or product is not found.
400 Activation limit reached
object
Returned when the license has reached its maximum activation limit.