查詢接入點

查詢帳號可用的接入點列表。

介面資訊

GET /client/dynamics/account/endpoint/info

請求頭

參數名稱類型說明
x-merchant-tokenString商戶令牌
x-merchant-codeString商戶代碼

請求參數

參數名稱必選類型說明
accountId是Long用戶帳號ID

代碼示例

fetch('/client/dynamics/account/endpoint/info?accountId=1', {
    method: 'GET',
    headers: {
        'x-merchant-token': 'your_token',
        'x-merchant-code': 'your_code'
    }
})
.then(response => response.json())
.then(data => console.log(data));

回應示例

{
    "total": 1,
    "rows": [
        {
          "accountId": "384933",
          "endpointHost": "gate-us.host.io",
          "endpointPort": 13233,
          "supportedProtocol": "http"
        }
    ],
    "code": 200,
    "msg": "查詢成功"
}

回應參數說明

參數名稱類型說明
totalLong總記錄數
codeInteger業務狀態碼
msgString提示資訊
rowsArray接入點列表
rows[].accountIdString子帳號 ID
rows[].endpointHostString接入點主機
rows[].endpointPortInteger接入點端口
rows[].supportedProtocolString支援的協議(如 http、socks5 等)