Endpoints Reference
Customer Sub-Accounts

Create a new Customer sub-account

POST
/v1/{siteEnv}/{siteId}/sub-accounts

Create a new "customer" on the eCommerce platform and designates it as a sub-account with parent_customer_id as an attribute. The implementation should explicitly handle the possibility that a customer with the supplied email address already exists and return a 400 response as documented. If the target platform has the ability to send an activation / invitation email to the new customer then this should be done.

Path Parameters
siteEnv
*
siteId
*
Body Parameters
body
*
email
*
first_name
*
last_name
*
parent_customer_external_id
*
role
Responses
201
Successful operation
customer_external_id
400
Error handling request such as email already taken
error_code
401
Auth Failure
500
System Exception