开放平台

获取商品列表

请求地址(POST)

https://openapi.1card1.cn/OpenApi/Get_GoodsItemsPagedV2?openId=[OpenId]&signature=[Signature]&timestamp=[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 商品积分折扣系数,不包括会员级别系数、店面系数、生日系数等(Json格式字符串,GroupName:会员级别,DiscountRate: 折扣系数, PointRate: 积分系数

失败时返回:

{"status":-1,"message":"查询失败及原因"}

字段 是否必须 说明
status 状态(0,成功;-1,失败)
message 查询失败及原因

获取商品列表 调试