Edit Customer
This method will edit an existing customer. It will only change the properties that you specify.
This method is accessed by https://api.cryptolens.io/api/customer/EditCustomer
Parameters
| Parameter |
Description |
Remarks |
| CustomerId |
Id of the customer to edit. |
An integer, required. |
| Name |
Name of the customer. |
A string of max 100 characters. |
| Email |
Email of the customer. |
A string of max 100 characters. |
| CompanyName |
Company name of the customer. |
A string of max 100 characters. |
| Notes |
An optional notes field. |
A string of max 1000 characters. |
| EnableCustomerAssociation |
If set to true, a portal link will be returned where the customer will be able to view their licenses. |
A boolean. |
| AllowActivationManagement |
If set to true, the customer activate and deactivate devices through the customer portal. |
A boolean. |
| AllowMultipleUserAssociation |
If set to true, it will be possible to associate multiple user accounts with this customer. |
A boolean. |
| MaxNoOfDevices |
This limits the number of computers that will be able to use customer's licenses. '0' stands for unlimited. |
An integer. |
| Secret |
If set to true, the customer secret will be updated. |
A boolean. |
| v |
Method version. |
optional. by default, it's 1. |
Results
| Parameter |
Description |
Remarks |
| CustomerId |
A unique integer identifier associated with this customer. |
always returned |
| PortalLink |
A link that allows the customer to create an account where they
will see their licenses (in the customer dashboard).
|
Returned if EnableCustomerAssociation or Secret is set to true. |
| Secret |
The customer secret.
|
Returned if Secret or EnableCustomerAssociation is set to 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
{"result":0,"message":null}
Errors
| Error |
| Access denied. |
| The input parameters were incorrect. |
| Customer could not be found. |
| The name of the customer is limited to 100 characters. |
| The email of the customer is limited to 100 characters. |
| The company name of the customer is limited to 100 characters. |