Download full docs: English Русский

Introduction & Authentication

Welcome to the API documentation for merchant integration. Our API allows you to automate the creation of deposit (PayIn) and withdrawal (PayOut) requests, retrieve statistics, and manage your balance and disputes.

Authentication & Global Requirements

All API endpoints are accessible via the base URL of our service (e.g., https://{host}/). Every POST request to the API (except for public methods) must meet the following requirements:

  • Method: POST
  • Content-Type: application/json
  • Accept: application/json, text/plain

Additionally, each request must contain the following mandatory authentication headers:

  • X-App-Token — The public token (PublicToken) of any of your active API keys.
  • X-App-Access-Ts — Current Unix Timestamp (in seconds). The lifetime of the timestamp is limited.
  • X-App-Access-Sig — Digital signature of the request in HMAC-SHA256 format (lowercase result).

Creating the Signature (X-App-Access-Sig)

To create the digital signature, use the secret token (SecretToken) of the same API key whose public token you send in X-App-Token, and the email associated with your merchant account. Note: The timestamp and email strings must be concatenated directly, without any spaces or separators.

signStr = "{X-App-Access-Ts}{Email}"
X-App-Access-Sig = hex(HMAC_SHA256(signStr, SecretToken))

C# Example:

using System.Security.Cryptography;
using System.Text;

string time = DateTimeOffset.UtcNow.ToUnixTimeSeconds().ToString();
string signStr = $"{time}{email}";

using var hmac = new HMACSHA256(Encoding.UTF8.GetBytes(secretToken));
byte[] hashValue = hmac.ComputeHash(Encoding.UTF8.GetBytes(signStr));
string signature = BitConverter.ToString(hashValue).Replace("-", "").ToLower();

Python Example:

import hmac
import hashlib
import time

unix_time = str(int(time.time()))
sign_str = f"{unix_time}{email}"

signature = hmac.new(
    secret_token.encode('utf-8'),
    sign_str.encode('utf-8'),
    hashlib.sha256
).hexdigest()

Java Example:

import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.time.Instant;

String time = String.valueOf(Instant.now().getEpochSecond());
String signStr = time + email;

Mac sha256_HMAC = Mac.getInstance("HmacSHA256");
SecretKeySpec secret_key = new SecretKeySpec(secretToken.getBytes("UTF-8"), "HmacSHA256");
sha256_HMAC.init(secret_key);
byte[] hashValue = sha256_HMAC.doFinal(signStr.getBytes("UTF-8"));

StringBuilder signature = new StringBuilder();
for (byte b : hashValue) {
    signature.append(String.format("%02x", b));
}
String result = signature.toString();

API keys

An API key is a pair of tokens: a public token (PublicToken) and a secret token (SecretToken). You can have several active API keys at the same time, and their number is not limited. A request is accepted when it is signed with any active key: send the public token of the key in X-App-Token and compute the signature with the secret token of the same key. The email in the signed string is the same for every key. Tokens of different keys cannot be mixed: a public token of one key with the secret token of another is rejected with The signature is not valid!.

You manage API keys yourself on the Settings page of the merchant cabinet, in the API keys section. Keys can be created and deleted by the account owner and by staff members who have the API key management permission.

  • Creating a key. A new key becomes active as soon as it is created, and your existing keys keep working. The secret token is shown only once, in the window that opens right after the key is created. Save it immediately: it cannot be shown again, and the key list displays only public tokens and creation time.
  • Deleting a key. Requests signed with a deleted key are rejected the same way as requests with an unknown token: Merchant not registered!. The last active key cannot be deleted.
  • When a change takes effect. Creating and deleting a key take effect immediately, in rare cases within 3 minutes.

To rotate a key without downtime, create a new key, switch your system to it, make sure requests succeed, and then delete the old key. If a secret token is lost, create a new key and delete the old one.

IP allowlist

If your account has the external API IP filter turned on, a request from an address that is not on the list is rejected before the operation runs. The HTTP status is 403. The body uses the usual error shape and the text is exactly IP Not Allowed. An address allowed for cabinet sign-in does not allow the API, and the other way around. Public catalogs GET /api/GetRates and GET /api/PaymentMethods do not identify a merchant and are not covered by this filter. You edit the address list and turn the filter on and off yourself on the IP access page of the merchant cabinet. The filter can be turned on only when the list has at least one address. Actions you take inside the cabinet are not calls from your systems and are not limited by this list.

Webhook Authentication

To verify the authenticity of incoming callbacks to your server, we send a signature in the X-App-Access-Sig header.

Important — different token! Callback signatures are computed with a separate token — CallBackToken — not the SecretToken you use to sign your own outgoing requests to our API. The two are independent fields of your merchant profile and are typically different values. Using SecretToken to verify a callback will always fail.

Verification Algorithm:

signStr = raw UTF-8 bytes of the HTTP request body (compact JSON, no whitespace)
X-App-Access-Sig = hex(HMAC_SHA256(signStr, CallBackToken))   // lowercase hex

Warning: Compute HMAC over the raw request body bytes as received, before any JSON deserialization. Re-serializing the parsed object will change whitespace, key order or escape casing and the signature will diverge.

No signature header? If your merchant profile has an empty CallBackToken, the system sends the callback without the X-App-Access-Sig header at all (the header is omitted, not empty). Either accept unsigned callbacks (if agreed with us) or reject them; in the latter case request a CallBackToken to be set on your account.

Comparison: Use a constant-time comparison (e.g., crypto.timingSafeEqual in Node.js, hmac.compare_digest in Python, CryptographicOperations.FixedTimeEquals in .NET) and compare in lowercase.

An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.