查询用户卡信息

简要描述

查询用户卡信息(只返回状态正常的卡)

请求URL

/open/merchant/api/findUserCard

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

请求方式

POST

Content-Type: application/json

参数

参数名验签必选类型长度说明
emailstring64用户邮箱
appIdString32商户appId
signstring512签名

请求参数示例

{
  "email": "[email protected]",
  "appId": "qmamnbodyqzbdr0w",
  "sign": "8979EEB59CF15246A04E033962CA4084973A9D0F2F5CC08F07B99E9D0338F4486ED7700CF78F6365C2E399ED593B3EF9059F2EC808B5107CED8CC17BA0475962"
}

返回参数说明

参数名类型说明
codestring编码 详情看code描述
msgstring返回信息
modelarray成功时返回
  └ cardIdstring卡id
  └ cardNumberstring卡号
  └ cardTypestring1:虚拟卡 2:实体卡
  └ cardStatusint1:正常 2:非正常
  └ statusint0:建卡中 1:可使用
  └ cardCreatestring卡创建时间
traceIdstring
successboolean成功状态
errorboolean失败状态

成功返回示例

{
  "code": "0",
  "msg": "成功",
  "model": [
    {
      "cardNumber": "5580684317191565",
      "cardPattern": 1,
      "cardId": "c_53cd2815de6142acb54d",
      "cardStatus": 2,
      "status": 1,
      "cardCreate": "2023-12-01 13:00:00",
      "monthlyFlag": false
    },
    {
      "cardNumber": "5567665606016354",
      "cardPattern": 1,
      "cardId": "c_322265aa46c04cd8bc38",
      "cardStatus": 1,
      "status": 1,
      "cardCreate": "2023-12-01 14:00:00",
      "monthlyFlag": false,
    }
  ],
  "traceId": "656804e04e64df0d3c229a42662b1f2e",
  "error": false,
  "success": true
}

失败返回示例

{
  "code": "2606",
  "msg": "user does not exist",
  "model": null,
  "traceId": "644622ad97df9eed485ae837c9a48d5a",
  "error": true,
  "success": false
}

备注

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