Inquiry

API to inquiry Custom Denom.

Path

MethodPath
POSTapi/v1/bill/check

Test Case

CodeNumberResponse
SHOPEEPAY082100000001Success
SHOPEEPAY082100000002Success
SHOPEEPAY082100000003Inquiry - Time Out
SHOPEEPAY082100000004Inquiry - Invoice Has Been Paid
SHOPEEPAY082100000005Inquiry - Incorrect Destination Number
SHOPEEPAY082100000006Payment - Payment Failed
SHOPEEPAY082100000007Payment - Pending / transaction in process
SHOPEEPAY082100000008Payment - MISC Error / Biller System Error

Request Body

AttributesTypeDescriptionMandatory
commandsStringValue: inq-pascaYes
usernameStringYour registered phone numberYes
codeStringProduct Code. You can get list of product code in pricelist api or from pricelist hereYes
hpStringCustom Denom payment codeYes
ref_idStringYour order number / reference ID ( must unique )Yes
signStringSignature. Value: md5(username+api_key+ref_id)Yes
descObejctProduct descriptionYes
desc.amountIntegerCustom nominal amountYes
{
  "commands" : "inq-pasca",
  "username" : "123123123",
  "code"     : "SHOPEEPAY",
  "hp"       : "082100000001",
  "ref_id"   : "978994691278",
  "sign"     : "6c6a046a14c444e44cfab5e4bbb01b01",
  "desc"     : {
    "amount" : 100000
  }
}
<?xml version="1.0" ?>
<mp>
  <commands>inq-pasca</commands>
  <username>123123123</username>
  <code>SHOPEEPAY</code>
  <hp>082100000001</hp>
  <ref_id>978994691278</ref_id>
  <sign>6c6a046a14c444e44cfab5e4bbb01b01</sign>
  <desc>
    <amount>100000</amount>
  </desc>
</mp>

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
hpStringCustom Denom payment codeYes
tr_nameStringBill account nameYes
periodStringBill periodYes
nominalDoubleBill nominalYes
adminDoubleAdmin feeYes
ref_idStringYour order number / reference ID ( must unique )Yes
response_codeStringResponse code. See response code listYes
messageStringMessageYes
priceDoubleTotal price that must be paid (nominal + admin fee)Yes
selling_priceDoubleDeducted balanceYes
descObjectProduct descriptionYes
desc.footerStringProduct descriptionYes
{
  "data": {
    "tr_id": 131024523,
    "code": "SHOPEEPAY",
    "hp": "082100000001",
    "tr_name": "TESTING EMONEY",
    "period": "",
    "nominal": 100000,
    "admin": 800,
    "ref_id": "978994691278",
    "response_code": "00",
    "message": "INQUIRY SUCCESS",
    "price": 100800,
    "selling_price": 100350,
    "desc": {
      "footer": ""
    }
  },
  "meta": []
}
<?xml version="1.0"?>
<mp>
  <tr_id>131024523</tr_id>
  <code>SHOPEEPAY</code>
  <hp>082100000001</hp>
  <tr_name>TESTING EMONEY</tr_name>
  <period></period>
  <nominal>100000</nominal>
  <admin>800</admin>
  <ref_id>978994691278</ref_id>
  <response_code>00</response_code>
  <message>INQUIRY SUCCESS</message>
  <price>100800</price>
  <selling_price>100350</selling_price>
  <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 inquiry code explanation using Laravel.

Or you can see this video for inquiry code explanation using PHP.