Inquiry

API to inquiry Non Member Church Offerings.

Path

MethodPath
POSTapi/v1/bill/check

Test Case

Test Case

CodeNumberResponse
NONMEMBER.IAK_Church-Perpuluhan_2022190000Success
NONMEMBER.IAK_Church-Perpuluhan_2022190001Inquiry - Invoice Has Been Paid
NONMEMBER.IAK_Church-Perpuluhan_2022190014Inquiry - Incorrect Destination Number
NONMEMBER.IAK_Church-Perpuluhan_2022190103Inquiry - Time Out
NONMEMBER.IAK_Church-Perpuluhan_2022191037Payment - Payment Failed
NONMEMBER.IAK_Church-Perpuluhan_2022191039Payment - Pending / transaction in process
NONMEMBER.IAK_Church-Perpuluhan_2022191105Payment - MISC Error / Biller System Error
NONMEMBER.IAK_Church-Perpuluhan_202219XXXXTest 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"     : "NONMEMBER.IAK_Church-Perpuluhan_2022",
  "hp"       : "190000",
  "ref_id"   : "8897654321",
  "sign"     : "6c6a046a14c444e44cfab5e4bbb01b01",
  "desc"     : {
    "amount" : 100000
  }
}
<?xml version="1.0" ?>
<mp>
    <commands>inq-pasca</commands>
    <username>123123123</username>
    <code>NONMEMBER.IAK_Church-Perpuluhan_2022</code>
    <hp>190000</hp>
    <ref_id>8897654321</ref_id>
    <sign>6c6a046a14c444e44cfab5e4bbb01b01</sign>
    <desc>
        <amount>100000</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": "NONMEMBER.IAK_Church-Perpuluhan_2022",
    "hp": "190000",
    "tr_name": "TESTING CHURCH",
    "period": "202310",
    "nominal": 100000,
    "admin": 800,
    "ref_id": "8897654321",
    "response_code": "00",
    "message": "INQUIRY SUCCESS",
    "price": 100800,
    "selling_price": 100350,
    "desc": []
  },
  "meta": []
}
<?xml version="1.0"?>
<mp>
    <tr_id>131024523</tr_id>
    <code>NONMEMBER.IAK_Church-Perpuluhan_2022</code>
    <hp>190000</hp>
    <tr_name>TESTING CHURCH</tr_name>
    <period>202310</period>
    <nominal>100000</nominal>
    <admin>800</admin>
    <ref_id>8897654321</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.