# 获取收银台配置 

**GET**`https://pay.example.com/payments/gmpay/v1/config`

[请求示例 ↓](https://epusdt.com/zh/api/endpoints/config#request-example)

读取 `supported_assets`，获取当前收银台可选的网络和币种。无需提交参数或商户签名。

## 相关文档 

* [创建 GMPay 订单](https://epusdt.com/zh/api/endpoints/create-order)
* [商户回调](https://epusdt.com/zh/api/payment#callbacks)

## 响应

application/json响应字段
* `status_code` integer  
业务结果码，商户可据此判断具体原因。
* `message` string  
便于阅读的结果说明。
* `data` object  
接口返回的数据，失败时为 null。

  * `supported_assets` array
    * `network` string
    * `display_name` string
    * `tokens` array
* `request_id` string  
请求标识，可用于排查日志。

application/json响应字段
* `status_code` integer  
业务结果码，商户可据此判断具体原因。
* `message` string  
便于阅读的结果说明。
* `data` null  
接口返回的数据，失败时为 null。
* `request_id` string  
请求标识，可用于排查日志。

[error-codes.json ↓](https://epusdt.com/agent-setup/error-codes.json)

**请求示例**

网关地址 

```
curl -i -X GET \
  'https://pay.example.com/payments/gmpay/v1/config'
```

输入自己的网关地址即可试调公开查询接口。

**响应示例**200 · 成功400 · 系统错误，或普通参数/验证错误

application/json · 响应字段节选

```
{
  "status_code": 200,
  "message": "success",
  "data": {
    "supported_assets": [
      {
        "network": "tron",
        "display_name": "TRON",
        "tokens": [
          "TRX",
          "USDT"
        ]
      }
    ]
  },
  "request_id": "b1344d70-ff19-4543-b601-37abfb3b3686"
}
```
