DengiOnline

2017-07-29 03:29:16

BALANCE action

Check the amount of the balance or of the overdraft (if it is permitted).

Request Parameters

To check account balance you only need to send the standard set of the required parameters.

Response Parameters

The GSG System response in XML format apart from the basic parameters contains the following nodes:

Parameter

Description

Format

balance

Account’s balance in account’s currency

decimal

currency

Account’s currency code

string / integer

ISO 4217 number-3

overdraft Overdraft limit decimal

Example request

<?xml version="1.0" encoding="UTF-8"?>
<request>
    <action>balance</action>
    <project>1234</project>
    <timestamp>1358428855</timestamp>
    <sign>9a5dd480ba0901cf9854a035652b4094</sign>
</request>

Example response (success)

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>1</status>
    <reference>25231</reference>
    <timestamp>1358428857</timestamp>
    <balance>105800.95</balance>
	<overdraft>100000</overdraft>
    <currency>643</currency>
</response>

Example response (fail)

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>17</status>
    <reference>25224</reference>
    <timestamp>1358426231</timestamp>
</response>