Payment

API to pay Insurance.

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

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
datetimeStringTransaction time (Format YmdHis)Yes
hpStringContract 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 description, please refer to insurance objectYes
{
  "data": {
    "tr_id": 268137898,
    "code": "FNMEGA",
    "datetime": "20221110143144",
    "hp": "6391600000",
    "tr_name": "TESTING INSURANCE",
    "period": "",
    "nominal": 1250000,
    "admin": 3000,
    "response_code": "00",
    "message": "PAYMENT SUCCESS",
    "price": 1253000,
    "selling_price": 1252500,
    "balance": 99890200908,
    "noref": "2022080917161681291 0000000252",
    "ref_id": "09128374652",
    "desc": {
      "misc_fee": 0,
      "item_name": "HONDA VARIO TECHNO 125 PGM FI NON CBS",
      "no_rangka": "MH1JFB111CK196426",
      "no_pol": "B6213UWX",
      "tenor": "030",
      "installment": 657695,
      "penalty_bill": 3305,
      "max_payment": 0,
      "last_paid_due_date": "14 Dec 12",
      "id_ref": "514367"
    }
  },
  "meta": []
}
<?xmlversion="1.0"encoding="UTF-8"?>
<mp>
  <tr_id>268137898</tr_id>
  <code>FNMEGA</code>
  <datetime>20221110143144</datetime>
  <hp>6391600000</hp>
  <tr_name>TESTING INSURANCE</tr_name>
  <period></period>
  <nominal>1250000</nominal>
  <admin>3000</admin>
  <response_code>00</response_code>
  <message>PAYMENTSUCCESS</message>
  <price>1253000</price>
  <selling_price>1252500</selling_price>
  <balance>99890200908</balance>
  <noref>20220809171616812910000000252</noref>
  <ref_id>09128374652</ref_id>
  <desc>
    <misc_fee>0</misc_fee>
    <item_name>HONDA VARIO TECHNO 125 PGM FI NON CBS</item_name>
    <no_rangka>MH1JFB111CK196426</no_rangka>
    <no_pol>B6213UWX</no_pol>
    <tenor>030</tenor>
    <installment>657695</installment>
    <penalty_bill>3305</penalty_bill>
    <max_payment>0</max_payment>
    <last_paid_due_date>14 Dec 12</last_paid_due_date>
    <id_ref>514367</id_ref>
  </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.