Secure Payments API – Generate Tokens
General
This request will generate a set of tokens to use for subsequent requests.
How To
To generate tokens, send a POST request with your login credentials to this endpoint:
POST https://securepayments.loanpro.io/api/authenticate
Here's a sample request:
{
"password": "asdfjkjnerlf49897984631&&FDFDF",
"username": "sample@email.com"
}
Unlike most API requests, this one can be done without a token and secret in your header. That way, you'll be able to get a new token even if the old one has already expired.
And a cURL request:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"password": "AGood-Password-01",
"username": "sample@email.com"
}' 'https://securepayments.loanpro.io/api/authenticate'
Response:
{
"token": "your token here",
"secret": "your secret here"
}
If you don't want to wait for them to expire, you can also revoke your old tokens.