Payment

API to payment Internet Non Telkom Speedy and Telkom PSTN.

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

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
datetimeStringTransaction time (Format YmdHis)Yes
hpStringInternet customer 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.product_descStringProduct detail descriptionYes
{
  "data": {
    "tr_id": 24462351,
    "code": "CBN",
    "datetime": "20190812143154",
    "hp": "01920000",
    "tr_name": "Budi",
    "period": "201905",
    "nominal": 30000,
    "admin": 0,
    "response_code": "00",
    "message": "PAYMENT SUCCESS",
    "price": 30000,
    "selling_price": 29000,
    "balance": 999490800,
    "noref": "0109101/07/2019",
    "ref_id": "578912993899",
    "desc": {
      "product_desc": "CBN Anywhere Basic"
    }
  },
  "meta": []
}
<?xml version="1.0"?>
<mp>
  <tr_id>24462351</tr_id>
  <code>CBN</code>
  <datetime>20190812143154</datetime>
  <hp>01920000</hp>
  <tr_name>Budi</tr_name>
  <period>201905</period>
  <nominal>30000</nominal>
  <admin>0</admin>
  <response_code>00</response_code>
  <message>PAYMENT SUCCESS</message>
  <price>30000</price>
  <selling_price>29000</selling_price>
  <balance>75899043</balance>
  <noref>0109101/07/2019</noref>
  <ref_id>578912993899</ref_id>
  <desc>
    <product_desc>CBN Anywhere Basic</product_desc>
  </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.