支付方式查询

介绍

此接口用于根据法币和数字货币查询支持的支付方式。

接口说明

请求方式:POST

请求路径:/open/api/v3/merchant/query/cryptoFiatMethod

请求格式:Content-Type: application/json

请求参数

Header参数

参数名必选类型说明
appidYstring合作伙伴唯一 ID,商户加入 Alchemy Pay,将会获得包含 appId 和 appSecret 的凭证
timestampYstring当前 UTC 13位时间戳, 5分钟内有效
signYstring将appId,timeStamp,和请求的参数按字母排序进行签名,签名方式可参考这里这里

Body参数

参数名必选类型说明
fiatYstring3字母法币code,例如:USD
cryptoYstring数字货币,例如USDT
networkYstring数字货币网络,例如:ETH/BSC/BTC
sideYstring订单方式,目前只支持 BUY(大写)

示例

请求Header参数:

请求Body参数:

{
    "fiat": "USD",
    "crypto": "USDT",
    "network":"TRX",
   "side": "BUY"
}

返回参数:

提示:如果入参"fiat": "EUR",那么返回为"country": "DE"。

{
    "success": true,
    "returnCode": "0000",
    "returnMsg": "SUCCESS",
    "extend": "",
    "data": [
        {
            "country": "US",
            "payWayCode": "53001",
            "minPurchaseAmount": "100.00",
            "maxPurchaseAmount": "2000.00"
        },
        {
            "country": "US",
            "payWayCode": "53002",
            "minPurchaseAmount": "100.00",
            "maxPurchaseAmount": "2000.00"
        },
        {
            "country": "US",
            "payWayCode": "701",
            "minPurchaseAmount": "3.00",
            "maxPurchaseAmount": "2000.00"
        },
        {
            "country": "US",
            "payWayCode": "501",
            "minPurchaseAmount": "3.00",
            "maxPurchaseAmount": "2000.00"
        },
        {
            "country": "US",
            "payWayCode": "10001",
            "minPurchaseAmount": "3.00",
            "maxPurchaseAmount": "2000.00"
        }
    ],
    "traceId": "6538b94dd2b15a185f6477e36beeb234"
}

支付方式说明 点击这里