简要描述:

  • 产品详情

请求URL:

  • getProductPriceDetail

请求参数:

参数名 是否必须 类型 说明
lang string 语言
distributionId int 分销id,对应产品列表的分销Id(DistributionId)
startDate Date 搜寻范围开始日期,不选传 “”
endDate Date 搜寻范围结束日期,不选传 “”

入参示例:

  1. {
  2. apiKey : "test1",
  3. apisecret : "78FBB3D68B40A347644619ACF902CED3",
  4. currentTimeStamp : "20180301172325",
  5. sign : "B23DB73D46082DF31812E90B11D771C8",
  6. uri : "http://localhost:39450/loneproduct/getProductPriceDetail",
  7. data :
  8. {
  9. "lang": "zh-cn",
  10. "distributionId": "94"
  11. "startDate" : "2020-03-01",
  12. "endDate" : "2020-03-02"
  13. }
  14. }

返回示例:

正确时返回:

  1. {
  2. Code : 0,
  3. Success : true,
  4. Message : null,
  5. Data :
  6. {
  7. Product :
  8. {
  9. Name : "梦幻水城套票",
  10. Description : "一日好玩,爽",
  11. TopCategory : "2",
  12. StockProductId : "120",
  13. StockNo : "LPSN2002-0037",
  14. ProductNo : "LOP20-0056",
  15. StockCate : "2",
  16. StockQty : "59",
  17. Qty : "62",
  18. SettlePriceLevel : "A",
  19. SaleStartDate : "2020-03-01",
  20. SaleEndDate : "2020-03-31",
  21. UseRemark : "",
  22. QuoteExchangeRate : "1",
  23. QuoteExchangeCode : "CNY",
  24. BuyMode : "2",
  25. UseDateLimit : "2",
  26. EffectBegin : "2020-08-18 15:30:30",
  27. EffectEnd : "2020-08-31 14:09:30",
  28. LimitTimeValue : "3",
  29. LimitQtyValue : "5",
  30. "BuyDateLimit":0
  31. },
  32. ImageList :
  33. [
  34. {
  35. ImgPath : "http://yjtest.oss.aliyuncs.com/Travels/LoneProduct/el7_e1430ec6-5ea9-46ed-be62-7a4d204ce69a.png",
  36. IsCover : true
  37. }
  38. ],
  39. DeliveryWayList :
  40. [
  41. {
  42. DeliveryWay : "1",
  43. DeliveryWayDesc : "线下交收",
  44. DeliveryWayAddress : "邓111"
  45. },
  46. {
  47. DeliveryWay : "5",
  48. DeliveryWayDesc : "门店自提",
  49. DeliveryWayAddress : "秘书部ABC(拱北中建商业大厦19楼)"
  50. },
  51. {
  52. DeliveryWay : "5",
  53. DeliveryWayDesc : "门店自提",
  54. DeliveryWayAddress : "业务11(龙岗区)"
  55. }
  56. ],
  57. PriceDetailList :
  58. [
  59. {
  60. StockDetailId:289,
  61. ServiceName : "珠海测试酒店",
  62. ServiceCategoryDesc : "酒店",
  63. SupplierName : "珠海测试酒店",
  64. IsDefault : true,
  65. ProductDetailItemName : "双床房(海景)",
  66. ItemQty : 1,
  67. AllowAdd : false,
  68. AllowReduce : false,
  69. Daily : "2020-03-01",
  70. SettlePrice : 400,
  71. Profit : 300,
  72. SalePrice : 200,
  73. FacePrice : 300,
  74. SaleStatus : 1,
  75. Remark : null,
  76. LimitTimeValue : 3,
  77. LimitQtyValue : null,
  78. CanSaleQty : 99
  79. },
  80. {
  81. StockDetailId:290,
  82. ServiceName : "珠海测试酒店",
  83. ServiceCategoryDesc : "酒店",
  84. SupplierName : "珠海测试酒店",
  85. IsDefault : false,
  86. ProductDetailItemName : "大床房(皇冠)",
  87. ItemQty : 1,
  88. AllowAdd : false,
  89. AllowReduce : false,
  90. Daily : "2020-03-01",
  91. SettlePrice : 410,
  92. Profit : 300,
  93. SalePrice : 210,
  94. FacePrice : 310,
  95. SaleStatus : 1,
  96. Remark : null,
  97. LimitTimeValue : 3,
  98. LimitQtyValue : null,
  99. CanSaleQty : 99
  100. },
  101. {
  102. StockDetailId:291,
  103. ServiceName : "餐厅测试",
  104. ServiceCategoryDesc : "餐厅",
  105. SupplierName : "邓泽军测试餐厅",
  106. IsDefault : true,
  107. ProductDetailItemName : "午餐套饭",
  108. ItemQty : 1,
  109. AllowAdd : false,
  110. AllowReduce : false,
  111. Daily : "2020-03-01",
  112. SettlePrice : 40,
  113. Profit : 30,
  114. SalePrice : 20,
  115. FacePrice : 30,
  116. SaleStatus : 1,
  117. Remark : null,
  118. LimitTimeValue : 3,
  119. LimitQtyValue : null,
  120. CanSaleQty : 99
  121. },
  122. {
  123. StockDetailId:292,
  124. ServiceName : "餐厅测试",
  125. ServiceCategoryDesc : "餐厅",
  126. SupplierName : "邓泽军测试餐厅",
  127. IsDefault : false,
  128. ProductDetailItemName : "情侣套餐",
  129. ItemQty : 2,
  130. AllowAdd : false,
  131. AllowReduce : false,
  132. Daily : "2020-03-01",
  133. SettlePrice : 55,
  134. Profit : 30,
  135. SalePrice : 35,
  136. FacePrice : 45,
  137. SaleStatus : 1,
  138. Remark : null,
  139. LimitTimeValue : 3,
  140. LimitQtyValue : null,
  141. CanSaleQty : 99
  142. }
  143. ]
  144. }
  145. }

错误时返回:

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

返回参数说明:

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

Data数据说明
Product参数说明

参数名 类型 说明
Name string 产品名称
Description string 产品描述
TopCategory int 产品类型,1=单项,2=套票
AdvertDesc string 广告语
VideoUrl string 视频链接
DeliveryWay string 交收方式(1线下交收 2电邮通知 3手机短信通知 4邮递 5门店 (,号分隔多个))
StockProductId int 库存Id
StockNo string 库存编号
ProductNo string 产品编号
StockCate int 库存类型,1=采购库存,2=虚拟库存
StockQty int 库存数
Qty int 入库数量
SettlePriceLevel string 分销价格级别
SaleStartDate date 销售有效开始
SaleEndDate date 销售有效结束
UseRemark string 使用说明
QuoteExchangeRate float 汇率
QuoteExchangeCode string 币种代号
BuyMode int 购买模式,1=普通模式,2=抢购模式,抢购方式优先判断
UseDateLimit int 1=有效日期内使用,2=指定日期使用
EffectBegin datetime 有效开始日期,BuyMode=2时为抢购开始时间
EffectEnd datetime 有效结束日期,BuyMode=2时为抢购结束时间
LimitTimeValue int 购买限制方式,BuyMode=2有效,大于0按次数(每天),等于0或NULL无限制
LimitQtyValue int 购买限制方式,BuyMode=2有效,大于0按数量(每单),等于0或NULL无限制
BuyDateLimit int 购买日期限制 提前天数 0当天
BuyKnow string 使用须知
ServiceRemark string 产品详情

ImageList参数说明—图片列表

参数名 类型 说明
ImgPath string 图片路径
IsCover bool 是否是封面

DeliveryWayList 参数说明—交接地址,DeliveryWay包含1 或 5是才有

参数名 类型 说明
DeliveryWay string 交接方式代码
DeliveryWayDesc string 交接方式描述
DeliveryWayAddress string 交接地址

ExpressChargeTypeList 参数说明—邮寄收款方式,DeliveryWay是4才有

参数名 类型 说明
ExpressChargeType string 邮寄收款方式代码
ExpressChargeTypeDesc string 邮寄收款方式描述

PriceDetailList参数说明

参数名 类型 说明
StockDetailId int 库存明细Id
ServiceName string 服务商
ServiceCategoryDesc string 服务商类型
SupplierName string 供应商
IsDefault bool 是否默认产品项目
ProductDetailItemName string 产品项目名称
ItemQty int 产品项目数量
AllowAdd bool true允许增加数量(适用于套票的虚拟库存)
AllowReduce bool true允许减少数量 (适用于套票的虚拟库存)
Daily date 使用日期
SettlePrice number 结算价
Profit number 毛利
SalePrice number 统一卖价
FacePrice number 票面价
SaleStatus number 1=开售,2=停售
Remark string 产品备注
LimitTimeValue int 购买限制方式,BuyMode=2有效,当天剩余次数
LimitQtyValue int 购买限制方式,BuyMode=2有效,当天剩余数量
CanSaleQty int 可售数量

备注:

  • 更多返回错误代码请看首页的错误代码描述