Inquiry Merchant Info

Inquiry Merchant Info is a service for checking the product code and bank name (payment method) registered on your platform. This service is mandatory for those who will integrate using the Espay Checkout Page (Redirect URL) and Direct API (Payment Host to Host, QRIS, Virtual Account) methods.

Flow

You send the required parameters to make a request, and Espay Payment Gateway will respond in JSON format.

Headers

Key Value
Method
HTTP Post
Connection
keep-alive
Content-Length
250
Content-Type
application/x-www-form-urlencoded
Accept
*/*

API URL

Environment URL
Sandbox
https://sandbox-api.espay.id/rest/merchant/merchantinfo
Production
https://api.espay.id/rest/merchant/merchantinfo

Request Parameters

Parameter Type Mandatory Description
key
String (32)
Y
API Key from Espay team.
Y: Yes, O: Optional, C: Conditional

Response Parameters

Parameter Type Mandatory Description
error_code
String (4)
Y
Response Code.
error_message
String (32)
Y
Response description.
data
Object
  bankCode
String (32)
Y
Bank Code. Click here
  productCode
String (32)
Y
Product Code. Click here
  productName
String (32)
Y
Product Name. Click here
Y: Yes, O: Optional, C: Conditional

Try It!

You can enter data using the input provided. After that, you submit and see the results!

Request

Value

Response




































Sample Response

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 Positive Response

{
  "error_code": "0000",
  "error_message": "",
  "data": [
      {
          "bankCode": "014",
          "productCode": "BCAATM",
          "productName": "BCA VA Online"
      },
      {
          "bankCode": "008",
          "productCode": "MANDIRIATM",
          "productName": "MANDIRI VA"
      },
      {
          "bankCode": "008",
          "productCode": "SALDOMUQR",
          "productName": "SALDOMU QR"
      },
      {
          "bankCode": "503",
          "productCode": "OVO",
          "productName": "OVO"
      }
  ]
} 
              


Sample Negative Response

{
  "errorCode": "30",
  "errorMsg": "Error"
}
              




CURL


curl --location 'https://sandbox-api.espay.id/rest/merchant/merchantinfo' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'key=fd322d0f036c8443d6904973c1a329bd'


           
















































Scroll to Top