Create Key

Please log in to get a personalized configuration!

This method will create a new license key, which is the same as GenerateKey in Web API 2.

This method is accessed by https://app.cryptolens.io/api/key/CreateKey

Parameters

Parameter Description Remarks
ProductId the product id required
Period The number of days, from today, the license key should be valid. Note, you will still be able to activate keys that have "expired". You can enforce the expiration date in the client program. Please see Keys that don't expire tutorial. optional, 0 by default.
F1 The feature 1 (either true or false) optional. by default, it's "false"
F2 The feature 2 (either true or false) optional. by default, it's "false"
F3 The feature 3 (either true or false) optional. by default, it's "false"
F4 The feature 4 (either true or false) optional. by default, it's "false"
F5 The feature 5 (either true or false) optional. by default, it's "false"
F6 The feature 6 (either true or false) optional. by default, it's "false"
F7 The feature 7 (either true or false) optional. by default, it's "false"
F8 The feature 8 (either true or false) optional. by default, it's "false"
Notes Additional notes about the license key. Max. 500 chars. optional. by default, it's empty.
Block Blocks the key from being accessed by the Activation method. optional. by default, it's "false"
CustomerId The id of the customer that should be associated with this license key. optional. by default, it's null.
TrialActivation Enables or disables Trial activation optional. by default, it's "false"
MaxNoOfMachines In order to restrict the number of computers that can use the same key, you can set enable this feature by enter a number greater than zero. This number represents the maximum number of computers that can activate the key. optional. by default, it's "0"
AllowedMachines A list (separated by new lines) of machine codes that will be prioritized during key activation. optional. by default, it's null.
v Method version. optional. by default, it's 1.

Results

Parameter Description Remarks
Key The newly generated key returned if no error occurred.
Result This is either 0(=success) or 1(=error). always returned
Message The message that provides additional information about the result. If it's a successful result, either null or the new key (if using SKGL) will be returned. Otherwise, in case of an error, a short message will be returned describing the error. always returned.

Example results

{"key":"ABCDE-ABCDE-ABCDE-ABCDE","result":0,"message":""}

Errors

Error
Access denied.
The input parameters were incorrect.
The notes field cannot be more than 500 characters.
Could not find the product.
Could not find the customer.
Creation of a license with x day(s) is not possible in SKGL. The limit is 999 days.
Generating more than 99,999 keys is not possible in SKGL.
;