POST
/
auth
/
reset-password
curl --request POST \
  --url https://services.commercengine.dev/api/v1/x2yh61zw4k/storefront/auth/reset-password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "new_password": "<string>",
  "confirm_password": "<string>",
  "otp_token": "<string>"
}'
{
  "message": "<string>",
  "success": true,
  "content": {
    "access_token": "<string>",
    "refresh_token": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Access token

Body

application/json
new_password
string
required

The new password that the user wants to set for their account.

confirm_password
string
required

A confirmation of the new password.

otp_token
string
required

A string representing the OTP token which facilitas the resetting of user’s account password.

Response

200
application/json
OK
message
string

A descriptive message confirming the success or failure of the reset password operation.

success
boolean

Indicates whether the request was successful or failure (true for success, false for failure).

content
object

An object containing the response content.