2.1.11估算需要充值多少数字货币

接口地址:/openapi/card/estimation/crypto

请求方式:POST

请求数据类型:application/json

响应数据类型:application/json

接口描述:

请求示例:

{
  "card_type_id": "40000002",
  "pay_coin": "usdt",
  "recharge_amount": "188"
}

请求参数:

参数名称 数据类型 是否必须 参数说明
card_type_id string true 卡种ID
pay_coin string true 充值币种:需要换算的数字货币类型;最多20个字符
recharge_amount string true 充值金额:需要充值到账的法币金额, 必须大于0

响应参数:

参数名称 类型 参数说明
code string 错误码
data Object 响应数据
  card_coin string 到账法币币种
  coin_exchange_usd_rate string 转换汇率;充值币种兑USD的汇率,充值币种/USD
  currency_amount string 到账法币数量
  currency_exchange_usd_rate string 法币汇率;卡片币种兑USD的汇率,卡片币种/USD
  pay_coin string 充值币种
  real_recharge_amount string 实际充值金额;扣除手续费后,实际充值金额,币种为充值币种
  recharge_amount string 充值金额
  recharge_fee_amount string 充值手续费;本次充值手续费金额,币种为充值币种
  recharge_fee_usdt_amount string 币种费;充值币种兑换为USDT的手续费,币种为充值币种
msg string 错误信息

响应示例:

{
  "code": "00000",
  "data": {
    "card_coin": "usd",
    "coin_exchange_usd_rate": "1",
    "currency_amount": "188",
    "currency_exchange_usd_rate": "1",
    "pay_coin": "usdt",
    "real_recharge_amount": "188",
    "recharge_amount": "188.88",
    "recharge_fee_amount": "0.88",
    "recharge_fee_usdt_amount": "0.88"
  },
  "msg": "ok"
}
Copyright © HyperCard 2023 all right reserved,powered by GitbookUpdate Time: 2025-01-14 15:38:46

results matching ""

    No results matching ""