XM

Verify Reset Token

Path:

GET https://{baseurl}/api-commerceIdentity/auth/token/{resetToken}

Triggered for security purposes, to ensure the password reset token is correct.

Headers

Content-Type : application/json

x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox" }

x-api-key : d41d8cd98f00b204e9800998ecf8427e

Parameters

Type : Path

Name : The Reset Token ID.

Required : true

Sample Request

Path

https://{baseurl}/auth/token/5e97e4d13cb8553c0e43d88a

Response

HTTP Code : 200 Message : OK

Description: You will see this message when the reset token is valid.

Sample

{
"tokenValid": true,
"userId": "5e97947d3cb8553c0e43d87f"
}

HTTP Code : 404 Message : Not Found

Description: You'll see this message when the reset token is incorrect or has expired.

Sample

{
"code": "VERIFY_TOKEN_FAILED",
"message": "Token not found."
}

Changelog

Last updated - July 2020