This is a simple service that allows you to generate and validate OTP code for your applications. All OTP code generated expire in ten (10) minutes. Once an OTP code has been validated, it can no longer be used.
{"status": true,"initiator_id": "123456","code": 117678,"expires_in": "2019-06-06T19:31:11.000000Z"}
{"status": true,"message": "Otp has been verified"}
This is an example of the response received when the OTP code you're trying to validate has already been validated.
{"status": false,"message": "Otp has been used already"}
An example of the response received when you try to validate an OTP code that does not exist.
{"status": false,"message": "Invalid Otp"}
An example of the response received when the OTP code you're trying to validate has already expired.
{"status": false,"message": "Otp has expired"}
An example of the response received when the OTP code under validation does not belong to the user that initiated the OTP request.
{"status": false,"message": "Not Authorized to use this otp"}