Renewing Licenses
Understanding license expiry
Whenever you create a license with validity say 30 days, you will see a property in the license resource named expiresAt
. It is a read-only, computed property and determines the time when the license will expire.
If the license expiration strategy for a license (or its template) is set to immediate
, the expiresAt
property will be populated with the date on which the license will expire starting from the time when the license was created.
If the license expiration strategy for a license (or its template) is set to delayed
, the expiresAt
property will be null
till the license is activated, as the license will start expiring after it is used.
If the license expiration strategy for a license (or its template) is set to rolling
, the expiresAt
the property will always be null
as license expiry is specific to each activation. In this case, you can refer to expiresAt
property of license activation.
Renewing license expiry
To renew the license subscription you need to hit the license renew endpoint. It extends the license expiry by its validity.
Renewing license
POST
https://api.cryptlex.com/v3/licenses/:id/renew
Path Parameters
Name | Type | Description |
---|---|---|
id | string | Unique identifier for the license. |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer access token. |
Last updated