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

# Verify License

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

<RequestExample>
  ```bash Request Example theme={null}
  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"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json Response Example 200 theme={null}
  {
      "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"
      }
  }
  ```
</ResponseExample>

Endpoint:

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

  ```Sandbox Sandbox theme={null}
  https://api.mayar.club/software/v1/license/verify
  ```
</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 is to be activated.
</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>

<ParamField path="isLicenseActive" type="boolean" required>
  Shows whether the license is currently active (`true` or `false`).
</ParamField>

<ParamField path="licenseCode" type="array of object">
  Detailed information about the license code.
</ParamField>

### licenseCode Structure (Array Of Object)

<ParamField path="licenseCode" type="string" required>
  The license code value.
</ParamField>

<ParamField path="status" type="string" required>
  License status (example: `"ACTIVE"`).
</ParamField>

<ParamField path="expiredAt" type="string (ISO 8601 datetime)" required>
  License expiration date.
</ParamField>

<ParamField path="transactionId" type="string<uuid>" required>
  Related transaction ID.
</ParamField>

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

<ParamField path="customerId" type="string<uuid>" required>
  Customer ID linked to the license.
</ParamField>

<ParamField path="customerName" type="string" required>
  Customer’s full name.
</ParamField>

<ParamField path="customerEmail" type="string" required>
  Customer’s email address.
</ParamField>

<ParamField path="activationLimit" type="string" required>
  Maximum number of allowed activations (example: `"Tidak terbatas"` → means “Unlimited”).
</ParamField>

<ParamField path="useCount" type="number" required>
  Number of times the license has been used.
</ParamField>

<ParamField path="createdAt" type="string (ISO 8601 datetime)" required>
  License creation timestamp.
</ParamField>

<ParamField path="updatedAt" type="string (ISO 8601 datetime)" required>
  Last updated timestamp.
</ParamField>


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