Revoke OTP

The revoke requests requires an OTP transaction ID as a JSON encoded body. It revokes the OTP object of the specified OTP transaction ID and returns a success message if deleted.

An error message is returned if the transaction ID does not exist. After this request is made, other previous OTP request referencing the OTP transaction ID can no longer be verified successfully. This is because the OTP object would no longer exist.

delete
Revoke OTP

https://api.simpu.co/otp/revoke
Request
Response
Request
Headers
Authorization
required
string
Simpu API key to authenticate request
Body Parameters
transaction_id
required
string
The transaction_id returned in the OTP object in the Request Token response
Response
204: No Content
{
"status": 204,
"type": "success",
"message": "OTP revoked"
}

‚Äč