Authentication

Last updated 5 months ago

Authorization

When accessing APIs on Moneywave, an authorization token is required to securely authenticate the request. An api key and secret key is required when requesting a token. These keys are displayed under account settings after you sign-up.

There are two sets of Keys, your live key and your test key. When you are on test mode, your test keys are displayed and when you switch to live mode, your live keys are displayed. This is the same for the API base url.

post
Authorization Token

https://moneywave.herokuapp.com/v1/merchant/verify
Get an authorization token for other API requests
Request
Response
Body Parameters
apiKey
required
string
your moneywave api key
secret
required
string
your moneywave api secret
200: OK
{
"status": "success",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwibmFtZSI6IlRocml2ZSIsImFjY291bnROdW1iZXIiOiIwNjkwMDAwMDAiLCJiYW5rQ29kZSI6IjMwNyIsImlzQWN0aXZlIjp0cnVlLCJlbnZpcm9ubWVudCI6ImxpdmUiLCJjYW5fZ29saXZlIjp0cnVlLCJjb3VudGRvd24iOm51bGwsImNvbXBsaWFuY2UiOjgsImNvZGUiOiJNTDU4MCIsInBvc0lkIjoiMTE0NjMiLCJlYmlsbElkIjoiTVRGVyIsImlwIjpudWxsLCJjcmVhdGVkQXQiOiIyMDE2LTA5LTE2VDEzOjQ5OjIzLjAwMFoiLCJ1cGRhdGVkQXQiOiIyMDE3LTA3LTE5VDE0OjA2OjM2LjAwMFoiLCJkZWxldGVkQXQiOm51bGwsImlhdCI6MTUyOTk4ODgwOCwiZXhwIjoxNTI5OTk2MDA4fQ.0g9LZafu2tFVJizNNIESJzRr8TT_7bcmj7F16ab18YQ",
}

Pass the token value returned as Authorization in the header of other API requests.