List
Request address
Sandbox : https://sandbox.j-pay.net/pay/merchant/list
Request headers
| Header Name | Required(Y or N) | Description |
|---|---|---|
| Agent-Merchant-Id | Y | Agent merchant ID |
Request parameters
| Parameter Name | Type | Required(Y or N) | Sign(Y or N) | Parameter Description |
|---|---|---|---|---|
| page | String | N | Y | Page number, default 1 |
| size | String | N | Y | Page size, default 20 |
| sign | String | Y | N | See MD5 signature example |
Return parameters
| Parameter Name | Type | Parameter Description |
|---|---|---|
| list | Array | Merchant list |
| total | Number | Total count |
| page | Number | Current page |
| size | Number | Page size |
Each item in list is a merchant object returned by Merchant Query.
Example Request
- Javascript
- Php
- Python
import { md5 } from "js-md5";
import axios from "axios";
const KEY = "YOUR_AGENT_API_KEY";
const AGENT_MERCHANT_ID = "10000";
let query = {
page: 1,
size: 20,
};
let signData = [];
Object.keys(query)
.sort()
.forEach((key) => signData.push(`${key}=${query[key]}`));
signData.push(`key=${KEY}`);
Object.assign(query, {
sign: md5(signData.join("&")).toUpperCase(),
});
axios
.request({
url: "https://sandbox.j-pay.net/pay/merchant/list",
method: "post",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
"Agent-Merchant-Id": AGENT_MERCHANT_ID,
},
data: query,
})
.then(({ data }) => {
console.log("success", data);
})
.catch((error) => {
console.log("error", error);
});
Comming soon...
Response example
- Success
- Error
{
"list": [
{
"memberid": "10005",
"email": "[email protected]",
"country": "US",
"company": {
"name": "Company Name",
"tax_id": "",
"phone": "",
"cert_valid_date": "",
"cert_past_date": "",
"state": "",
"city": "",
"postal_code": "",
"line1": "",
"line2": ""
},
"business_profile": { "mcc": "", "url": "" },
"documents": {
"company_registration": [],
"company_address": [],
"company_moa": [],
"bank_proof": []
},
"bank": [],
"persons": []
}
],
"total": 1,
"page": 1,
"size": 20
}
{ msg: 'message', status: 'error' }