Inquiry

API to inquiry Insurance.

Path

MethodPath
POSTapi/v1/bill/check

Test Case

CodeNumberResponse
FNMEGA6391600000Success
FNMEGA6391600001Inquiry - Invoice Has Been Paid
FNMEGA6391600014Inquiry - Incorrect Destination Number
FNMEGA6391600103Inquiry - Time Out
FNMEGA6391601037Payment - Payment Failed
FNMEGA6391601039Payment - Pending / transaction in process
FNMEGA6391601105Payment - MISC Error / Biller System Error
FNMEGA639160XXXXTest 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
hpStringContract numberYes
ref_idStringYour order number / reference ID ( must unique )Yes
signStringSignature. Value: md5(username+api_key+ref_id)Yes
{
  "commands"    : "inq-pasca",
  "username"    : "123123123",
  "code"        : "FNMEGA",
  "hp"          : "6391600000",
  "ref_id"      : "09128374652",
  "sign"        : "3743ec3e02f9076ea56e2f61be698a8e"
}
<?xml version="1.0" ?>
<mp>
  <commands>inq-pasca</commands>
  <username>123123123</username>
  <code>FNMEGA</code>
  <hp>6391600000</hp>
  <ref_id>09128374652</ref_id>
  <sign>3743ec3e02f9076ea56e2f61be698a8e</sign>
</mp>

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
hpStringGas negara customer numberYes
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
desc.
{
  "data": {
    "tr_id": 268137898,
    "code": "FNMEGA",
    "hp": "6391600000",
    "tr_name": "TESTING INSURANCE",
    "period": "",
    "nominal": 1250000,
    "admin": 3000,
    "ref_id": "09128374652",
    "response_code": "00",
    "message": "INQUIRY SUCCESS",
    "price": 1253000,
    "selling_price": 1252500,
    "desc": {
      "misc_fee": 0,
      "item_name": "HONDA VARIO TECHNO 125 PGM FI NON CBS",
      "no_rangka": "MH1JFB111CK196426",
      "no_pol": "B6213UWX",
      "tenor": "030",
      "installment": 657695,
      "penalty_bill": 3305,
      "max_payment": 0,
      "last_paid_due_date": "14 Dec 12",
      "id_ref": "514367"
    }
  },
  "meta": []
}
<?xml version="1.0" encoding="UTF-8"?>
<mp>
  <tr_id>268137898</tr_id>
  <code>FNMEGA</code>
  <hp>6391600000</hp>
  <tr_name>TESTING INSURANCE</tr_name>
  <period></period>
  <nominal>1250000</nominal>
  <admin>3000</admin>
  <ref_id>09128374652</ref_id>
  <response_code>00</response_code>
  <message>TESTING INSURANCE</message>
  <price>1253000</price>
  <selling_price>1252500</selling_price>
  <desc>
    <misc_fee>0</misc_fee>
    <item_name>HONDA VARIO TECHNO 125 PGM FI NON CBS</item_name>
    <no_rangka>MH1JFB111CK196426</no_rangka>
    <no_pol>B6213UWX</no_pol>
    <tenor>030</tenor>
    <installment>657695</installment>
    <penalty_bill>3305</penalty_bill>
    <max_payment>0</max_payment>
    <last_paid_due_date>14 Dec 12</last_paid_due_date>
    <id_ref>514367</id_ref>
  </desc>
</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.