Inquiry

API to inquiry Custom Denom.

Path

MethodPath
POSTapi/v1/bill/check

Test Case

CodeNumberResponse
SHOPEEPAY082100000000Success
SHOPEEPAY082100000001Inquiry - Invoice Has Been Paid
SHOPEEPAY082100000014Inquiry - Incorrect Destination Number
SHOPEEPAY082100000103Inquiry - Time Out
SHOPEEPAY082100001037Payment - Payment Failed
SHOPEEPAY082100001039Payment - Pending / transaction in process
SHOPEEPAY082100001105Payment - MISC Error / Biller System Error
SHOPEEPAY08210000XXXXTest other response scenarios in the test case menu.

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"       : "082100000000",
  "ref_id"   : "978994691278",
  "sign"     : "6c6a046a14c444e44cfab5e4bbb01b01",
  "desc"     : {
    "amount" : 100000
  }
}
<?xml version="1.0" ?>
<mp>
  <commands>inq-pasca</commands>
  <username>123123123</username>
  <code>SHOPEEPAY</code>
  <hp>082100000000</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 balance (price - commission)Yes
descObjectProduct descriptionYes
desc.footerStringProduct descriptionYes
{
  "data": {
    "tr_id": 131024523,
    "code": "SHOPEEPAY",
    "hp": "082100000000",
    "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>082100000000</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.