> For the complete documentation index, see [llms.txt](https://docs.coda.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coda.co/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codashop-yu-distrubution/ji-cheng-zhi-nan/huo-qu-fu-wu-qi-lie-biao-qing-qiu-ke-xuan.md).

# 获取服务器列表请求（可选）

## 获取服务器列表响应 <a href="#fetch-server-list-response" id="fetch-server-list-response"></a>

来自合作伙伴的获取服务器列表请求的响应。它应包含 serverName、serverId 和 isForTest。以下是一个示例：

格式：JSON\
一级服务器列表格式：

```javascript
{
  "serverList": [
    {
      "serverName": "Test Server 1",
      "serverId": "0000001",
      "isForTest": 1
    },
    {
      "serverName": "Server 1",
      "serverId": "1000001",
      "isForTest": 0
    },
    {
      "serverName": "Server 2",
      "serverId": "1000002",
      "isForTest": 0
    }
  ]
}
```

两级服务器列表格式：

```javascript
{
  "serverList": {
    "Area 1": [
      {
        "serverName": "Server 1",
        "serverId": "1000001",
        "isForTest": 0
      },
      {
        "serverName": "Server 2",
        "serverId": "1000002",
        "isForTest": 0
      }
    ],
    "Area 2": [
      {
        "serverName": "Server 3",
        "serverId": "1000003",
        "isForTest": 0
      },
      {
        "serverName": "Server 4",
        "serverId": "1000004",
        "isForTest": 0
      }
    ]
  }
}
```

<table><thead><tr><th width="135.9583740234375">参数名称</th><th width="83.8958740234375">类型</th><th>描述</th></tr></thead><tbody><tr><td>serverName</td><td>字符串</td><td>服务器名称。</td></tr><tr><td>serverId</td><td>字符串</td><td>服务器 ID。</td></tr><tr><td>isForTest</td><td>整数</td><td>标志位，用于指示当前服务器是否为测试/沙盒服务器。<br>如果为 1，则为测试服务器；<br>如果为 0，则为正式生产服务器。</td></tr></tbody></table>

如果遇到错误，请参考我们的[错误代码列表](/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codashop-yu-distrubution/codashop-fu-lu/codashop-cuo-wu-dai-ma.md)以获取更多信息。

<figure><img src="/files/Q85rhpz1ZoonI4iUnqnm" alt=""><figcaption><p>选择服务器</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.coda.co/https-coda-payments.gitbook.io-zhong-wen-coda-private-technical-documentation/codashop-yu-distrubution/ji-cheng-zhi-nan/huo-qu-fu-wu-qi-lie-biao-qing-qiu-ke-xuan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
