Inquiry

API to inquiry BPJS Kesehatan Bukan Pemberi Upah (BPU).

Path

MethodPath
POSTapi/v1/bill/check

Test Case

CodeNumberResponse
BPJSTK8102051011270000Success
BPJSTK8102051011270001Inquiry - Invoice Has Been Paid
BPJSTK8102051011270014Inquiry - Incorrect Destination Number
BPJSTK8102051011270103Inquiry - Time Out
BPJSTK8102051011271037Payment - Payment Failed
BPJSTK8102051011271039Payment - Pending / transaction in process
BPJSTK8102051011271105Payment - MISC Error / Biller System Error
BPJSTK810205101127XXXXTest 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
hpStringNIKYes
ref_idStringYour order number / reference ID ( must unique )Yes
signStringSignature. Value: md5(username+api_key+ref_id)Yes
monthIntegerNumber of month you're willing to payYes
{
  "commands" : "inq-pasca",
  "username" : "123123123",
  "code"     : "BPJSTK",
  "hp"       : "8102051011270000",
  "ref_id"   : "091283746511",
  "sign"     : "6515c5094421834a85ed9ac7a0fe443b",
  "month"    : 1
}
<?xml version="1.0" ?>
<mp>
  <commands>inq-pasca</commands>
  <username>123123123</username>
  <code>BPJSTK</code>
  <hp>8102051011270000</hp>
  <ref_id>091283746511</ref_id>
  <sign>6515c5094421834a85ed9ac7a0fe443b</sign>
  <month>1</month>
</mp>

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
datetimeStringTransaction time (Format YmdHis)Yes
hpStringNIKYes
tr_nameStringBill account nameYes
periodStringNumber of month to payYes
nominalDoubleBill nominalYes
adminDoubleAdmin feeYes
response_codeStringResponse code. See response code listYes
messageStringMessageYes
priceDoubleTotal price that must be paid (nominal + admin fee)Yes
selling_priceDoubleDeducted balance (price - commission)Yes
balanceDoubleClient remaining balanceYes
norefStringBiller reference number (if exist)No
ref_idStringYour order number / reference ID ( must unique )Yes
descObjectProduct descriptionYes
desc.kode_iuranStringContribution CodeYes
desc.kode_programStringChosen Program CodeYes
desc.jhtIntegerPension Plan FeeYes
desc.jkkIntegerAccident Insurance FeeYes
desc.jkmIntegerDeath Insurance FeeYes
desc.kantor_cabangStringBranch OfficeYes
desc.tgl_efektifStringEffective date. Format: Y-m-dYes
desc.tgl_expiredStringExpired Date. Format: Y-m-dYes
{
  "data": {
    "tr_id": 219342820,
    "code": "BPJSTK",
    "hp": "8102051011270000",
    "tr_name": "DWI TAMARA ANGGITA",
    "period": "1",
    "nominal": 16800,
    "admin": 3500,
    "ref_id": "091283746511",
    "response_code": "00",
    "message": "INQUIRY SUCCESS",
    "price": 20300,
    "selling_price": 17800,
    "desc": {
      "kode_iuran": "",
      "kode_program": "JKK,JKM",
      "jht": 0,
      "jkk": 10000,
      "jkm": 6800,
      "kantor_cabang": "KABUPATEN TANGERANG",
      "tgl_efektif": "2022-05-11",
      "tgl_expired": "2024-08-10"
    }
  },
  "meta": []
}
<?xml version="1.0" encoding="UTF-8" ?>
<mp>
  <tr_id>219342820</tr_id>
  <code>BPJSTK</code>
  <hp>8102051011270000</hp>
  <tr_name>DWI TAMARA ANGGITA</tr_name>
  <period>1</period>
  <nominal>16800</nominal>
  <admin>3500</admin>
  <ref_id>091283746511</ref_id>
  <response_code>00</response_code>
  <message>INQUIRY SUCCESS</message>
  <price>20300</price>
  <selling_price>17800</selling_price>
  <desc>
    <kode_iuran></kode_iuran>
    <kode_program>JKK,JKM</kode_program>
    <jht>0</jht>
    <jkk>10000</jkk>
    <jkm>6800</jkm>
    <kantor_cabang>KABUPATEN TANGERANG</kantor_cabang>
    <tgl_efektif>2022-05-11</tgl_efektif>
    <tgl_expired>2024-08-10</tgl_expired>
  </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.