Licensing Sample
Logon
Request
POST api/Session/logon
Headers
Content-Type: application/json; api-version=1.0
Body
{
"username":"administrator",
"password":"11112222"
}
Response
Status:OK (200)
{
"authToken": "[AUTHENTICATION_TOKEN]"
}
Activate license
Request
POST api/License/activate
Headers
Content-Type: application/json; api-version=1.0
auth_token: [AUTHENTICATION_TOKEN]
Body
{
"email":"[email protected]",
"password":"11112222",
"key":"XXX"
}
Response
Status:Bad Request (400)
{
"code": 0,
"msg": "invalid login or password"
}
Retrieve license details
Request
GET api/License
Headers
Content-Type: application/json; api-version=1.0
auth_token: [AUTHENTICATION_TOKEN]
Response
Status:OK (200)
{
"usageToday": "0",
"currPeriodUsage": "0",
"billingPeriodStart": "03/05/2019 05:30",
"billingPeriodEnd": "02/06/2019 05:30",
"paUserName": "Evgeny Danilenko",
"paCompanyName": "Parallels",
"paUserEmail": "[email protected]",
"licenseKey": "****-ME****-****-B9****-CV55K2",
"supportExpireDate": "23/03/2021",
"upgradeInsurance": "23/03/2021",
"licenseFirstActive": "21/02/2018 12:39",
"licenseStatus": "",
"licenseType": "Parallels Remote Application Server SPLA",
"expiryDate": "21/02/2021",
"installedUsers": "",
"usersPeak": "0",
"usersLicenseInfo": "0",
"gracePeriodState": "",
"gracePeriodDaysLeft": "",
"type": 3
}
Deactivate license
Request
POST api/License/deactivate
Headers
Content-Type: application/json; api-version=1.0
auth_token: [AUTHENTICATION_TOKEN]
Body
{
"email":"[email protected]",
"password":"11112222"
}
Response
Status:Bad Request (400)
{
"code": 0,
"msg": "Failed to Deactivate - Product not activated with a license key."
}
LogOff
Request
POST api/Session/logoff
Headers
Content-Type: application/json; api-version=1.0
auth_token: [AUTHENTICATION_TOKEN]
Response
Status:OK (200)
Last updated
Was this helpful?