PGAS
Inquiry
API to inquiry Gas Negara.
Path
| Method | Path |
|---|---|
| POST | api/v1/bill/check |
Test Case
| Code | Number | Response |
|---|---|---|
| PGAS | 0110010000 | Success |
| PGAS | 0110010001 | Inquiry - Invoice Has Been Paid |
| PGAS | 0110010014 | Inquiry - Incorrect Destination Number |
| PGAS | 0110010103 | Inquiry - Time Out |
| PGAS | 0110011037 | Payment - Payment Failed |
| PGAS | 0110011039 | Payment - Pending / transaction in process |
| PGAS | 0110011105 | Payment - MISC Error / Biller System Error |
| PGAS | 011001XXXX | Test other response scenarios in the test case menu. |
Request Body
| Attributes | Type | Description | Mandatory |
|---|---|---|---|
| commands | String | Value: inq-pasca | Yes |
| username | String | Your registered phone number | Yes |
| code | String | Product Code. You can get list of product code in pricelist api or from pricelist here | Yes |
| hp | String | Gas negara customer number | Yes |
| ref_id | String | Your order number / reference ID ( must unique ) | Yes |
| sign | String | Signature. Value: md5(username+api_key+ref_id) | Yes |
{
"commands" : "inq-pasca",
"username" : "123123123",
"code" : "PGAS",
"hp" : "0110010000",
"ref_id" : "151270689512",
"sign" : "12fe359b0638d81d70ea1d278f400ab1"
}
<?xml version="1.0" ?>
<mp>
<commands>inq-pasca</commands>
<username>123123123</username>
<code>PGAS</code>
<hp>0110010000</hp>
<ref_id>151270689512</ref_id>
<sign>12fe359b0638d81d70ea1d278f400ab1</sign>
</mp>
Response 1 Bill
Loading...
{
"data": {},
"meta": []
}Response Multiple Bill
Loading...
{
"data": {},
"meta": []
}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.
