YooMoney API
Old versions of the API
Help
Sign up for YooMoney
Balance request (balance)

This is an old version of the API. Switch to the YooMoney API.

С помощью запроса balance вы можете узнать баланс вашего шлюза в ЮKassa. The balance request returns the difference between the security amount that you deposited to the gateway account in YooMoney and the amount that YooMoney has transferred to user wallets on your request.
Request format
Address for sending requests
https://payouts.yookassa.ru:9094/webservice/deposition/api/balance
Request parameters
ParameterTypeDescription
clientOrderIdClientTransactionNumberOperation ID. Must be unique for your system over the entire history of operations. Recommended values: a positive integer in decimal notation.
requestDTxs:dateTimeThe date and time the operation request was formed on your side, according to your system.
agentIdxs:longGateway ID. Issued by YooMoney
Request example
XML
<balanceRequest agentId="123"
                clientOrderId="12345"
                requestDT="2011-07-01T20:38:00.000Z"/>
Response format
Response parameters
ParameterTypeDescription
statusxs:intResult of executing the operation. Use the value of this field to make a decision about the request state. See Request status codes
errorxs:intCode of the request execution error. Provides an additional explanation of the status field.

For a successful operation, this field is omitted.

clientOrderIdClientTransactionNumberThe value of the clientOrderId request parameter. The parameter is omitted in the response if the request was not parsed (error codes 10, 50, 51, 53, 55) or if the clientOrderId request parameter is missing or invalid (error=18).
processedDTxs:dateTimeTime when the request was processed, according to the YooMoney server.
balancexs:decimalThe difference between the security amount that you have transferred to the gateway account in YooMoney, and the amount of money that YooMoney has transferred to users at your request.
Example of the response
XML
<balanceResponse clientOrderId="12345"
                 status="0"
                 processedDT="2011-07-01T20:38:01.000Z"
                 balance="1000.00"/>
See also
Testing Reports on successful and returned payouts