简要描述:

  • 权益卡购买

请求URL:

  • rightscard/order

请求参数:

参数名 是否必须 类型 说明
DistributionNo string 分销编号
Name string 下单人姓名
Mobile string 下单人手机号码
RequestOrderId string 业务单号
ApiUserId string 下单用户标识
saleId int 推广销售员Id,无为0
Amount int 总价
Qty int 数量

入参示例:

  1. {
  2. apiKey : "test1",
  3. apisecret : "78FBB3D68B40A347644619ACF902CED3",
  4. currentTimeStamp : "20201029111404",
  5. sign : "56E5E59D5EA18865E18039447E083C8B",
  6. uri : "http://localhost:39450/rightscard/pushorder",
  7. data :
  8. {
  9. DistributionNo : "RCD2012-001",
  10. Name : "小李",
  11. Mobile : "13570647813",
  12. ApiUserId : "测试",
  13. RequestOrderId : "adf",
  14. saleId : 1060,
  15. Qty2
  16. Amount : 798,
  17. }
  18. }

返回示例:

正确时返回:

  1. {
  2. Code : 0,
  3. Success : true,
  4. Message : null,
  5. Data :
  6. {
  7. OrderNo : "RCO2012-0013",
  8. SaleId : 1068,
  9. Cards :
  10. [
  11. {
  12. CardNo : "BZ8PC",
  13. IsDisabled : false,
  14. IsActive : false,
  15. ActiveTime : null
  16. },
  17. {
  18. CardNo : "3BSF00",
  19. IsDisabled : false,
  20. IsActive : false,
  21. ActiveTime : null
  22. },
  23. ]
  24. }
  25. }

错误时返回:

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

返回参数说明:

参数名 类型 说明
Code int 代码
Success bool 请求是否成功
Message string 错误信息,成功时返回空
Data string 请求的数据结果

Data:

参数名 类型 说明
OrderNo string 订单号
SaleId int 下单用户SaleId
Cards List<Card> 返回用户生成卡号列表

Cards:

参数名 是否必须 类型 说明
CardNo string 权益卡卡号