Inquiry

API to inquiry PLN Postpaid.

Path

MethodPath
POSTapi/v1/bill/check

Test Case

CodeNumberResponse
PLNPOSTPAID530000000001Success - 1 bill
PLNPOSTPAID530000000002Success - 8 bills
PLNPOSTPAID530000000003Inquiry - Time Out
PLNPOSTPAID530000000004Inquiry - Invoice Has Been Paid
PLNPOSTPAID530000000005Inquiry - Incorrect Destination Number
PLNPOSTPAID530000000006Payment - Payment Failed
PLNPOSTPAID530000000007Payment - Pending / transaction in process
PLNPOSTPAID530000000008Payment - 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
hpStringPLN postpaid 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"        : "PLNPOSTPAID",
  "hp"          : "530000000001",
  "ref_id"      : "09128374655",
  "sign"        : "1ac8362ae9a517eadf4a47715555b022"
}
<?xml version="1.0" ?>
<mp>
  <commands>inq-pasca</commands>
  <username>123123123</username>
  <code>PLNPOSTPAID</code>
  <hp>530000000001</hp>
  <ref_id>09128374655</ref_id>
  <sign>1ac8362ae9a517eadf4a47715555b022</sign>
</mp>

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
hpStringPLN postpaid 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.tarifStringElectrical fare groupYes
desc.dayaIntegerElectrical powerYes
desc.lembar_tagihanStringNumber of billsYes
desc.tagihanObjectBill detailYes
desc.tagihan.detailArrayBill detailYes
desc.tagihan.detail.periodeStringBill period for detailed monthYes
desc.tagihan.detail.nilai_tagihanStringBill amount for detailed monthYes
desc.tagihan.detail.adminStringAdmin fee for detailed monthYes
desc.tagihan.detail.dendaStringPenalty fee for detailed monthYes
desc.tagihan.detail.totalDoubleBill total for detailed monthYes
{
  "data": {
    "tr_id": 9732792,
    "code": "PLNPOSTPAID",
    "hp": "530000000001",
    "tr_name": "SUBCRIBER NAME",
    "period": "201608",
    "nominal": 300000,
    "admin": 2500,
    "ref_id": "09128374655",
    "response_code": "00",
    "message": "INQUIRY SUCCESS",
    "price": 302500,
    "selling_price": 301900,
    "desc": {
      "tarif": "R1",
      "daya": 1300,
      "lembar_tagihan": "1",
      "tagihan": {
        "detail": [
          {
            "periode": "201608",
            "nilai_tagihan": "300000",
            "admin": "2500",
            "denda": "0",
            "total": 302500
          }
        ]
      }
    }
  },
  "meta": []
}
<?xml version="1.0"?>
<mp>
  <tr_id>9732792</tr_id>
  <code>PLNPOSTPAID</code>
  <hp>530000000001</hp>
  <tr_name>SUBCRIBER NAME</tr_name>
  <period>201608</period>
  <nominal>300000</nominal>
  <admin>2500</admin>
  <ref_id>09128374655</ref_id>
  <response_code>00</response_code>
  <message>INQUIRY SUCCESS</message>
  <price>302500</price>
  <selling_price>302500</selling_price>
  <desc>
    <tarif>R1</tarif>
    <daya>1300</daya>
    <lembar_tagihan>1</lembar_tagihan>
    <tagihan>
      <detail>
        <periode>201608</periode>
        <nilai_tagihan>300000</nilai_tagihan>
        <admin>2500</admin>
        <denda>0</denda>
        <total>302500</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.