Secure Payments API – POST Authenticate

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://pciwallet.simnang.com/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://pciwallet.simnang.com/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 see this article on Revoking Your Old Tokens.


How did we do?


Powered by HelpDocs (opens in a new tab)