2.1.4充值

接口地址:/openapi/card/recharge

请求方式:POST

请求数据类型:application/json

响应数据类型:application/json

接口描述:

处于预开卡状态的卡片的第一笔充值,作为首充金额在收取开卡费时统一收取;因此data返回值为空。

请求示例:

{
  "card_id": "00003454323400000028888",
  "mc_trade_no": "48d2741747a4493223feb22",
  "pay_coin": "usdt",
  "recharge_amount": "188.88",
  "remark": "这是一个备注"
}

请求参数:

参数名称 数据类型 是否必须 参数说明
card_id string true 卡ID
mc_trade_no string true 商户交易流水,商户自定义;最多128个字符
pay_coin string true 充值币种;最多20个字符
recharge_amount string true 充值金额:充值到卡片法币金额, 必须大于0
remark string false 交易备注,内容商户自定义;最多255个字符

响应参数:

参数名称 类型 参数说明
code string 错误码
data object 响应数据
  card_coin string 到账法币币种
  coin_exchange_usd_rate string 转换汇率;充值币种兑USD的汇率,充值币种/USD
  currency_amount string 到账法币数量
  currency_exchange_usd_rate string 法币汇率;卡片币种兑USD的汇率,卡片币种/USD
  order_no string 交易流水号,由HyperCard生成,不超过64位字符
  pay_coin string 充值币种
  real_recharge_amount string 实际充值金额;扣除手续费后,实际充值金额,币种为充值币种
  recharge_amount string 充值金额, 必须大于0
  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.12",
    "order_no": "202211231505292302221643837177",
    "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 ""