All pages
Powered by GitBook
1 of 1

Loading...

Licensing Sample

Logon

Request

POST api/Session/logon

Headers

Body

Response

Activate license

Request

Response

Retrieve license details

Request

Response

Deactivate license

Request

Response

LogOff

Request

Response

Status:OK (200)

POST api/License/activate

Headers

Body

Status:Bad Request (400)

GET api/License

Headers

Status:OK (200)

POST api/License/deactivate

Headers

Body

Status:Bad Request (400)

POST api/Session/logoff

Headers

Status:OK (200)

{
  "username":"administrator",
  "password":"11112222"
}
{
  "authToken": "[AUTHENTICATION_TOKEN]"
}
Content-Type: application/json; api-version=1.0
auth_token: [AUTHENTICATION_TOKEN]
{
  "email":"[email protected]",
  "password":"11112222",
  "key":"XXX"
}
{
  "code": 0,
  "msg": "invalid login or password"
}
Content-Type: application/json; api-version=1.0
auth_token: [AUTHENTICATION_TOKEN]
{
"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
}
Content-Type: application/json; api-version=1.0
auth_token: [AUTHENTICATION_TOKEN]
{
  "email":"[email protected]",
  "password":"11112222"
}
{
  "code": 0,
  "msg": "Failed to Deactivate - Product not activated with a license key."
}
Content-Type: application/json; api-version=1.0
auth_token: [AUTHENTICATION_TOKEN]
Content-Type: application/json; api-version=1.0