Balance request (balance)
С помощью запроса
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.Address for sending requests
https://payouts.yookassa.ru:9094/webservice/deposition/api/balance
Parameter | Type | Description |
---|---|---|
clientOrderId | ClientTransactionNumber | Operation ID. Must be unique for your system over the entire history of operations. Recommended values: a positive integer in decimal notation. |
requestDT | xs:dateTime | The date and time the operation request was formed on your side, according to your system. |
agentId | xs:long | Gateway ID. Issued by YooMoney |
<balanceRequest agentId="123" clientOrderId="12345" requestDT="2011-07-01T20:38:00.000Z"/>
Parameter | Type | Description |
---|---|---|
status | xs:int | Result of executing the operation. Use the value of this field to make a decision about the request state. See Request status codes |
error | xs:int | Code of the request execution error. Provides an additional explanation of the status field. |
clientOrderId | ClientTransactionNumber | The 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 ). |
processedDT | xs:dateTime | Time when the request was processed, according to the YooMoney server. |
balance | xs:decimal | The 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. |
<balanceResponse clientOrderId="12345" status="0" processedDT="2011-07-01T20:38:01.000Z" balance="1000.00"/>
See also