Get Customer Licenses

This method will return a list of license keys that belong to a certain customer.

This method is accessed by https://app.cryptolens.io/api/customer/GetCustomerLicenses

Parameters

Parameter Description Remarks
CustomerId The id of the customer whose licenses we want to access. required
Detailed Specifies the amount of parameters that should be included with each license key in the LiceseKeys. If true, License Key will be used. By default, Basic License Key will be used (where for instance data objects and activated devices are omitted.) optional. default is false.
Metadata Includes additional information about each license key, such as number of activated devices, etc. optional. false by default.
v Method version. optional. by default, it's 1.

Results

Parameter Description Remarks
LicenseKeys The license keys that belong to the customer. This is either a list of License Key (if Detailed=true) or Basic License Key otherwise. always returned
Metadata Additional information about each license key. This is a dictionary of (GlobalId, Metadata) pairs. In order to retrieve metadata for a specific license key, its GlobalId should be used. returned if
Metadata=True
Result This is either 0(=success) or 1(=error). always returned
Message The message that provides additional information about the result. always returned.

Example results

{"licenseKeys":[{"productId":3349,"id":7,"key":"ABCDE-FGHIJ-KLMNO-PQRST","created":"2015-08-27T00:00:00","expires":"2016-07-03T00:00:00","period":1,"f1":true,"f2":false,"f3":false,"f4":false,"f5":false,"f6":false,"f7":false,"f8":false,"notes":"","block":false,"globalId":12345},{"productId":3349,"id":18,"key":"ABCDE-FGHIJ-KLMNO-PQRST","created":"2015-08-27T00:00:00","expires":"2017-01-08T00:00:00","period":500,"f1":true,"f2":true,"f3":false,"f4":false,"f5":false,"f6":false,"f7":false,"f8":false,"notes":"","block":false,"globalId":23456}],"result":0,"message":null}

Remarks

  • If Detailed=true, it will take longer time to execute this method. Therefore, the default option should be preferred.

Errors

Error
Access denied.
The input parameters were incorrect.
Customer does not exist.
;