Payment

API to pay BPJS Ketenagakerjaan Penerima Upah (PU).

Path

MethodPath
POSTapi/v1/bill/check

Request Body

AttributesTypeDescriptionMandatory
commandsStringValue: pay-pascaYes
usernameStringYour registered phone numberYes
tr_idIntegerIAK inquiry IDYes
signStringSignature. Value: md5(username+api_key+tr_id)Yes
{
  "commands" : "pay-pasca",
  "username" : "123123123", 
  "tr_id"    : "219342904",
  "sign"     : "e4fe9e9c8ba737d6897e7f15bb1380a0"
}
<?xml version="1.0" ?>
<mp>
  <commands>pay-pasca</commands>
  <username>123123123</username>
  <tr_id>219342904</tr_id>
  <sign>e4fe9e9c8ba737d6897e7f15bb1380a0</sign>
</mp>

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
datetimeStringTransaction time (Format YmdHis)Yes
hpStringNIKYes
tr_nameStringBill account nameYes
periodStringBill periodYes
nominalDoubleBill nominalYes
adminDoubleAdmin feeYes
response_codeStringResponse code. See response code listYes
messageStringMessageYes
priceDoubleTotal price that must be paid (nominal + admin fee)Yes
selling_priceDoubleDeducted balanceYes
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_programStringChoosen Program CodeYes
desc.jhtIntegerPension Plan FeeYes
desc.jkkIntegerAccident Insurance FeeYes
desc.jkmIntegerDeath Insurance FeeYes
desc.jpkIntegerLost Job FeeYes
desc.jpnIntegerPension Plan FeeYes
desc.nppStringCompany Registration NumberYes
desc.kode_divisiStringDivision CodeYes
{
  "data": {
    "tr_id": 219342904,
    "code": "BPJSTKPU",
    "datetime": "20220519163651",
    "hp": "210300016001",
    "tr_name": "PT LIMABELAS",
    "period": "202104",
    "nominal": 100000,
    "admin": 2500,
    "response_code": "00",
    "message": "PAYMENT SUCCESS",
    "price": 102500,
    "selling_price": 100500,
    "balance": 998359000,
    "noref": "iak62860fafe04c3",
    "ref_id": "091283746511",
    "desc": {
      "kode_iuran": "210300016066",
      "jht": 61688,
      "jkk": 1082,
      "jkm": 2166,
      "jpk": 2597,
      "jpn": 32467,
      "npp": "15092873",
      "kode_divisi": "000"
    }
  },
  "meta": []  
}
<?xml version="1.0" encoding="UTF-8" ?>
<mp>
  <tr_id>219342904</tr_id>
  <code>BPJSTKPU</code>
  <datetime>20220519163651</datetime>
  <hp>210300016001</hp>
  <tr_name>PT LIMABELAS</tr_name>
  <period>202104</period>
  <nominal>100000</nominal>
  <admin>2500</admin>
  <response_code>00</response_code>
  <message>PAYMENT SUCCESS</message>
  <price>102500</price>
  <selling_price>100500</selling_price>
  <balance>998359000</balance>
  <noref>iak62860fafe04c3</noref>
  <ref_id>091283746511</ref_id>
  <desc>
    <kode_iuran>210300016066</kode_iuran>
    <jht>61688</jht>
    <jkk>1082</jkk>
    <jkm>2166</jkm>
    <jpk>2597</jpk>
    <jpn>32467</jpn>
    <npp>15092873</npp>
    <kode_divisi>000</kode_divisi>
  </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 payment code explanation using Laravel.

Or you can see this video for payment code explanation using PHP.