All payments for transactions carried out over WAPI is deducted from the credit account. To check the current credit you can use the command credit-info.
Parameters:
This command does not accept any parameters.
Return Values:
- 1000 – successfully obtained credit status
Return data:
- amount – amount on the credit account
- currency – currency of the credit account
Example: obtaining credit status
XML request:
<request> <user>tester</user> <auth>fb82be1466331148816bdbac855a6b1bd4e24b81</auth> <command>credit-info</command> <clTRID>8255</clTRID> </request>
XML response:
<response> <code>1000</code> <result>OK</result> <timestamp>1287650025</timestamp> <clTRID>8255</clTRID> <svTRID>1287650025.2239.28612.1</svTRID> <command>credit-info</command> <data> <amount>988296.84</amount> <currency>CZK</currency> </data> </response>