This page will detail the entire process of creating a complete customer entry using the API. The other pages in this section further detail the available API requests for each attribute. Not all attributes are required to create a customer (see below), but this guide will assume that the customer being created has all attributes.In this example, a customer and its attributes will be created in the following order:
† Not required to create a customer. Creates a Transaction that increases, or decreases if negative, the customer's credit or points by the given amount.
Address, Credit, Rating and Points can be created in any order after the Customer is created. To be efficient, Type should be the first attribute created, followed by Customer as the second. This ordering is due to Type being assigned to a Customer by the TypeID, and Address, Credit, Rating and Points all require a CustomerID.
The first step in creating a Customer is to create the Type of the Customer. This is only required once, for each unique Type, and does not need to be re-created for each Customer.
Documentation on how to create new customer type can be found here.
The second step is to create the Customer; this requires the Type ID from the previous step.
Note: A Customer account can be linked to multiple addresses, via the Customer Address controller. Assigning a Main Address to a Customer serves only to highlight the fact that it is the Customer's primary address.
Documentation on how to create new customer can be found here.