Inquiry

API to inquiry Internet Telkom Speedy and Telkom PSTN.

Path

MethodPath
POSTapi/v1/bill/check

Test Case

CodeNumberResponse
TELKOMPSTN6391600000Success - 1 bill
TELKOMPSTN6391601999Success - 3 bills
TELKOMPSTN6391600001Inquiry - Invoice Has Been Paid
TELKOMPSTN6391600014Inquiry - Incorrect Destination Number
TELKOMPSTN6391600103Inquiry - Time Out
TELKOMPSTN6391601037Payment - Payment Failed
TELKOMPSTN6391601039Payment - Pending / transaction in process
TELKOMPSTN6391601105Payment - MISC Error / Biller System Error
TELKOMPSTN639160XXXXTest 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
hpStringInternet 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"        : "TELKOMPSTN",
  "hp"          : "6391600000",
  "ref_id"      : "091283746520",
  "sign"        : "3bb08f003963c2b18310aa5f339a215d"
}
<?xml version="1.0" ?>
<mp>
  <commands>inq-pasca</commands>
  <username>123123123</username>
  <code>TELKOMPSTN</code>
  <hp>6391600000</hp>
  <ref_id>091283746520</ref_id>
  <sign>3bb08f003963c2b18310aa5f339a215d</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.kode_areaStringArea codeYes
desc.divreStringDivreYes
desc.datelStringDatelYes
desc.jumlah_tagihanIntegerTotal InvoiceYes
desc.tagihanObjectInvoice dataYes
desc.tagihan.detailArrayInvoice detail per monthYes
desc.tagihan.detail.periodeStringBill period for detailed monthYes
desc.tagihan.detail.nilai_tagihanStringBill value for detailed monthYes
desc.tagihan.detail.adminStringAdmin fee for detailed monthYes
desc.tagihan.detail.totalDoubleBill total for detailed monthYes
{
  "data": {
    "tr_id": 9732432,
    "code": "TELKOMPSTN",
    "hp": "6391600000",
    "tr_name": "JAORAH",
    "period": "201405,201407",
    "nominal": 129610,
    "admin": 7500,
    "ref_id": "091283746520",
    "response_code": "00",
    "message": "INQUIRY SUCCESS",
    "price": 137110,
    "selling_price": 133510,
    "desc": {
      "kode_area": "0751",
      "divre": "01",
      "datel": "0006",
      "jumlah_tagihan": 3,
      "tagihan": {
        "detail": [
          {
            "periode": "MEI 2014",
            "nilai_tagihan": "49870",
            "admin": "2500",
            "total": 52370
          },
          {
            "periode": "JUN 2014",
            "nilai_tagihan": "44870",
            "admin": "2500",
            "total": 47370
          },
          {
            "periode": "JUL 2014",
            "nilai_tagihan": "34870",
            "admin": "2500",
            "total": 37370
          }
        ]
      }
    }
  },
  "meta": []
}
<?xml version="1.0"?>
<mp>
  <tr_id>9732432</tr_id>
  <code>TELKOMPSTN</code>
  <hp>6391600000</hp>
  <tr_name>JAORAH</tr_name>
  <period>201405,201407</period>
  <nominal>129610</nominal>
  <admin>7500</admin>
  <ref_id>091283746520</ref_id>
  <response_code>00</response_code>
  <message>INQUIRY SUCCESS</message>
  <price>137110</price>
  <selling_price>135910</selling_price>
  <desc>
    <kode_area>0751</kode_area>
    <divre>01</divre>
    <datel>0006</datel>
    <jumlah_tagihan>3</jumlah_tagihan>
    <tagihan>
      <detail>
        <periode>MEI 2014</periode>
        <nilai_tagihan>49870</nilai_tagihan>
        <admin>2500</admin>
        <total>52370</total>
      </detail>
      <detail>
        <periode>JUN 2014</periode>
        <nilai_tagihan>44870</nilai_tagihan>
        <admin>2500</admin>
        <total>47370</total>
      </detail>
      <detail>
        <periode>JUL 2014</periode>
        <nilai_tagihan>34870</nilai_tagihan>
        <admin>2500</admin>
        <total>37370</total>
      </detail>
    </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.