# 取得收銀台設定 

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

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

讀取 `supported_assets`，取得收銀台目前可用的網路和幣種。無需參數或商戶簽章。

## 相關文件 

* [建立 GMPay 訂單](https://epusdt.com/zh-tw/api/endpoints/create-order)
* [商戶回呼](https://epusdt.com/zh-tw/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"
}
```
