Request format

Endpoint
https://api.cryptomus.com/
COPY

All requests must use the appropriate HTTP methods (GET, POST, PUT, DELETE, etc.) following REST semantics and be sent in JSON format.
The request must be signed.

Authentication

The authentication process is carried out by sending 2 HTTP headers:

NameDefinition
merchantThe merchant's uuid, which you can find in the merchant's personal account in the settings section.
signMD5 hash of the body of the POST request encoded in base64 and combined with your API key.

Definition

The merchant's uuid, which you can find in the merchant's personal account in the settings section.

Definition

MD5 hash of the body of the POST request encoded in base64 and combined with your API key.

Example of signature generation in php:


$data = json_encode($data);
$sign = md5(base64_encode($data) . $API_KEY);
COPY

If 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
Different Key APIs are used to accept payments and payouts

Request example


curl https://api.cryptomus.com/v1/payment/services \
  -X POST \
  -H 'merchant: 8b03432e-385b-4670-8d06-064591096795' \
  -H 'sign: f80fa426a89eb62bd53997326865d850' \
  -H 'Content-Type: application/json' \
  -d '{}'
COPY