Payment
API to pay Telco Postpaid.
Path
Method | Path |
---|---|
POST | api/v1/bill/check |
Request Body
Attributes | Type | Description | Mandatory |
---|---|---|---|
commands | String | Value: pay-pasca | Yes |
username | String | Your registered phone number | Yes |
tr_id | Integer | IAK inquiry ID | Yes |
sign | String | Signature. Value: md5(username+api_key+tr_id) | Yes |
{
"commands" : "pay-pasca",
"username" : "123123123",
"tr_id" : "9732412",
"sign" : "5859520358d7ed4b3cd60eb10fae015d"
}
Response
Attributes | Type | Description | Mandatory |
---|---|---|---|
tr_id | Integer | IAK inquiry ID | Yes |
code | String | Product code | Yes |
datetime | String | Transaction time (Format YmdHis) | Yes |
hp | String | PLN postpaid customer number | Yes |
tr_name | String | Bill account name | Yes |
period | String | Bill period | Yes |
nominal | Double | Bill nominal | Yes |
admin | Double | Admin fee | Yes |
response_code | String | Response code. See response code list | Yes |
message | String | Message | Yes |
price | Double | Total price that must be paid (nominal + admin fee) | Yes |
selling_price | Double | Deducted balance (price - commission) | Yes |
balance | Double | Client remaining balance | Yes |
noref | String | Biller reference number (if exist) | No |
ref_id | String | Your order number / reference ID ( must unique ) | Yes |
desc | Object | Product description | Yes |
desc.kode_area | String | Area code | Yes |
desc.divre | String | Divre | Yes |
desc.datel | String | Datel | Yes |
desc.jumlah_tagihan | Integer | Number of invoice | Yes |
desc.tagihan | Object | Invoice data | Yes |
desc.tagihan.detail | Array | Detail of invoice per month | Yes |
desc.tagihan.detail.periode | String | Bill period for detailed month | Yes |
desc.tagihan.detail.nilai_tagihan | String | Bill amount for detailed month | Yes |
desc.tagihan.detail.admin | String | Admin fee for detailed month | Yes |
desc.tagihan.detail.total | String | Bill total for detailed month | Yes |
{
"data": {
"tr_id": 9732412,
"code": "HPTHREE",
"datetime": "20180803171944",
"hp": "08991230000",
"tr_name": "INTAN NUR AZIZA",
"period": "",
"nominal": 55000,
"admin": 0,
"response_code": "00",
"message": "PAYMENT SUCCESS",
"price": 55000,
"selling_price": 54000,
"balance": 997294759,
"noref": "259558197",
"ref_id": "09128374658",
"desc": {
"kode_area": "",
"divre": "",
"datel": "",
"jumlah_tagihan": 1,
"tagihan": {
"detail": [
{
"periode": "",
"nilai_tagihan": "",
"admin": "",
"total": ""
}
]
}
}
},
"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 payment code explanation using Laravel.
Or you can see this video for payment code explanation using PHP.
Table of Contents