简要描述:

  • 查询用户所有权益卡

请求URL:

  • rightscard/usercards

请求参数:

参数名 是否必须 类型 说明
ApiUserId string 下单用户标识
LineId int B2B线路Id,有值只查这条线路的剩余次数

入参示例:

  1. {
  2. apiKey : "test1",
  3. apisecret : "78FBB3D68B40A347644619ACF902CED3",
  4. currentTimeStamp : "20201211173305",
  5. sign : "0205C1EFC14D266AD3E226B08D138A1D",
  6. uri : "http://localhost:39450/rightscard/usercards",
  7. data :
  8. {
  9. ApiUserId : "wx923kwrw9009",
  10. LineId : 1088
  11. }
  12. }

返回示例:

正确时返回:

  1. {
  2. Code : 0,
  3. Success : true,
  4. Message : null,
  5. Data :
  6. [
  7. {
  8. CardNo : "3BSEZY",
  9. CardName : "测试卡",
  10. IsActive : true,
  11. IsDisabled : false,
  12. ActiveName : null,
  13. ActiveMobile : null,
  14. ActiveTime : "2020-12-11T11:29:32.687",
  15. IDNumber : null,
  16. SurplusCount : 3,
  17. UsedCount : 0
  18. FirstRebate : 10,
  19. SecondRebate : 20,
  20. ExchangeQty : 6
  21. },
  22. {
  23. CardNo : "3BSEZZ",
  24. CardName : "测试卡",
  25. IsActive : true,
  26. IsDisabled : false,
  27. ActiveName : null,
  28. ActiveMobile : null,
  29. ActiveTime : "2020-12-11T11:32:24.433",
  30. IDNumber : null,
  31. SurplusCount : 3,
  32. UsedCount : 0
  33. FirstRebate : 10,
  34. SecondRebate : 20,
  35. ExchangeQty : 6
  36. }
  37. ]
  38. }

错误时返回:

  1. {
  2. "Code" : 100002,
  3. "Success" : false,
  4. "Message" : "应用认证错误",
  5. "Data" : ""
  6. }

返回参数说明:

参数名 类型 说明
Code int 代码
Success bool 请求是否成功
Message string 错误信息,成功时返回空
Data string 请求的数据结果,错误或找不到对应的卡是未NULL

Data:

参数名 类型 说明
CardNo string 卡号
CardName string 卡名称
IsActive bool 是否激活
IsDisabled bool 是否禁用
ActiveName string 激活人姓名
ActiveMobile string 激活人电话
ActiveTime datetime 激活时间
IDNumber string 激活人身份证
SurplusCount int 剩余次数
UsedCount int 已兑换次数
FirstRebate decimal 一级返佣
SecondRebate decimal 二级返佣
ExchangeQty int 兑换次数