Biller Products

Mobile Prepaid

Espay provides an API for purchasing prepaid mobile online. For integration, you send a request to the Bill Inquiry service with the customer number and the selected product. 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 – Mobile Prepaid here.

Product Codes



Bill Inquiry - Telkomsel 50.000

Sample Request

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
               


Sample Positive Response

{
   "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":""
}
                


Sample Negative Response

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



Bill Payment - Telkomsel 50.000

Sample Request

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
               


Sample Positive Response

{
   "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"
   }
}
                


Sample Negative Response

{
   "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