Biller Products

PLN Pascabayar

Espay menyediakan API untuk pembayaran PLN Pascabayar secara online. Integrasi dilakukan dengan cara mengirim permintaan ke layanan Bill Inquiry dengan menyertakan kode pelanggan. Setelah itu, untuk menyelesaikan pembayaran, kirim permintaan ke layanan Bill Payment dengan menyertakan data yang diperoleh dari Bill Inquiry. Pelajari lebih lanjut Biller Product | Bill Inquiry dan Biller Product | Bill Payment.

Unduh koleksi Postman – PLN Pascabayar di sini.

Kode Produk



Bill Inquiry - PLN Postpaid

Contoh Permintaan

POST /rest/biller/inquirytransaction HTTP/1.1
Host: sandbox-api.espay.id
Content-Type: application/x-www-form-urlencoded
Authorization: Basic ZXNwYXktdGVzdDp0ZXN0
Content-Length: 222
  
rq_uuid=SANDBOXINQUIRYBILLER0101010&
rq_datetime=2019-10-10%2011%3A01%3A30&
sender_id=SANDBOX&
password=test&
order_id=520520796665&
product_code=SLYLPO&
signature=9d6eede295d8865adc9eefa3fc48c059d22773338b01284eb42ab688671a7c9c
               


Contoh Respons Positif

Postman error
                


Contoh Respons Negatif

{
   "rq_uuid":"SANDBOXINQUIRYBILLER0101010",
   "rs_datetime":"2025-02-26 14:03:31",
   "error_code":"9999",
   "error_message":"Suspect"
}
                



Bill Payment - PLN Postpaid

Contoh Permintaan

POST /rest/biller/paymentreport HTTP/1.1
Host: sandbox-api.espay.id
Content-Type: application/x-www-form-urlencoded
Authorization: Basic ZXNwYXktdGVzdDp0ZXN0
Content-Length: 660
  
rq_uuid=SANDBOXPAYMENTBILLER010190&
rq_datetime=2019-10-10%2011%3A02%3A30&
sender_id=SANDBOX&
password=test&
order_id=520520796665&
product_code=SLYLPO&
amount=30468000&
signature=f46a2c34884c3d9194140f5ab595cae393749a0c5c25f23d2ebcfec3865196d1&
data={
    "customer_id":"520520796665",
    "customer_name":"GEDUNG BALAI ADAT",
    "total_bill":"1",
    "bill_period":"NOV17",
    "bill_amount":"301180",
    "admin_fee":"0"
 }
               


Contoh Respons Positif

Postman error
                


Contoh Respons Negatif

{
   "rq_uuid":"SANDBOXPAYMENTBILLER010190",
   "rs_datetime":"2025-10-16 11:16:52",
   "error_code":"9999",
   "error_message":"Suspect"
}
                    


HTTP Bill Inquiry - PLN Postpaid

POST /rest/biller/inquirytransaction HTTP/1.1
Host: sandbox-api.espay.id
Content-Type: application/x-www-form-urlencoded
Authorization: Basic ZXNwYXktdGVzdDp0ZXN0
Content-Length: 222

rq_uuid=SANDBOXINQUIRYBILLER0101010&rq_datetime=2019-10-10%2011%3A01%3A30&sender_id=SANDBOX&password=test&order_id=520520796665&product_code=SLYLPO&signature=9d6eede295d8865adc9eefa3fc48c059d22773338b01284eb42ab688671a7c9c
               


HTTP Bill Payment - PLN Postpaid

POST /rest/biller/paymentreport HTTP/1.1
Host: sandbox-api.espay.id
Content-Type: application/x-www-form-urlencoded
Authorization: Basic ZXNwYXktdGVzdDp0ZXN0
Content-Length: 660

rq_uuid=SANDBOXPAYMENTBILLER010190&rq_datetime=2019-10-10%2011%3A02%3A30&sender_id=SANDBOX&password=test&order_id=520520796665&product_code=SLYLPO&amount=30468000&signature=f46a2c34884c3d9194140f5ab595cae393749a0c5c25f23d2ebcfec3865196d1&data=%7B%0A%20%20%20%20%20%20%20%20%22customer_id%22%3A%20%22520520796665%22%2C%0A%20%20%20%20%20%20%20%20%22customer_name%22%3A%20%22GEDUNG%20BALAI%20ADAT%22%2C%0A%20%20%20%20%20%20%20%20%22total_bill%22%3A%20%221%22%2C%0A%20%20%20%20%20%20%20%20%22bill_period%22%3A%20%22NOV17%22%2C%0A%20%20%20%20%20%20%20%20%22bill_amount%22%3A%20%22301180%22%2C%0A%20%20%20%20%20%20%20%20%22admin_fee%22%3A%20%220%22%0A%20%20%20%20%7D
               


CURL Bill Inquiry - PLN Postpaid

curl --location 'https://sandbox-api.espay.id/rest/biller/inquirytransaction' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic ZXNwYXktdGVzdDp0ZXN0' \
--data-urlencode 'rq_uuid=SANDBOXINQUIRYBILLER0101010' \
--data-urlencode 'rq_datetime=2019-10-10 11:01:30' \
--data-urlencode 'sender_id=SANDBOX' \
--data-urlencode 'password=test' \
--data-urlencode 'order_id=520520796665' \
--data-urlencode 'product_code=SLYLPO' \
--data-urlencode 'signature=9d6eede295d8865adc9eefa3fc48c059d22773338b01284eb42ab688671a7c9c'
               


CURL Bill Payment - PLN Postpaid

curl --location 'https://sandbox-api.espay.id/rest/biller/paymentreport' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic ZXNwYXktdGVzdDp0ZXN0' \
--data-urlencode 'rq_uuid=SANDBOXPAYMENTBILLER010190' \
--data-urlencode 'rq_datetime=2019-10-10 11:02:30' \
--data-urlencode 'sender_id=SANDBOX' \
--data-urlencode 'password=test' \
--data-urlencode 'order_id=520520796665' \
--data-urlencode 'product_code=SLYLPO' \
--data-urlencode 'amount=30468000' \
--data-urlencode 'signature=f46a2c34884c3d9194140f5ab595cae393749a0c5c25f23d2ebcfec3865196d1' \
--data-urlencode 'data={
        "customer_id": "520520796665",
        "customer_name": "GEDUNG BALAI ADAT",
        "total_bill": "1",
        "bill_period": "NOV17",
        "bill_amount": "301180",
        "admin_fee": "0"
    }'
               
Scroll to Top