Home > @poq/sdk-sfcc > CustomersClient > postCustomersByIDPasswordReset
Starts a password reset process. The user must be an agent logged in on behalf of a customer. Generates a password reset token and passes it with the specified customer as the path parameter to the dw.ocapi.shop.customer.password_reset.afterPOST hook. The hook can use the provided reset token to perform actions such as sending a reset email.
Signature:
postCustomersByIDPasswordReset(customerId: string, options?: RequestOptions): Promise<PoqResponse<void>>;
Parameter | Type | Description |
---|---|---|
customerId | string | the id of the customer |
options | RequestOptions | (Optional) Override http request option. |
Returns:
Promise<PoqResponse<void>>