# GetDepositBalance

{% tabs %}
{% tab title="Description" %}
This functionality will perform to get deposit Balance Information
{% endtab %}

{% tab title="API Name" %}
getDepositBalance
{% endtab %}

{% tab title="Input" %}
WsbgRequest object:

| Field       | Status | Format | Description                |
| ----------- | ------ | ------ | -------------------------- |
| bankId      | M      | text   | bank id at BG system       |
| bankChannel | M      | text   | payment channel            |
| dateTrx     | M      | date   | date transaction (request) |
{% endtab %}

{% tab title="Response Parameter" %}
WsbgClientDepositResponse object:

| Field         | Status | Format  | Description                                                     |
| ------------- | ------ | ------- | --------------------------------------------------------------- |
| bankId        | M      | text    | bank id at BG system                                            |
| code          | M      | numeric | <p>status code:<br>0 = success<br>1 = failed<br>2 = pending</p> |
| dateTrx       | M      | date    | date request                                                    |
| depositAmount | M      | numeric | client's deposit                                                |
| message       | O      | text    | error message                                                   |
| resultCode    | M      | text    | 2 digit result code                                             |
{% endtab %}

{% tab title="Example" %}
Request

```xml
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:exp="http://exposed.webservice.pacarana.infinetworks.com">
    <soapenv:Header>
        <authorization xsi:type="xsd:string">gn89FG+qVOVKJHkj3P0iHcW5p6KcJWQPflLj7N+gAHc=</authorization>
        <date xsi:type="xsd:dateTime">Thu, 10 OCT 2019 12:53:03 ICT</date>
    </soapenv:Header>
    <soapenv:Body>
        <exp:getDepositBalance soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
            <req xsi:type="pac:WsbgRequest" xmlns:pac="http://pacarana.infinetworks.com">
                <bankId xsi:type="xsd:string">10000001</bankId>
                <bankChannel xsi:type="xsd:string">6017</bankChannel>
                <dateTrx xsi:type="xsd:dateTime">2019-10-10T16:50:00Z</dateTrx>
            </req>
        </exp:getDepositBalance>
    </soapenv:Body>
</soapenv:Envelope>
```

Response

```xml
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
        <ns1:getDepositBalanceResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
            xmlns:ns1="http://exposed.webservice.pacarana.infinetworks.com">
            <getDepositBalanceReturn href="#id0" />
        </ns1:getDepositBalanceResponse>
        <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
            xsi:type="ns2:WsbgClientDepositResponse" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
            xmlns:ns2="http://pacarana.infinetworks.com">
            <bankId xsi:type="xsd:string">10000001</bankId>
            <code xsi:type="xsd:byte">0</code>
            <dateTrx xsi:type="xsd:dateTime">2019-10-11T09:44:34.968Z</dateTrx>
            <depositAmount xsi:type="xsd:decimal">3526960.00</depositAmount>
            <message xsi:type="xsd:string" xsi:nil="true" />
            <resultCode xsi:type="xsd:string">00</resultCode>
        </multiRef>
    </soapenv:Body>
</soapenv:Envelope>
```
{% endtab %}
{% endtabs %}
