Using this endpoint, you can add a new customer to the system. The response includes an id which is required in subsequent calls, such as GET /customers/{customerId}, PUT /customers/{customerId}, PATCH /customers/{customerId}, and more.
When externalId is specified, the customers have the ability to manage their own details through the storefront UI.
The access token.
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
"517fa9dfd42d8b00g1o3k312"
A UUID of the request.
A sample request to add a new customer.
The full name of the customer.
The customer's email.
A UUID of the customer.
"1231012312-312-31231asda"
A placeholder for additional info, in key-value pairs.
{ "type": "shopper" }OK
A 24-character system-generated customer ID.
"61df41892bf06d00092d0d8a"
The full name of the customer.
The customer's email.
A flag indicating whether the customer data is deleted. true indicates the customer data is deleted and false indicates otherwise.
false
The time when the customer was added, in UTC format.
"2023-08-30T23:20:42.822Z"
The time when the customer details were last updated, in UTC format.
"2023-08-30T23:20:42.822Z"
The status of the customer.
ACTIVE, INACTIVE, BLOCKED "ACTIVE"
A UUID of the customer.
"1231012312-312-31231asda"
A placeholder for additional info, in key-value pairs.
{ "middleName": "user" }The time when the customer data was deleted, in UTC format.
"2023-08-30T23:20:42.822Z"