Inquiry

API to inquiry Member Church Offerings.

Path

MethodPath
POSTapi/v1/bill/check

Test Case

CodeNumberResponse
MEMBER.IAK_Church-Perpuluhan_2022180000Success
MEMBER.IAK_Church-Perpuluhan_2022180001Inquiry - Invoice Has Been Paid
MEMBER.IAK_Church-Perpuluhan_2022180014Inquiry - Incorrect Destination Number
MEMBER.IAK_Church-Perpuluhan_2022180103Inquiry - Time Out
MEMBER.IAK_Church-Perpuluhan_2022181037Payment - Payment Failed
MEMBER.IAK_Church-Perpuluhan_2022181039Payment - Pending / transaction in process
MEMBER.IAK_Church-Perpuluhan_2022181105Payment - MISC Error / Biller System Error
MEMBER.IAK_Church-Perpuluhan_202218XXXXTest other response scenarios in the test case menu.

Request Body

AttributesTypeDescriptionMandatory
commandsStringValue: inq-pascaYes
usernameStringYour registered phone numberYes
codeStringProduct Code. You can get list of product code in pricelist api or from pricelist hereYes
hpStringCustom Denom payment codeYes
ref_idStringYour order number / reference ID ( must unique )Yes
signStringSignature. Value: md5(username+api_key+ref_id)Yes
descObejctProduct descriptionYes
desc.amountIntegerCustom nominal amountYes
{
  "commands" : "inq-pasca",
  "username" : "123123123",
  "code"     : "MEMBER.IAK_Church-Perpuluhan_2022",
  "hp"       : "180000",
  "ref_id"   : "0897654321",
  "sign"     : "6c6a046a14c444e44cfab5e4bbb01b01",
  "desc"     : {
    "amount" : 10000
  }
}
<?xml version="1.0" ?>
<mp>
    <commands>inq-pasca</commands>
    <username>123123123</username>
    <code>MEMBER.IAK_Church-Perpuluhan_2022</code>
    <hp>180000</hp>
    <ref_id>0897654321</ref_id>
    <sign>6c6a046a14c444e44cfab5e4bbb01b01</sign>
    <desc>
        <amount>10000</amount>
    </desc>
</mp>

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
hpStringCustom Denom payment codeYes
tr_nameStringBill account nameYes
periodStringBill periodYes
nominalDoubleBill nominalYes
adminDoubleAdmin feeYes
ref_idStringYour order number / reference ID ( must unique )Yes
response_codeStringResponse code. See response code listYes
messageStringMessageYes
priceDoubleTotal price that must be paid (nominal + admin fee)Yes
selling_priceDoubleDeducted balance (price - commission)Yes
descObjectProduct descriptionYes
{
  "data": {
    "tr_id": 131024523,
    "code": "MEMBER.IAK_Church-Perpuluhan_2022",
    "hp": "180000",
    "tr_name": "TESTING CHURCH",
    "period": "202310",
    "nominal": 100000,
    "admin": 800,
    "ref_id": "0897654321",
    "response_code": "00",
    "message": "INQUIRY SUCCESS",
    "price": 100800,
    "selling_price": 100350,
    "desc": []
  },
  "meta": []
}
<?xml version="1.0"?>
<mp>
    <tr_id>131024523</tr_id>
    <code>MEMBER.IAK_Church-Perpuluhan_2022</code>
    <hp>180000</hp>
    <tr_name>TESTING CHURCH</tr_name>
    <period>202310</period>
    <nominal>100000</nominal>
    <admin>800</admin>
    <ref_id>0897654321</ref_id>
    <response_code>00</response_code>
    <message>INQUIRY SUCCESS</message>
    <price>100800</price>
    <selling_price>100350</selling_price>
</mp>

Live Testing

Request URL
https://testpostpaid.mobilepulsa.net/api/v1/bill/check
Request Method
Request Header
Content-Type: application/json
Body
Result

Tutorial Video

You can see this video for inquiry code explanation using Laravel.

Or you can see this video for inquiry code explanation using PHP.