Confirm password reset
The endpoint provides the ability to reset a user's password, usually by sending instructions to the registered mobile number.
Before using this endpoint, it is recommended to first request a password reset using the endpoint POST /v2/mobile/password/reset.This endpoint provides the ability to reset a user's password.
After confirming the phone number or after user authorization, you will receive an access_token. You need to enter this access_token in the
Token
field.
Required Headers Parameters и Body Parameters:
Use the X-Merchant-ID provided to you by your account manager.
Request Sample: cURL
At the time of sending the request, the curl command should be as follows:
curl --request POST \
--url https://api.vault.sandbox.testessential.net/v2/mobile/password/reset/confirm/code \
--header 'X-Merchant-ID: bece038f-2e46-49f4-b25e-89cd38d6dc16' \
--header 'X-Version: 1.2' \
--header 'accept: application/json' \
--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI3NzQ3MmM5YS1lMmY3LTRhMWEtODFlNC03N2MxNTFiNzg1MTciLCJleHAiOjE3MTEwMzgzMjUsImlhdCI6MTcxMDk1MTkyNX0.b8ATi6SSiR7OJY0Mtx74YijSECtSXUwQ7Jbv3hL6eMU' \
--header 'content-type: application/json' \
--data '
{
"code": "1234",
"phone": "+447871234567"
}
'
After entering the phone number and password into the respective fields, you need to click the Try It!
button.
This action initiates the process of sending data to the server and receiving a response from the API using the provided credentials.
Response Example
The response status code indicates that the request was successfully processed.
{
"result": "ok"
}
Updated 7 months ago