Get Merchant Information
To retrieve the details of an existing merchant, you can use the Get Merchant API. This allows you to fetch merchant data based on a specific merchant ID.
Step 1: Send a Request to Fetch Merchant Details
To retrieve the merchant information, send a POST request to the API endpoint with the merchant's ID in the request body.
Endpoint URL
https://api.zipay.co.id/merchant/getMerchant
Request
To get the details of a registered merchant, use the following API endpoint. Be sure to include your Bearer token in the request header for authorization.
- URL:
https://api.zipay.co.id/merchant/getMerchant
- Method:
POST
- Headers:
Content-Type
:application/json
Authorization
:Bearer <YOUR_BEARER_TOKEN>
Request Body
Example Request
{
"id": 1
}
Response
Example Response
{
"status": 200,
"success": true,
"data": {
"merchant": {
"merchantId": "1",
"merchantKey": "72a22c8a-0338-48de-9e05-dcbf8993591b",
"fullName": "VIRA YULIANA",
"businessName": "ZHX GUITAR STORE",
"mid": "ZPM193031118802",
"mpan": "9360082500814951041",
"nmid": "ID2024351834617",
"status": "ACTIVE"
},
"message": "Success Get Data Merchant"
}
}
Field | Description |
---|---|
status | The HTTP status code indicating the result of the request. |
success | A boolean value indicating whether the request was successful (true ) or not (false ). |
data.merchant.merchantId | The unique identifier of the merchant. |
data.merchant.merchantKey | The unique key associated with the merchant. |
data.merchant.fullName | The full name of the merchant. |
data.merchant.businessName | The name of the business associated with the merchant. |
data.merchant.mid | The Merchant ID assigned by the current QRIS provider. |
data.merchant.mpan | The Merchant PAN (Primary Account Number). This is a unique identifier for the merchant's account. |
data.merchant.nmid | This field can be null when the merchant's account status is not active (e.g., PENDING , NON ACTIVE , FREEZE ). |
data.merchant.status | The current activation status of the merchant account (e.g., ACTIVE ,PENDING ,NON ACTIVE ,FREEZE ). |
message | A message indicating the result of fetching the merchant data. |