Skip to main content
Methods that perform operations on a customer object. A complete list can be found here: Customer Namespace: SKM.V3.Methods
Version: 4.0.54. Both packages; all six documented target frameworks.
These methods return a result object. Check Result == ResultType.Success before using its data. In version 4.0.54, handled request and JSON errors normally return ResultType.Error with a diagnostic Message. A non-null result alone does not mean the request succeeded. See Request Errors.

Constructors

CustomerMethods()

Creates an empty CustomerMethods object. This constructor does not send an API request.

Methods

AddCustomer(string, AddCustomerModel)

This method will add new customer. To remove an existing customer, please see RemoveCustomer(string, RemoveCustomerModel)
Web API Reference Parameters Returns: AddCustomerResult. The API response. Check Result and Message before using the returned data.

EditCustomer(string, EditCustomerModel)

This method will edit an existing customer. It will only change the properties that you specify.
Web API Reference Parameters Returns: EditCustomerResult. The API response. Check Result and Message before using the returned data.

GetCustomerLicenses(string, GetCustomerLicensesModel)

This method will return a list of license keys that belong to a certain customer.
Web API Reference Parameters Returns: GetCustomerLicensesResult. The API response. Check Result and Message before using the returned data.

GetCustomerLicensesBySecret(string, GetCustomerLicensesBySecretModel)

Retrieves licenses using a customer secret you already have.
Web API Reference Parameters Returns: GetCustomerLicensesResult. The API response. Check Result and Message before using the returned data. The access token needs the GetCustomerLicensesBySecret permission. This method does not retrieve the customer secret.

GetCustomers(string, GetCustomersModel)

Retrieves customers by search text or customer ID.
Web API Reference Parameters Returns: GetCustomersResult. The API response. Check Result and Message before using the returned data. The access token needs the GetCustomers permission. This SDK wrapper requests model version 1 and returns List<Customer>, which has no Secret property. To retrieve an existing secret, call the Web API with ModelVersion=2 or 3; see GetCustomers.

RemoveCustomer(string, RemoveCustomerModel)

Removes an existing customer by customer ID. To add a customer, use AddCustomer(string, AddCustomerModel).
Web API Reference Parameters Returns: BasicResult. The API response. Check Result and Message before using the returned data.

FAQ

The Web API can, but this SDK method cannot in 4.0.54. It sends ModelVersion=1 and returns Customer objects without a Secret property. Make a direct GetCustomers request with ModelVersion=2 or 3, a specific CustomerId and the Get Customers permission.If you already have the secret, use GetCustomerLicensesBySecret to retrieve that customer’s licenses. This requires the Get Customer Licenses By Secret permission. See the Customer Secret guide.
.NET SDK Reference · Reviewed Source Revision