Permalink: |
Exchanger WMID Balance
This API allow to recive informations about balance for current wmid in WN Exchanger section.
- Requests using WM Keeper WinPro key authorization should be sent to https://exchanger.web.money/asp/XMLWMIDBalance.asp for XML querys and https://exchanger.web.money/asp/JSONWMIDBalance.asp for JSON querys
- Requests using WM Keeper WebPro certificate authorization should be sent to https://wmeng.exchanger.money/asp/XMLWMIDBalance.asp for XML querys and https://wmeng.exchanger.money/asp/JSONWMIDBalance.asp for JSON querys
- Method - POST
- XML Request format:
<?xml version=\"1.0\"?> <wm.exchanger.request> <reqn></reqn> <wmid></wmid> <signstr></signstr> <capitallerwmid></capitallerwmid> </wm.exchanger.request>
- JSON Request format:
{ "reqn": "", "wmid": "", "signstr": "", "capitallerwmid": "" }
- Request parameters:
name | purpose | comments |
wmid | Signer's WMID | WMID for which you need to receive the balance. |
signstr | Request signature. | 132-digits digital signature (by .kwm keys of the wmid) encoding the value of three tags of the request, pulled together in one line without spaces, "wmid + capitallerwmid + reqn" |
reqn | Request number | An integer without delimiter, max 18 digits; |
capitallerwmid | optional field | if Capitaller’s WMID is being transferred in this field (www.capitaller.ru) the exchange bid on behalf of capitallerwmid may be set under this request. In this case there must be an access for WMID which signs the request which is described at Capitaller’s Impersonalization page. |
- Response format:
<?xml version=\"1.0\"?> <wm.exchanger.response> <WMExchnagerBalances wmid=""> <Balance pursetype_id ="" pursetype="" comissrest=""></Balance> </WMExchnagerBalances> <retval></retval> <retdesc></retdesc> </wm.exchanger.response>
- Response parameters
Name | Purpose | Description |
WMExchnagerBalances | Response tag • wmid attribute - wmid for which you need to receive a balance |
|
Balance | purse balance • pursetype_id attribute - the digital designation of WM purse by which current balance from all applications has been summirized • pursetype attribute - the symbolic designation of WM purse by which current balance from all applications has been summirized (Z, E, e.t.c) • comissrest attribute - the remaining balance which was not included in the fee calculation for the previous transactions will be accounted for the next transaction on a purse of this type |
|
retval | Execution code | "0" means that the request was executed successfully. Check the execution code table for detailed information; |
retdesc | Execution code description | error description in case retval tag is not 0 |
capitallerwmid |
- Example
<?xml version=\"1.0\"?> <wm.exchanger.request> <reqn>18012317155732</reqn> <wmid>500000000008</wmid> <signstr> bb2445b32d5bc13145a5c4c6f225dc563a9680184a9815a915b1a393d9fabb54b2c9358a82734eb5388a7d0412d81ee0b52de26b4e338ebacc1631dc5d86f68c002c </signstr> <capitallerwmid>0</capitallerwmid> </wm.exchanger.request> <?xml version=\"1.0\"?> <wm.exchanger.response> <WMExchnagerBalances wmid=\"500000000008\"> ............ <Balance pursetype_id =\"1\" pursetype=\"R\" comissrest=\"0,002845\">506,64</Balance> ............ </WMExchnagerBalances> <retval>0</retval> <retdesc></retdesc> </wm.exchanger.response>