查询卡余额

简要描述

查询卡余额

请求URL

/open/merchant/api/findUserCardBalance

测试环境域名:https://sbx-card-api.alchemypay.org
正式环境域名:https://card-api.alchemypay.org

请求方式

POST

Content-Type: application/json

参数

参数名验签必选类型长度说明
cardIdstring64卡id
appIdString32商户appid
signstring512签名

请求参数示例

{
  "cardId": "c_590c6c4cc0f6471b979b",
  "appId": "qmamnbodyqzbdr0w",
  "sign": "8979EEB59CF15246A04E033962CA4084973A9D0F2F5CC08F07B99E9D0338F4486ED7700CF78F6365C2E399ED593B3EF9059F2EC808B5107CED8CC17BA0475962"
}

返回参数说明

参数名类型说明
codestring编码 详情看code描述
msgstring返回信息
modelobject成功时返回
  └ currencystring币种
  └ balancedouble卡余额
  └ topUpBalancedouble可充值金额
traceIdstring
successboolean成功状态
errorboolean失败状态

成功返回示例

{
    "code":"0",
    "msg":"成功",
    "model":{
        "currency":"EUR",
        "balance":100.01,
        "topUpBalance":9989.99
    },
    "traceId":"64461f5414909b4b1e05a58fd7e818d1",
    "error":false,
    "success":true
}

失败返回示例

{
  "code": "1002",
  "msg": "User card information does not exist c_590c6c4cc0f6471b979b ",
  "model": null,
  "traceId": "6566f01975d31fa30b55fb9a2a5c5516",
  "error": true,
  "success": false
}

备注

更多返回错误代码请看code描述