Biller Products
PLN Postpaid
Espay provides an API to process PLN postpaid payment online. For integration, you send a request to the Bill Inquiry service with the customer code. Then, to complete the payment, you send a request to the Bill Payment service using the data returned from the Bill Inquiry. Learn more about Biller Product | Bill Inquiry and Biller Product | Bill Payment.
Download the Postman collection – PLN Postpaid here.
Product Codes
PLN Pascabayar
PLN Pascabayar
| Product Code | Product Name | Transaction Type |
|---|---|---|
| SLYLPO | PLN Postpaid | PAYMENT |
Bill Inquiry - PLN Postpaid
Sample Request
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
Sample Positive Response
Postman error
Sample Negative Response
{
"rq_uuid":"SANDBOXINQUIRYBILLER0101010",
"rs_datetime":"2025-02-26 14:03:31",
"error_code":"9999",
"error_message":"Suspect"
}
Bill Payment - PLN Postpaid
Sample Request
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"
}
Sample Positive Response
Postman error
Sample Negative Response
{
"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"
}'