Authorization
Authorization is done via sending two headers:
    1.
    X-Processing-Key – The public key, that can be obtained from user's account
    2.
    X-Processing-Signature – POST body, signed by the secret key HMAC-SHA512, secret key is also obtained from user's account
See example below in PHP language
1
$paramsArray = ['key' => 'value'];
2
$requestBody = json_encode($paramsArray);
3
$signature = hash_hmac('sha512', $requestBody, $apiSecret);
Copied!
Also, for all requests you need to use the next format key in the headers:
1
"Content-Type": "application/json"
Copied!
You can compare the validity of the signature that you generate with our example.
To do this the following data will be used:
1
Secret key: AbCdEfG123456
2
Request body in JSON format:
3
{"currency":"BTC","foreign_id":"123456"}
Copied!
With such data you should receive the following signature:
03c25fcf7cd35e7d995e402cd5d51edd72d48e1471e865907967809a0c189ba55b90815f20e2bb10f82c7a9e9d865546fda58989c2ae9e8e2ff7bc29195fa1ec
Last modified 1yr ago
Copy link