To authenticate you, our withdrawal API uses API Keys in all requests. API Keys can be obtained from Settings -> API -> Withdrawals.
The API keys between Staging and Production are different.
There are 3 credentials you will need:
Your user: Key
Your password: API Passphrase
Your secret key to generate the signature: API Signature
PUT IMAGE
Authentication to the API is done using HTTP Basic Auth. The API Keys must be in all requests such as the username and password.
Your username and password are sent as API KEY and API Passphrase respectively in the body of the request.
API keys, like whitelisted IPs, are ways to authenticate yourself, therefore, please do not share credentials in any public setting.
Headers
All requests sent through Cashouts API must have the following headers.
Calculating the Signature
All calls to our Cashouts APIs must contain a Payload-Signature field on the header used to ensure request integrity and to authenticate yourself since you will use your own API Signature (secret key) to generate and encrypt a hash.
It has to be created using HMAC-SHA-256 (RFC 2104) encoding and the payload is made of the entire JSON Payload sent in the body of the requests and notifications.
Use your API Signature to create the HASH
The Payload-Signature field on the header of the requests will contain the hash generated from hashing the entire JSON Payload: