Generate Key

The following page is kept as a reference only. If you start a new project, please consider using Create Key method in Web API 3 instead.
Please log in to get personalized configuration.

The purpose of being able to generate new keys is to make the software-order-delivery cycle automatized. This means that you once a payment is processed, a new key may be automatically generated and sent to the user directly after purchase. After this, the user will be able to gain access to the software instantly. More information can be found in the following article. All results are returned in JSON unless json=false.

Supports SKGL and SKM15 (see the difference).

The method is accessed by https://serialkeymanager.com/Ext/GenerateKey.

Parameters

Parameter Description Remarks
UserId the user id (yours is 0) required
PrivateKey the private key (yours is Please login to see) required
ProductId the product id required
SetTime set the number of days a key should be valid (eg. 30) optional (0 by default)
Feature1 feature 1 (either true or false) optional (false by default)
Feature2 feature 2 (either true or false) optional (false by default)
Feature3 feature 3 (either true or false) optional (false by default)
Feature4 feature 4 (either true or false) optional (false by default)
Feature5 feature 5 (either true or false) optional (false by default)
Feature6 feature 6 (either true or false) optional (false by default)
Feature7 feature 7 (either true or false) optional (false by default)
Feature8 feature 8 (either true or false) optional (false by default)
Notes some notes that you want to have associated with the key optional (null by default)
AutomaticActivation automatic activation (either true or false) optional (true by default)
UpdateTrialOnActivation start trial upon activation (read more here) (either true or false) optional (false by default)
MaxNoOfMachines maximum number of machines (read more here) optional (0 by default)
OptionalFieldA optional field (can be any integer) optional (0 by default)
CustomerInformationId The id of the customer that this license should be assigned to. optional (0 by default, which means no customer.)
Json request data in json format (either true or false) optional (true by default)

Example results

{"key" : "MFGNJ-YVXID-NENRU-LPIJF"}
MFGNJ-YVXID-NENRU-LPIJF

Errors

Error
Unauthorized. Either, this feature is deactivated or the private key is wrong or subscription level of the user does not allow this functionality.
Cannot find the product or the product is not set to IsPublic.
The customer with the specified id does not exist.
;