Confirm phone number
This API is employed to confirm the ownership of a provided phone number during the account creation process. Users may receive a code through SMS or a similar method, and this code needs to be submitted through this API to verify the associated phone number.
To obtain the access_token, it is necessary to verify the phone number provided during registration.
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/phone/confirm \
--header 'X-Merchant-ID: bece038f-2e46-49f4-b25e-89cd38d6dc16' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"smsCode": "1234",
"phone": "+447871114567",
"fingerprint": "1234444"
}
'
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.
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2ZTQ2MDAwMS1mMGFlLTQyOTEtOWIwZC04ZDcxMDZkMjhmYmUiLCJleHAiOjE3MTEwNDE2OTUsImlhdCI6MTcxMDk1NTI5NX0.uKnWoNRc3bmQKIcquOPQ_QLAPxpKUqsrql3OWYq1eBM",
"token_type": "bearer",
"refresh_token": "5msP6GMf5WACcoEm1Lm8zCgVKOs",
"expires_in": 86399,
"scope": "read write"
}
To obtain additional information about the RESPONSE
, you need to click on the Headers
button.
This will allow you to view the server response headers and gain a more detailed understanding of the data returned in response to your request.
Updated 7 months ago