查詢帳號可用的接入點列表。
GET /client/dynamics/account/endpoint/info
| 參數名稱 | 類型 | 說明 |
| x-merchant-token | String | 商戶令牌 |
| x-merchant-code | String | 商戶代碼 |
| 參數名稱 | 必選 | 類型 | 說明 |
| 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": "查詢成功"
}
| 參數名稱 | 類型 | 說明 |
| total | Long | 總記錄數 |
| code | Integer | 業務狀態碼 |
| msg | String | 提示資訊 |
| rows | Array | 接入點列表 |
| rows[].accountId | String | 子帳號 ID |
| rows[].endpointHost | String | 接入點主機 |
| rows[].endpointPort | Integer | 接入點端口 |
| rows[].supportedProtocol | String | 支援的協議(如 http、socks5 等) |