Verify OTP

The Verify Token request accepts a transaction ID and an token as a JSON encoded body. It returns a corresponding OTP object if the OTP token is valid.

post
Verify OTP

https://api.simpu.co/otp/verify
Request
Response
Request
Headers
Authorization
required
string
Simpu API key to authenticate request
Body Parameters
token
required
string
The OTP generated and sent to the recipient
transaction_id
required
string
The transaction_id returned in the OTP object in the Request Token response
Response
200: OK
{
"status": 200,
"type": "success",
"message": "Successful",
"data": {
"verify": {
"transaction_id": "55e6fefb965c11eba1bb86d35ec4f76b",
"recipient": 2348012345678,
"reference": "sent",
"created_datetime": "2021-04-05T22:14:48",
"valid_until": "2021-04-05T22:29:48"
}
}
}

‚Äč