Main
/Request format
Copy page
All requests must be sent via POST method in JSON format.
Request must be signed
The authentication process is carried out by sending 2 HTTP headers:
| Name | Definition |
|---|---|
| merchant | The merchant's uuid, which you can find in the merchant's personal account in the settings section. |
| sign | MD5 hash of the body of the POST request encoded in base64 and combined with your API key. |
$data = json_encode($data);
$sign = md5(base64_encode($data) . $API_KEY);CopyIf the request doesn’t require passing parameters in the body, then form a signature for an empty string:
$sign = md5(base64_encode('') . $API_KEY);Copy
curl https://api.heleket.com/v1/payment/services \
-X POST \
-H 'merchant: YOUR_MERCHANT_UUID' \
-H 'sign: YOUR_SIGNATURE' \
-H 'Content-Type: application/json'Copy