POST
/
auth
/
reset-password
Reset password
curl --request POST \
  --url https://staging.api.commercengine.io/api/v1/{store_id}/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

OK

message
string
required

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

success
boolean
required

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

content
object
required

An object containing the response content.