Payment
API to payment Internet Telkom Speedy and Telkom PSTN.
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" : "9732432",
"sign" : "06c2a1c20223e402e18365a3e5117c3a"
}
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 | Internet 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 | Total Invoice | Yes |
desc.tagihan | Object | Invoice data | Yes |
desc.tagihan.detail | Array | Invoice detail per month | Yes |
desc.tagihan.detail.periode | String | Bill period for detailed month | Yes |
desc.tagihan.detail.nilai_tagihan | String | Bill value for detailed month | Yes |
desc.tagihan.detail.admin | String | Admin fee for detailed month | Yes |
desc.tagihan.detail.total | Double | Bill total for detailed month | Yes |
{
"data": {
"tr_id": 9732432,
"code": "TELKOMPSTN",
"datetime": "20180803172000",
"hp": "6391600000",
"tr_name": "JAORAH",
"period": "201405,201407",
"nominal": 129610,
"admin": 7500,
"response_code": "00",
"message": "PAYMENT SUCCESS",
"price": 137110,
"selling_price": 133510,
"balance": 997161249,
"noref": "1609626",
"ref_id": "091283746520",
"desc": {
"kode_area": "0751",
"divre": "01",
"datel": "0006",
"jumlah_tagihan": 3,
"tagihan": {
"detail": [
{
"periode": "MEI 2014",
"nilai_tagihan": "49870",
"admin": "2500",
"total": 52370
},
{
"periode": "JUN 2014",
"nilai_tagihan": "44870",
"admin": "2500",
"total": 47370
},
{
"periode": "JUL2014",
"nilai_tagihan": "34870",
"admin": "2500",
"total": 37370
}
]
}
}
},
"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