获取商品列表
请求地址(POST)
https://openapi.1card1.cn/OpenApi/Get_GoodsItemsPagedV2?openId=[OpenId]&signature=[Signature]×tamp=[TimeStamp]
字段 | 说明 |
---|---|
OpenId | 登陆开放平台生成的OpenId |
Signature | 签名=md5(OpenId+Secret+Timestamp+data),格式:32位md5大写加密 |
TimeStamp | 发起请求的时间戳,查看标准timestamp |
请求说明
data={"userAccount":"10003","where":" 1=1 ", "pageIndex":0,"pageSize":10,"orderBy":" Guid desc","getPointDiscount":"false"}
字段 | 是否必须 | 说明 |
---|---|---|
userAccount | 是 | 工号 |
where | 否 | 查询条件 |
pageIndex | 是 | 页码 |
pageSize | 是 | 页大小 |
orderBy | 否 | 排序规则 |
getPointDiscount | 否 | 是否获取积分折扣信息(已弃用,请通过“获取积分折扣系数”获取) |
返回说明
成功时返回:
{ "status":0, "total":2, "data":[ { "Guid": "a13ea1b4-3fe6-e311-8b81-90b11c47b4da", "Barcode": "g002", "Name": "小熊MINI", "Price ": 999, "GooodsItemTypename ": "电器类", "GoodsItemTypeGuid ": "3a9e9753-97e5-e511-aabd-7c0507895043", "ImagePath":"http://files.sz1card1.com/3573/201404/201404291614220926.jpg", "IsBargain ": "False", "BargainPrice ": 0.00, "ReferencePrice":800, "AllowBargainDiscount":"True", "AllowBargainPoint":"True", "IsHide":"True", "Unit":"只", "Description":"很不错的电器哦~", "Meno":"", "ModifiedTime":"2016-07-08 15:38:28", "ModifiedUser":"10000", "pointDiscount": [ { "GroupName": "全部级别", "DiscountRate": "0.6000", "PointRate": "1.0000" } ] }, { "Guid": "a13ea1b4-3fe6-e311-8b81-90b11c47b4da", "Barcode": "g001", "Name": "纸老虎", "Price ": 88, "GooodsItemTypename ": "餐饮类", "GoodsItemTypeGuid ": "3a9e9753-97e5-e511-aabd-7c0507895043", "ImagePath":"", "IsBargain ": "true", "BargainPrice ": 70, "ReferencePrice":60, "AllowBargainDiscount":"False", "AllowBargainPoint":"False", "IsHide":"False", "Unit":"个", "Description":"", "Meno":"余量不多了", "ModifiedTime":"2016-07-08 15:38:28", "ModifiedUser":"10000", "pointDiscount": [ { "GroupName": "全部级别", "DiscountRate": "0.8000", "PointRate": "0.9000" }, { "GroupName": "黑金卡", "DiscountRate": "0.7000", "PointRate": "0.8000" } ] } ] }
字段 | 是否必须 | 说明 |
---|---|---|
Guid | 是 | 商品唯一标识 |
Barcode | 是 | 商品编码 |
Name | 是 | 商品名称 |
GooodsItemTypename | 是 | 商品类别名称 |
GoodsItemTypeGuid | 是 | 商品类别唯一标识 |
Price | 是 | 价格 |
ImagePath | 是 | 形象图片路径 |
IsBargain | 是 | 是否特价 |
ReferencePrice | 是 | 参考进货价 |
BargainPrice | 是 | 特价价格(仅在IsBargain=true时生效) |
AllowBargainDiscount | 是 | 特价情况下是否允许打折(仅在IsBargain=true时生效) |
AllowBargainPoint | 是 | 特价情况下是否允许积分(仅在IsBargain=true时生效) |
IsHide | 是 | 商城是否隐藏(false表示上架,true表示微信端隐藏,即下架) |
Unit | 是 | 单位 |
Description | 是 | 商品描述 |
Meno | 是 | 商品备注 |
ModifiedTime | 是 | 最近编辑时间 |
ModifiedUser | 是 | 最近编辑者 |
pointDiscount | 否 | 商品积分折扣系数(已弃用,请通过“获取积分折扣系数”获取) |
失败时返回:
{"status":-1,"message":"查询失败及原因"}
字段 | 是否必须 | 说明 |
---|---|---|
status | 是 | 状态(0,成功;-1,失败) |
message | 是 | 查询失败及原因 |