Inquiry Merchant Info

Inquiry Merchant Info is not mandatory process; it is only needed if merchant system would like to inquire the bankProduct and productCode required to customize the display the of the payment method. Putting this bankCode and productCode in the api redirector will automatically redirect merchant page to payment page.

Merchant will send a request to Espay system, and Espay will respond with json format as shown below


Flow

Merchant -> Espay

Method

HTTP Post

API URL

Development : Development : https://sandbox-api.espay.id/rest/merchant/merchantinfo
Production : Production : https://api.espay.id/rest/merchant/merchantinfo


Parameter Request:
Parameter Name Max Length Mandatory Description
key 32 Yes Merchant Key provided by Espay

Parameter Response:
Parameter Name Max Length Mandatory Description
error_code 4 Yes 0000 = Success.
Other = Failed.
error_message 32 Yes If error_code equal to 0000 = Success
If error_code is not equal to 0000, the description will be placed here
data No
bankCode bankCode subscribed by merchant
Example : 014, 008, 002
productCode Product Code subscribed by merchant
Example : BCAKLIKPAY, EPAYBRI, MANDIRIB
productName Product Name subscribed by merchant
Example : BCA KlikPay, Epay Bri, Mandiri Internet Banking
  

Sample Request

POST /rest/merchant/merchantinfo HTTP/1.1 Host: sandbox-api.espay.id Connection: keep-alive Content-Length: 250 Content-Type: application/x-www-form-urlencoded Accept: */* key=65ebeb3286bd3f0f860fcbe5adca9be4

Sample Response

{ "error_code": "0000", "error_message": "Success", "data": [{ "bankCode": "014", "productCode": "BCAKLIKPAY", "productName": "BCA KlikPay" }, { "bankCode": "008", "productCode": "MANDIRIIB", "productName": "MANDIRI IB" }] }