Payment

API to pay PBB.

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"    : "24462730",
  "sign"     : "8ad94262a61ac27676a8b2b11fb80ee2"
}
<?xml version="1.0" ?>
<mp>
  <commands>pay-pasca</commands>
  <username>123123123</username>
  <tr_id>24462730</tr_id>
  <sign>8ad94262a61ac27676a8b2b11fb80ee2</sign>
</mp>

::

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
datetimeStringTransaction time (Format YmdHis)Yes
hpStringTax object numberYes
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 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.tanggalDoubleDateYes
desc.nopStringTax object numberYes
desc.tahun_pajakStringYear of the taxYes
desc.lokasiStringAsset locationYes
desc.kelurahanStringVillage officeYes
desc.kecamatanDoubleDistrictsYes
desc.kab_kotaDoubleDistricts / cityYes
desc.luas_tanahDoubleWide of surface areaYes
desc.luas_gedungStringWide of building areaYes
desc.jatuh_tempoStringDue dateYes
desc.total_tagihanFloatTotal billYes
desc.dendaFloatPenalty feeYes
desc.adminIntegerAdmin feeYes
desc.total_bayarFloatTotal paymentYes
{
  "data": {
    "tr_id": 24462730,
    "code": "PBBKOT.CIMAHI",
    "datetime": "20190916152947",
    "hp": "329801092375990000",
    "tr_name": "TESTING PBB",
    "period": "201909",
    "nominal": 203857,
    "admin": 5000,
    "response_code": "00",
    "message": "PAYMENT SUCCESS",
    "price": 208857,
    "selling_price": 208857,
    "balance": 274686,
    "noref": "190814738977",
    "ref_id": "978994691278",
    "desc": {
      "tanggal": "2019-08-14 13:57:54",
      "nop": "328073000401005610",
      "tahun_pajak": "2019",
      "lokasi": "KO. GRIYA ASRI CIPAGERAN",
      "kelurahan": "CIPAGERAN",
      "kecamatan": "CIMAHI UTARA",
      "kode_kab_kota": "0023",
      "kab_kota": "PEMKOT CIMAHI",
      "luas_tanah": "113 M2",
      "luas_gedung": "47 M2",
      "jatuh_tempo": "31/10/2019",
      "total_tagihan": 203857,
      "denda": 0,
      "admin": 5000,
      "total_bayar": 208857
    }
  },
  "meta": []
}
<?xml version="1.0"?>
<mp>
  <tr_id>24462730</tr_id>
  <code>PBBKOT.CIMAHI</code>
  <datetime>20190916152947</datetime>
  <hp>329801092375990000</hp>
  <tr_name>TESTING PBB</tr_name>
  <period>201909</period>
  <nominal>203857</nominal>
  <admin>5000</admin>
  <response_code>00</response_code>
  <message>PAYMENT SUCCESS</message>
  <price>208857</price>
  <selling_price>208857</selling_price>
  <balance>274686</balance>
  <noref>190814738977</noref>
  <ref_id>978994691278</ref_id>
  <desc>
    <tanggal>2019-08-14 13:57:54</tanggal>
    <nop>328073000401005610</nop>
    <tahun_pajak>2019</tahun_pajak>
    <lokasi>KO. GRIYA ASRI CIPAGERAN</lokasi>
    <kelurahan>CIPAGERAN</kelurahan>
    <kecamatan>CIMAHI UTARA</kecamatan>
    <kode_kab_kota>0023</kode_kab_kota>
    <kab_kota>PEMKOT CIMAHI</kab_kota>
    <luas_tanah>113 M2</luas_tanah>
    <luas_gedung>47 M2</luas_gedung>
    <jatuh_tempo>31/10/2019</jatuh_tempo>
    <total_tagihan>203857</total_tagihan>
    <denda>0</denda>
    <admin>5000</admin>
    <total_bayar>208857</total_bayar>
  </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.