Biller Products

Pulsa Prabayar

Espay menyediakan API untuk pembelian Pulsa Prabayar secara online. Integrasi dilakukan dengan cara mengirim permintaan ke layanan Bill Inquiry dengan menyertakan nomor pelanggan dan produk yang dipilih. 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 – Pulsa Prabayar di sini.

Kode Produk



Bill Inquiry - Telkomsel 50.000

Contoh Permintaan

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


Contoh Respons Positif

{
   "rq_uuid":"SANDBOXINQUIRYBILLER010102",
   "rs_datetime":"2025-02-20 09:56:48",
   "error_code":"0000",
   "error_desc":"Success",
   "order_id":"081218816222",
   "amount":"5300000",
   "bill_amount":"4950000",
   "admin_fee":"350000",
   "data":{
      "denomination":"50",
      "price":49500
   },
   "barcode_fee":""
}
                


Contoh Respons Negatif

{
   "rq_uuid":"SANDBOXINQUIRYBILLER010102",
   "rs_datetime":"2025-02-14 13:58:45",
   "error_code":405,
   "error_desc":"product denied"
}
                



Bill Payment - Telkomsel 50.000

SContoh Permintaan

POST /rest/biller/paymentreport HTTP/1.1
Host: sandbox-api.espay.id
Content-Type: application/x-www-form-urlencoded
Authorization: ••••••
Content-Length: 240
  
rq_uuid=SANDBOXPAYMENTBILLERPULSA010102&
rq_datetime=2019-10-10%2011%3A02%3A30&
sender_id=SANDBOX&
password=test&
order_id=081218816222&
product_code=SVHTS50&
amount=50000&
signature=f46a2c34884c3d9194140f5ab595cae393749a0c5c25f23d2ebcfec3865196d1
               


Contoh Respons Positif

{
   "rq_uuid":"SANDBOXPAYMENTBILLERPULSA010102",
   "rs_datetime":"2025-02-20 10:25:31",
   "error_code":"0000",
   "error_desc":"Inproses",
   "order_id":"081218816222",
   "ref_id":"TX20250220102531589",
   "data":{
      "price":"50000",
      "refnum":"TX20250220102531589",
      "message":"Inproses"
   },
   "recon_ref":"TX20250220102531589",
   "barcode_fee":"",
   "receipt":{
      "field":"SN",
      "value":"TX20250220102531589"
   }
}
                


Contoh Respons Negatif

{
   "rq_uuid":"SANDBOXPAYMENTBILLERPULSA010102",
   "rs_datetime":"2025-02-14 14:00:27",
   "error_code":405,
   "error_desc":"product denied"
}
                    


HTTP Bill Inquiry - Telkomsel 50.000

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=SANDBOXINQUIRYBILLER010102&rq_datetime=2019-10-10%2011%3A01%3A30&sender_id=SANDBOX&password=test&order_id=081218816222&product_code=SVHTS50&signature=9d6eede295d8865adc9eefa3fc48c059d22773338b01284eb42ab688671a7c9c
               


HTTP Bill Payment - Telkomsel 50.000

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

rq_uuid=SANDBOXPAYMENTBILLERPULSA010102&rq_datetime=2019-10-10%2011%3A02%3A30&sender_id=SANDBOX&password=test&order_id=081218816222&product_code=SVHTS50&amount=50000&signature=f46a2c34884c3d9194140f5ab595cae393749a0c5c25f23d2ebcfec3865196d1
               


CURL Bill Inquiry - Telkomsel 50.000

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=SANDBOXINQUIRYBILLER010102' \
--data-urlencode 'rq_datetime=2019-10-10 11:01:30' \
--data-urlencode 'sender_id=SANDBOX' \
--data-urlencode 'password=test' \
--data-urlencode 'order_id=081218816222' \
--data-urlencode 'product_code=SVHTS50' \
--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=SANDBOXPAYMENTBILLERPULSA010102' \
--data-urlencode 'rq_datetime=2019-10-10 11:02:30' \
--data-urlencode 'sender_id=SANDBOX' \
--data-urlencode 'password=test' \
--data-urlencode 'order_id=081218816222' \
--data-urlencode 'product_code=SVHTS50' \
--data-urlencode 'amount=50000' \
--data-urlencode 'signature=f46a2c34884c3d9194140f5ab595cae393749a0c5c25f23d2ebcfec3865196d1'
               
Scroll to Top