Payment

API to pay E-Samsat.

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

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
datetimeStringTransaction time (Format YmdHis)Yes
hpStringESAMSAT payment codeYes
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.nomor_identitasStringCustomer identity numberYes
desc.nomor_rangkaStringVehicle identification numberYes
desc.nomor_mesinStringMachine numberYes
desc.alamatStringAddressYes
desc.milik_kenamaStringVehicle status whether the vehicle has been sold or notYes
desc.merek_kbStringVehicle brandYes
desc.tahun_buatanStringYear madeYes
desc.tgl_akhir_pajak_baruStringValid untilYes
desc.biaya_pokokObjectBasic feeYes
desc.biaya_pokok.BBNStringBea balik nama feeYes
desc.biaya_pokok.PKBStringPajak kendaraan bermotor feeYes
desc.biaya_pokok.SWDStringSumbangan wajib dana kecelakaan lalu lintas feeYes
desc.biaya_dendaObjectPenalty feeYes
desc.biaya_denda.BBNStringBea balik nama penalty feeYes
desc.biaya_denda.PKBStringPajak kendaraan bermotor penalty feeYes
desc.biaya_denda.SWDStringSumbangan wajib dana kecelakaan lalu lintas penalty feeYes
desc.biaya_adminObjectAdmin feeYes
desc.biaya_admin.stnkStringSurat tanda nomor kendaraan admin feeYes
desc.biaya_admin.tnkbStringTanda nomor kendaraan bermotor admin feeYes
desc.biaya_parkir_pokokStringMain parking feeYes
desc.biaya_pajak_progresifStringProgressive tax feeYes
desc.ntpdStringESAMSAT transaction numberYes
{
  "data": {
    "tr_id": 24462352,
    "code": "ESAMSAT.JABAR",
    "datetime": "20190812180154",
    "hp": "9658548523560000",
    "tr_name": "TESTING ESAMSAT",
    "period": "20181022-20191022",
    "nominal": 2274500,
    "admin": 5000,
    "response_code": "00",
    "message": "PAYMENT SUCCESS",
    "price": 2279500,
    "selling_price": 2277000,
    "balance": 999490800,
    "noref": "9658548523568701",
    "ref_id": "978994691299",
    "desc": {
      "nomor_identitas": "0212502110170100",
      "nomor_rangka": "MHKV5EA2JFJ001044",
      "nomor_mesin": "1NRF012268",
      "alamat": "GRIYA BULELENG 2 RT 005 RW 014 BULELENG",
      "nomor_polisi": "DK 1243AL",
      "milik_kenama": "001",
      "merek_kb": "DAIHATSU",
      "model_kb": "XENIA 1.3 R M\/T F653RV-GMDFJ",
      "tahun_buatan": "2018",
      "tgl_akhir_pajak_baru": "20191022",
      "biaya_pokok": {
        "BBN": "0",
        "PKB": "2131500",
        "SWD": "143000"
      },
      "biaya_denda": {
        "BBN": "0",
        "PKB": "0",
        "SWD": "0"
      },
      "biaya_admin": {
        "stnk": "0",
        "tnkb": "0"
      },
      "biaya_parkir_pokok": "0",
      "biaya_pajak_progresif": "0",
      "ntpd": "Q8T3L318R0Z3"
    }
  },
  "meta": []
}
<?xml version="1.0"?>
<mp>
  <tr_id>24462352</tr_id>
  <code>ESAMSAT.JABAR</code>
  <datetime>20190812180154</datetime>
  <hp>9658548523560000</hp>
  <tr_name>TESTING ESAMSAT</tr_name>
  <period>20181022-20191022</period>
  <nominal>2274500</nominal>
  <admin>5000</admin>
  <response_code>00</response_code>
  <message>PAYMENT SUCCESS</message>
  <price>2279500</price>
  <selling_price>2277000</selling_price>
  <balance>999490800</balance>
  <noref>9658548523568701</noref>
  <ref_id>978994691299</ref_id>
  <desc>
    <nomor_identitas>0212502110170100</nomor_identitas>
    <nomor_rangka>MHKV5EA2JFJ001044</nomor_rangka>
    <nomor_mesin>1NRF012268</nomor_mesin>
    <alamat>GRIYA BULELENG 2 RT 005 RW 014 BULELENG</alamat>
    <nomor_polisi>DK 1243AL</nomor_polisi>
    <milik_kenama>001</milik_kenama>
    <merek_kb>DAIHATSU</merek_kb>
    <model_kb>XENIA 1.3 R M\/T F653RV-GMDFJ</model_kb>
    <tahun_buatan>2018</tahun_buatan>
    <tgl_akhir_pajak_baru>20191022</tgl_akhir_pajak_baru>
    <biaya_pokok>
      <BBN>0</BBN>
      <PKB>2131500</PKB>
      <SWD>143000</SWD>
    </biaya_pokok>
    <biaya_denda>
      <BBN>0</BBN>
      <PKB>0</PKB>
      <SWD>0</SWD>
    </biaya_denda>
    <biaya_admin>
      <stnk>0</stnk>
      <tnkb>0</tnkb>
    </biaya_admin>
    <biaya_parkir_pokok>0</biaya_parkir_pokok>
    <biaya_pajak_progresif>0</biaya_pajak_progresif>
    <ntpd>Q8T3L318R0Z3</ntpd>
  </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.