Skip to content

Balance request

The request contains certain fields:

Field Description
merchant unique merchant ID;
currency requested currency (UAH, USD, EUR, KZT, BRL, INR and AZN);
sign digital signature with the merchant’s key. Available fields are: “merchant”, “currency”. It is hashed using MD5 method (for more details read the “Digital signature in requests” section).
POST /payment/balance
https://<provided url>
/payment/balance
Examples of the request:

application/json

{
    "merchant" : "M1VJDHSI6DYXS",
    "currency" : "UAH",
    "sign" : "XXXXXXXXXXXXXXXXXX"
}

The response contains certain fields:

Field Description
status request status:

Success – request successful
Error – received data error (if the merchant is not found, the signature in the response is not transferred);
currency requested currency (UAH, USD, EUR, KZT, BRL, INR and AZN);
balance available currency amount with two decimal places, separator character is a point (for example – 212.07);
description description (”Wallet balance”);
sign digital signature with the merchant’s key.
Example of the response – Success status:

application/json

{
    "status": "Success",
    "currency": "UAH",
    "balance": 212.07,
    "description": "Wallet balance",
    "sign": "XXXXXXXXXXXXXXXXXX"
}
Example of the response – Error status:

application/json

{
    "status": "Error",
    "merchant": "M1VJDHSI6DYXS",
    "description": "Merchant not found or not Approved"
}