Payment

API to payment Internet Telkom Speedy and Telkom PSTN.

Path

MethodPath
POSTapi/v1/bill/check

Request Body

AttributesTypeDescriptionMandatory
commandsStringValue: pay-pascaYes
usernameStringYour registered phone numberYes
tr_idIntegerIAK inquiry IDYes
signStringSignature. Value: md5(username+api_key+tr_id)Yes
{
  "commands" : "pay-pasca",
  "username" : "123123123",
  "tr_id"    : "9732432",
  "sign"     : "06c2a1c20223e402e18365a3e5117c3a"
}
<?xml version="1.0" ?>
<mp>
  <commands>pay-pasca</commands>
  <username>123123123</username>
  <tr_id>9732432</tr_id>
  <sign>06c2a1c20223e402e18365a3e5117c3a</sign>
</mp>

Response

AttributesTypeDescriptionMandatory
tr_idIntegerIAK inquiry IDYes
codeStringProduct codeYes
datetimeStringTransaction time (Format YmdHis)Yes
hpStringInternet customer numberYes
tr_nameStringBill account nameYes
periodStringBill periodYes
nominalDoubleBill nominalYes
adminDoubleAdmin feeYes
response_codeStringResponse code. See response code listYes
messageStringMessageYes
priceDoubleTotal price that must be paid (nominal + admin fee)Yes
selling_priceDoubleDeducted balance (price - commission)Yes
balanceDoubleClient remaining balanceYes
norefStringBiller reference number (if exist)No
ref_idStringYour order number / reference ID ( must unique )Yes
descObjectProduct descriptionYes
desc.kode_areaStringArea codeYes
desc.divreStringDivreYes
desc.datelStringDatelYes
desc.jumlah_tagihanIntegerTotal InvoiceYes
desc.tagihanObjectInvoice dataYes
desc.tagihan.detailArrayInvoice detail per monthYes
desc.tagihan.detail.periodeStringBill period for detailed monthYes
desc.tagihan.detail.nilai_tagihanStringBill value for detailed monthYes
desc.tagihan.detail.adminStringAdmin fee for detailed monthYes
desc.tagihan.detail.totalDoubleBill total for detailed monthYes
{
  "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": []
}
<?xml version="1.0"?>
<mp>
  <tr_id>9732432</tr_id>
  <code>TELKOMPSTN</code>
  <datetime>20170725162507</datetime>
  <hp>6391600000</hp>
  <tr_name>JAORAH</tr_name>
  <period>201405,201407</period>
  <nominal>129610</nominal>
  <admin>7500</admin>
  <response_code>00</response_code>
  <message>PAYMENT SUCCESS</message>
  <price>137110</price>
  <selling_price>135910</selling_price>
  <balance>997161249</balance>
  <no_ref>1609626</no_ref>
  <ref_id>091283746520</ref_id>
  <desc>
    <kode_area>0751</kode_area>
    <divre>01</divre>
    <datel>0006</datel>
    <jumlah_tagihan>3</jumlah_tagihan>
    <tagihan>
      <detail>
        <periode>MEI 2014</periode>
        <nilai_tagihan>49870</nilai_tagihan>
        <admin>2500</admin>
        <total>52370</total>
      </detail>
      <detail>
        <periode>JUN 2014</periode>
        <nilai_tagihan>44870</nilai_tagihan>
        <admin>2500</admin>
        <total>47370</total>
      </detail>
      <detail>
        <periode>JUL 2014</periode>
        <nilai_tagihan>34870</nilai_tagihan>
        <admin>2500</admin>
        <total>37370</total>
      </detail>
    </tagihan>
  </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 payment code explanation using Laravel.

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