📃License
License API methods are whitelisted during authorization procedure, allowing them to be accessed without requiring authorization.
API methods
Get product license
GET http://{server-address}/license
Result is of type License.
{
"shopId": 123456,
"activationTime": "2022-03-29T11:38:06Z",
"expirationTime": "2030-02-23T23:00:00Z",
"verificationTime": "2023-07-17T08:53:41.685Z",
"verificationInterval": "1.00:00:00",
"features":
[
{
"productSku": "MaxDeviceCount",
"rawValue": "2",
"name": "Maximálny počet súčasne pripojiteľných zariadení.",
"activationTime": "2021-03-12T14:37:55Z",
"expirationTime": "2022-03-10T23:00:00Z"
},
{
"productSku": "DKPs",
"rawValue": "88812345678900001,88811223344550000",
"name": "Zoznam kódov on-line registračných pokladníc",
"activationTime": "2021-03-12T14:37:55Z",
"expirationTime": "2022-03-10T23:00:00Z"
}
],
"remainingDays": 2413,
"isExpired": false
}Get license request code
POST http://{server-address}/license/getrequestcode
The request code is used to request an activation code from the licensing authority, which is then used to activate a license. This API provides a means to retrieve the request code. Subsequently, the licensing authority generates the corresponding activation code based on the provided request code.
The method accepts ProductLicenseRequest in request body. Response body contains string representing license request code.
Request Body
*
ProductLicenseRequest
"this-is-an-example-request-code"Activate license using activation code
POST http://{server-address}/license/activate
The method accepts ProductLicenseActivation in request body. Response body contains License model.
Request Body
(body)*
ProductLicenseActivation
{
"shopId": 123456,
"activationTime": "2022-03-29T11:38:06Z",
"expirationTime": "2030-02-23T23:00:00Z",
"verificationTime": "2023-07-17T08:53:41.685Z",
"verificationInterval": "1.00:00:00",
"features":
[
{
"productSku": "MaxDeviceCount",
"rawValue": "2",
"name": "Maximálny počet súčasne pripojiteľných zariadení.",
"activationTime": "2021-03-12T14:37:55Z",
"expirationTime": "2022-03-10T23:00:00Z"
},
{
"productSku": "DKPs",
"rawValue": "88812345678900001,88811223344550000",
"name": "Zoznam kódov on-line registračných pokladníc",
"activationTime": "2021-03-12T14:37:55Z",
"expirationTime": "2022-03-10T23:00:00Z"
}
],
"remainingDays": 2413,
"isExpired": false
}Last updated
Was this helpful?