Inquiry

API to inquiry Internet Non Telkom Speedy and Telkom PSTN.

Path

MethodPath
POSTapi/v1/bill/check

Test Case

CodeNumberResponse
CBN01920000Success
CBN01920001Inquiry - Invoice Has Been Paid
CBN01920014Inquiry - Incorrect Destination Number
CBN01920103Inquiry - Time Out
CBN01921037Payment - Payment Failed
CBN01921039Payment - Pending / transaction in process
CBN01921105Payment - MISC Error / Biller System Error
CBN0192XXXXTest 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
hpStringGas negara customer 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"     : "CBN",
  "hp"       : "01920000",
  "ref_id"   : "578912993899",
  "sign"     : "01a6e0b7880edc11d155ca2e79c02899"
}
<?xml version="1.0" ?>
<mp>
  <commands>inq-pasca</commands>
  <username>123123123</username>
  <code>CBN</code>
  <hp>01920000</hp>
  <ref_id>578912993899</ref_id>
  <sign>01a6e0b7880edc11d155ca2e79c02899</sign>
</mp>

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
hpStringInternet 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.product_descStringProduct detail descriptionYes
{
  "data": {
    "tr_id": 24462351,
    "code": "CBN",
    "hp": "01920000",
    "tr_name": "Budi",
    "period": "201905",
    "nominal": 30000,
    "admin": 0,
    "ref_id": "578912993899",
    "response_code": "00",
    "message": "INQUIRY SUCCESS",
    "price": 30000,
    "selling_price": 29000,
    "desc": {
      "product_desc": "CBN Anywhere Basic"
    }
  },
  "meta": []
}
<?xml version="1.0"?>
<mp>
  <tr_id>24462351</tr_id>
  <code>CBN</code>
  <hp>01920000</hp>
  <tr_name>Budi</tr_name>
  <period>201905</period>
  <nominal>30000</nominal>
  <admin>0</admin>
  <ref_id>578912993899</ref_id>
  <response_code>00</response_code>
  <message>INQUIRY SUCCESS</message>
  <price>30000</price>
  <selling_price>29000</selling_price>
  <desc>
    <product_desc>CBN Anywhere Basic</product_desc>
  </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.