Inquiry

API to inquiry Television Non Telkom Vision.

Path

MethodPath
POSTapi/v1/bill/check

Test Case

CodeNumberResponse
TVBIG1072161401Success
TVBIG1072161403Inquiry - Time Out
TVBIG1072161404Inquiry - Invoice Has Been Paid
TVBIG1072161405Inquiry - Incorrect Destination Number
TVBIG1072161406Payment - Payment Failed
TVBIG1072161407Payment - Pending / transaction in process
TVBIG1072161408Payment - MISC Error / Biller System Error

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
hpStringTelevision 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"      : "TVBIG",
  "hp"        : "1072161401",
  "ref_id"    : "09128374656",
  "sign"      : "15011812f64ce888747de76059aa0b20"
}
<?xml version="1.0" ?>
<mp>
  <commands>inq-pasca</commands>
  <username>123123123</username>
  <code>TVBIG</code>
  <hp>1072161401</hp>
  <ref_id>09128374656</ref_id>
  <sign>15011812f64ce888747de76059aa0b20</sign>
</mp>

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
hpStringTelevision 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 balanceYes
descObjectProduct descriptionYes
desc.bill_quantityStringBill quantityYes
desc.product_categoryStringProduct categoryYes
desc.ppnDoubleTax feeYes
desc.tagihanObject- (Unused)Yes
{
  "data": {
    "tr_id": 9732793,
    "code": "TVBIG",
    "hp": "1072161401",
    "tr_name": "Mr. syahrun as",
    "period": "",
    "nominal": 138499,
    "admin": 0,
    "ref_id": "09128374656",
    "response_code": "00",
    "message": "INQUIRY SUCCESS",
    "price": 138499,
    "selling_price": 137399,
    "desc": {
      "bill_quantity": "1",
      "product_category": "",
      "ppn": 0,
      "tagihan": {
        "detail": []
      }
    }
  },
  "meta": []
}
<?xml version="1.0"?>
<mp>
  <tr_id>9732793</tr_id>
  <code>TVBIG</code>
  <hp>1072161401</hp>
  <tr_name>Mr. syahrun as</tr_name>
  <period></period>
  <nominal>138499</nominal>
  <admin>0</admin>
  <ref_id>09128374656</ref_id>
  <response_code>00</response_code>
  <message>INQUIRY SUCCESS</message>
  <price>138499</price>
  <selling_price>137499</selling_price>
  <desc>
    <bill_quantity>1</bill_quantity>
    <product_category></product_category>
    <ppn>0</ppn>
    <tagihan/>
  </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.