# Check Status

{% tabs %}
{% tab title="Description" %}
This functionality will perform check payment PBB status
{% endtab %}

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

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

| Field       | Status | Format | Description                      |
| ----------- | ------ | ------ | -------------------------------- |
| bankId      | M      | text   | bank id at BG system             |
| bankChannel | M      | text   | payment channel                  |
| custAccNo   | M      | text   | cust account no at bank/merchant |
| custId      | M      | text   | bill number to be paid           |
| custRefNo   | M      | text   | reference no from BG             |
| payeeCode   | M      | text   | payee code                       |
| productCode | M      | text   | product code                     |


{% endtab %}

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

| Field           | Status | Format  | Description                                          |
| --------------- | ------ | ------- | ---------------------------------------------------- |
| adminFee        | M      | numeric | admin fee                                            |
| bankChannel     | M      | text    | payment channel (copy from request)                  |
| bankId          | M      | text    | bank id at BG system (copy from request)             |
| bankRefNo       | M      | text    | reference no from bank/merchant (copy from request)  |
| billAmt         | O      | numeric | bill amount                                          |
| billPeriod      | O      | text    | payment periode (copy from request)                  |
| billRefNo       | O      | text    | reference no from biller                             |
| buildingArea    | O      | text    | object building area                                 |
| code            | M      | numeric | status code: 0=success 1=failed 2=pending            |
| custAccNo       | M      | text    | cust account no at bank/merchant (copy from request) |
| custId          | M      | text    | bill number to be paid (copy from request)           |
| custName        | O      | text    | customer's name                                      |
| custRefNo       | M      | text    | reference no from BG                                 |
| dateTrx         | M      | date    | date transaction (response)                          |
| description     | O      | text    | product description                                  |
| discount        | O      | numeric | discount                                             |
| infoText        | O      | text    | additional info                                      |
| kecamatan       | O      | text    | district object located                              |
| kelurahan       | O      | text    | village object located                               |
| lastPaidDueDate | O      | date    | payment due date                                     |
| message         | O      | text    | error message from BG                                |
| odPenaltyFee    | O      | numeric | penalty fee                                          |
| paidAmt         | M      | numeric | paid amount (to be debeted) = billAmt + adminFee     |
| payeeCode       | M      | text    | payee code                                           |
| productCode     | M      | text    | product code                                         |
| resultCode      | O      | text    | 2 digit result code                                  |
| surfaceArea     | O      | text    | object surface area                                  |


{% 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">IIKvqbyNyxDSodbD8ewdDFLl/0OaO26U
            hUycqVioe6Q=</authorization>
        <date xsi:type="xsd:dateTime">Thu, 10 OCT 2019
            12:53:03 ICT</date>
    </soapenv:Header>
    <soapenv:Body>
        <exp:checkPaymentPBB soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
            <req xsi:type="pac:WsbgRequestPBB" xmlns:pac="http://pacarana.infinetworks.com">
                <bankId xsi:type="xsd:string">10000001</bankId>
                <bankRefNo xsi:type="xsd:string">201910100001</bankRefNo>
                <custId xsi:type="xsd:string">357800000003101001</custId>
                <custRefNo xsi:type="xsd:string">130003886772</custRefNo>
                <payeeCode xsi:type="xsd:string">10037</payeeCode>
                <productCode xsi:type="xsd:string">1001</productCode>
            </req>
        </exp:checkPaymentPBB>
    </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:checkPaymentPBBResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
            xmlns:ns1="http://exposed.webservice.pacarana.infinetworks.com">
            <checkPaymentPBBReturn href="#id0" />
        </ns1:checkPaymentPBBResponse>
        <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
            xsi:type="ns2:WsbgResponsePBB" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
            xmlns:ns2="http://pacarana.infinetworks.com">
            <adminFee xsi:type="xsd:decimal">2500.00</adminFee>
            <bankChannel xsi:type="xsd:string">6017</bankChannel>
            <bankId xsi:type="xsd:string">10000001</bankId>
            <bankRefNo xsi:type="xsd:string">201910100001</bankRefNo>
            <billAmt xsi:type="xsd:decimal">180000</billAmt>
            <billPeriod xsi:type="xsd:string">2018</billPeriod>
            <billRefNo xsi:type="xsd:string">9762424369964618</billRefNo>
            <buildingArea xsi:type="xsd:string">118 m2</buildingArea>
            <code xsi:type="xsd:byte">0</code>
            <custAccNo xsi:type="xsd:string" xsi:nil="true" />
            <custId xsi:type="xsd:string">357800000003101001</custId>
            <custName xsi:type="xsd:string">WISHNU EKA SIDHARTA</custName>
            <custRefNo xsi:type="xsd:string">130003886772</custRefNo>
            <dateTrx xsi:type="xsd:dateTime" xsi:nil="true" />
            <description xsi:type="xsd:string">Pajak Bumi Bangunan</description>
            <discount xsi:type="xsd:string" xsi:nil="true" />
            <infoText1 xsi:type="xsd:string" xsi:nil="true" />
            <infoText2 xsi:type="xsd:string" xsi:nil="true" />
            <infoText3 xsi:type="xsd:string" xsi:nil="true" />
            <infoText4 xsi:type="xsd:string" xsi:nil="true" />
            <infoText5 xsi:type="xsd:string" xsi:nil="true" />
            <kecamatan xsi:type="xsd:string">Poncokusumo</kecamatan>
            <kelurahan xsi:type="xsd:string">Gondokusuman</kelurahan>
            <lastPaidDueDate xsi:type="xsd:string">20180831</lastPaidDueDate>
            <message xsi:type="xsd:string" xsi:nil="true" />
            <odPenaltyFee xsi:type="xsd:string" xsi:nil="true" />
            <paidAmt xsi:type="xsd:decimal">182500.00</paidAmt>
            <payeeCode xsi:type="xsd:string">10037</payeeCode>
            <productCode xsi:type="xsd:string">1001</productCode>
            <resultCode xsi:type="xsd:string" xsi:nil="true" />
            <surfaceArea xsi:type="xsd:string">1518 m2</surfaceArea>
        </multiRef>
    </soapenv:Body>
</soapenv:Envelope>
```
{% endtab %}
{% endtabs %}
