Add Customer

This method will add new customer. To remove an existing customer, please see Remove Customer.

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

Parameters

Parameter Description Remarks
Name The name of the customer (at most 100 chars) required
Email The email of the customer (at most 100 chars) required
CompanyName The company name of the company the customer belongs to (at most 100 chars) required
EnableCustomerAssociation If set to true, a portal link will be returned where the customer will be able to view their licenses. Optional, false by default.
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 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

{"customerId":479,"result":0,"message":null}

Errors

Error
Access denied.
The input parameters were incorrect.
;