# 決済設定を取得 

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

[リクエスト例 ↓](https://epusdt.com/ja/api/endpoints/config#request-example)

`supported_assets` から利用可能なネットワークとトークンを取得します。パラメータや加盟店署名は不要です。

## 関連資料 

* [GMPay 注文を作成](https://epusdt.com/ja/api/endpoints/create-order)
* [加盟店への通知](https://epusdt.com/ja/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  
ログを追跡するためのリクエスト ID。

application/jsonレスポンスのフィールド
* `status_code` integer  
処理結果のコード。
* `message` string  
結果を説明するメッセージ。
* `data` null  
レスポンス本文のデータ。失敗時は null。
* `request_id` string  
ログを追跡するためのリクエスト ID。

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

**リクエスト例**

ゲートウェイ URL 

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

自分のゲートウェイ URL を入力すると公開 API を試せます。

**レスポンス例**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"
}
```
