简要描述:
- 产品详情
请求URL:
- getProductPriceDetail
请求参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
lang | 是 | string | 语言 |
distributionId | 是 | int | 分销id,对应产品列表的分销Id(DistributionId) |
startDate | 否 | Date | 搜寻范围开始日期,不选传 “” |
endDate | 否 | Date | 搜寻范围结束日期,不选传 “” |
入参示例:
{
apiKey : "test1",
apisecret : "78FBB3D68B40A347644619ACF902CED3",
currentTimeStamp : "20180301172325",
sign : "B23DB73D46082DF31812E90B11D771C8",
uri : "http://localhost:39450/loneproduct/getProductPriceDetail",
data :
{
"lang": "zh-cn",
"distributionId": "94"
"startDate" : "2020-03-01",
"endDate" : "2020-03-02"
}
}
返回示例:
正确时返回:
{
Code : 0,
Success : true,
Message : null,
Data :
{
Product :
{
Name : "梦幻水城套票",
Description : "一日好玩,爽",
TopCategory : "2",
StockProductId : "120",
StockNo : "LPSN2002-0037",
ProductNo : "LOP20-0056",
StockCate : "2",
StockQty : "59",
Qty : "62",
SettlePriceLevel : "A",
SaleStartDate : "2020-03-01",
SaleEndDate : "2020-03-31",
UseRemark : "",
QuoteExchangeRate : "1",
QuoteExchangeCode : "CNY",
BuyMode : "2",
UseDateLimit : "2",
EffectBegin : "2020-08-18 15:30:30",
EffectEnd : "2020-08-31 14:09:30",
LimitTimeValue : "3",
LimitQtyValue : "5",
"BuyDateLimit":0
},
ImageList :
[
{
ImgPath : "http://yjtest.oss.aliyuncs.com/Travels/LoneProduct/el7_e1430ec6-5ea9-46ed-be62-7a4d204ce69a.png",
IsCover : true
}
],
DeliveryWayList :
[
{
DeliveryWay : "1",
DeliveryWayDesc : "线下交收",
DeliveryWayAddress : "邓111"
},
{
DeliveryWay : "5",
DeliveryWayDesc : "门店自提",
DeliveryWayAddress : "秘书部ABC(拱北中建商业大厦19楼)"
},
{
DeliveryWay : "5",
DeliveryWayDesc : "门店自提",
DeliveryWayAddress : "业务11(龙岗区)"
}
],
PriceDetailList :
[
{
StockDetailId:289,
ServiceName : "珠海测试酒店",
ServiceCategoryDesc : "酒店",
SupplierName : "珠海测试酒店",
IsDefault : true,
ProductDetailItemName : "双床房(海景)",
ItemQty : 1,
AllowAdd : false,
AllowReduce : false,
Daily : "2020-03-01",
SettlePrice : 400,
Profit : 300,
SalePrice : 200,
FacePrice : 300,
SaleStatus : 1,
Remark : null,
LimitTimeValue : 3,
LimitQtyValue : null,
CanSaleQty : 99
},
{
StockDetailId:290,
ServiceName : "珠海测试酒店",
ServiceCategoryDesc : "酒店",
SupplierName : "珠海测试酒店",
IsDefault : false,
ProductDetailItemName : "大床房(皇冠)",
ItemQty : 1,
AllowAdd : false,
AllowReduce : false,
Daily : "2020-03-01",
SettlePrice : 410,
Profit : 300,
SalePrice : 210,
FacePrice : 310,
SaleStatus : 1,
Remark : null,
LimitTimeValue : 3,
LimitQtyValue : null,
CanSaleQty : 99
},
{
StockDetailId:291,
ServiceName : "餐厅测试",
ServiceCategoryDesc : "餐厅",
SupplierName : "邓泽军测试餐厅",
IsDefault : true,
ProductDetailItemName : "午餐套饭",
ItemQty : 1,
AllowAdd : false,
AllowReduce : false,
Daily : "2020-03-01",
SettlePrice : 40,
Profit : 30,
SalePrice : 20,
FacePrice : 30,
SaleStatus : 1,
Remark : null,
LimitTimeValue : 3,
LimitQtyValue : null,
CanSaleQty : 99
},
{
StockDetailId:292,
ServiceName : "餐厅测试",
ServiceCategoryDesc : "餐厅",
SupplierName : "邓泽军测试餐厅",
IsDefault : false,
ProductDetailItemName : "情侣套餐",
ItemQty : 2,
AllowAdd : false,
AllowReduce : false,
Daily : "2020-03-01",
SettlePrice : 55,
Profit : 30,
SalePrice : 35,
FacePrice : 45,
SaleStatus : 1,
Remark : null,
LimitTimeValue : 3,
LimitQtyValue : null,
CanSaleQty : 99
}
]
}
}
错误时返回:
{
"Code" : 100002,
"Success" : false,
"Message" : "应用认证错误",
"Data" : ""
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
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 | 可售数量 |
备注:
- 更多返回错误代码请看首页的错误代码描述