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

NameTypeDescription

Authorization*

string

Simpu API key to authenticate request

Request Body

NameTypeDescription

transaction_id*

string

The transaction_id returned in the OTP object in the Request Token response

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

Last updated