Secure Payments API – Revoke Tokens
Revoking an existing authentication is one of the authentication options available through the Secure Payments API. Revoking a token causes the token/secret combination to be invalid for authenticating subsequent requests. This is used if you'd like to renew your authentication information before it expires.
To revoke the current token on an account, send a POST request to the following endpoint:
Even though it's a POST request, there will be no JSON payload. Here's what a cURL request would look like:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'secret: your-secret' --header 'authorization: your-token' 'https://securepayments.loanpro.io//api/revoke'
A successful request will result in the following response:
"message": "Token revoked."
The revoked tokens will no longer work, and a new set must be requested by using Generate Tokens request.