Payment

API to pay Custom Denom.

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

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
datetimeStringTransaction time (Format YmdHis)Yes
hpStringCustom Denom 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.footerStringProduct descriptionYes
{
  "data": {
    "tr_id": 131024523,
    "code": "SHOPEEPAY",
    "datetime": "20230519152953",
    "hp": "082100000000",
    "tr_name": "TESTING EMONEY",
    "period": "",
    "nominal": 100000,
    "admin": 800,
    "response_code": "00",
    "message": "PAYMENT SUCCESS",
    "price": 100800,
    "selling_price": 100350,
    "balance": 999899650,
    "noref": "f08ff5e3-8543-42a1-b885-04b9f1b521d4",
    "ref_id": "978994691278",
    "desc": {
      "footer": ""
    }
  },
  "meta": []
}
<?xml version="1.0"?>
<mp>
    <tr_id>131024523</tr_id>
    <code>SHOPEEPAY</code>
    <datetime>20230519152953</datetime>
    <hp>082100000000</hp>
    <tr_name>TESTING EMONEY</tr_name>
    <period></period>
    <nominal>100000</nominal>
    <admin>800</admin>
    <response_code>00</response_code>
    <message>PAYMENT SUCCESS</message>
    <price>100800</price>
    <selling_price>100350</selling_price>
    <balance>999899650</balance>
    <noref>f08ff5e3-8543-42a1-b885-04b9f1b521d4</noref>
    <ref_id>978994691278</ref_id>
    <desc>
      <footer></footer>
    </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.