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.

Revoke OTP

DELETE https://api.simpu.co/otp/revoke

Headers

Request Body

{
    "status": 204,
    "type": "success",
    "message": "OTP revoked"
}

Last updated