Create New Customer
In order to create a new customer from the API you can consume the endpoint presented in this article. In order to consume it, you must:
- Be authenticated user
For information on how you can authenticate, see: Authentication
Example for such endpoint for TT server is:
For your server endpoint will be:
- Method Type: HttpPost
- Authorization: Use Bearer Token + token received from token authentication
- Header info: Content-Type: application/json
ID of the company of the customer
First name of the customer
Last name of customer
*Required for customer of type 'Retail'
Email of the customer
Name of business
*Required for customer of type 'WholeSale' only if client setting 'Enable Required Fields for WholeSale Customers' is enabled.
Wholesale or Retails.
For more into check at the bottom of the article.
- If user is not authenticated, then response will be Status Code 401 => Not Valid Token
- On server response => Status Code 500 => Internal Server Error
WholeSale = 0
Retails = 1