Home > @poq/sdk-sfcc > ICustomersClient > postCustomers
Registers a customer. You must specify the login credentials, last name, and email address. This method ignores all other data, which can only be set for an existing customer. To set other values, make calls after the customer is created. When using OAuth, don’t include the password in the request. In this case, including the password throws an InvalidPasswordException. When using JWT, the password is required. Also returns the hashedLoginId for Einstein use cases.
Signature:
postCustomers(body: CustomerRegistration, options?: RequestOptions): Promise<PoqResponse<Customer>>;
Parameter | Type | Description |
---|---|---|
body | CustomerRegistration | |
options | RequestOptions | (Optional) Override http request option. |
Returns:
Promise<PoqResponse<Customer>>