Skip to main content

4. Balance

Get balance

GET /api/v1/balance

Returns the merchant's current balance and the amount on hold.

Shop routing: when using multiple shops, shop_code is optional. If shop_code is provided, the response is limited to that shop. If shop_code is omitted, the response uses the merchant's default active shop. If no default active shop is configured, the API returns 422.

Headers

ParameterTypeRequiredDescription
X-API-KeystringYesAPI key.
X-TimestampstringYesRequest time.
X-SignaturestringYesHMAC-SHA256(secret, timestamp + body). For GET requests the body is empty.

Query parameters

ParameterTypeRequiredDescription
shop_codestringNoShop code. If not provided, the balance is calculated for the merchant's default active shop.
currencystringNoISO currency code. Default — RUB.

Example

GET /api/v1/balance?shop_code=shop-001&currency=RUB

Response 200 (OK)

{
"currency": "RUB",
"balance": "98500.00",
"on_hold": "1500.00"
}
FieldDescription
currencyRequest currency.
balanceAvailable balance for the selected shop in this currency.
on_holdAmount on hold for payout transactions in raw statuses processing, processing_api, or waiting_api.

Values are returned as strings with two decimal places.