开放平台

获取指定商品的SKU

请求地址(POST)

https://openapi.1card1.cn/BusinessApi/Get_GoodsItemsSku?openId=[OpenId]&signature=[Signature]&timestamp=[TimeStamp]

字段 说明
OpenId 登陆开放平台生成的OpenId
Signature 签名=md5(OpenId+Secret+Timestamp+data),格式:32位md5大写加密
TimeStamp 发起请求的时间戳,查看标准timestamp

请求说明

data={"userAccount":"10000","goodsItemGuid":"d8055138-501f-4e75-9297-ba56d3793257"}

字段 是否必须 说明
userAccount 工号
goodsItemGuid 商品唯一标识(“获取商品列表”获得Guid字段)

返回说明

成功时返回:

{ "status": 0, "data": [{ "Guid": "aa77d871-f9e9-11e8-917f-0010184dbd22", "Spec1Guid": "ef06ca30-2823-e611-a1d6-7c0507895043", "Spec2Guid": "f106ca30-2823-e611-a1d6-7c0507895043", "Spec3Guid": "f506ca30-2823-e611-a1d6-7c0507895043", "Spec1AttrGuid": "ff92bbaf-e899-11e8-917f-0010184dbd22", "Spec2AttrGuid": "65fc1ee3-e7dd-11e8-917f-0010184dbd22", "Spec3AttrGuid": "1db23931-e7e9-11e8-917f-0010184dbd22", "Spec1Name": "颜色", "Spec1AttrValue": "玫瑰红", "Spec2Name": "尺码", "Spec2AttrValue": "中码", "Spec3Name": "套餐", "Spec3AttrValue": "套餐A", "Price": 266.0000, "ReferencePrice": 80.0000, "MallPrice": 266.0000, "MarketPrice": 266.0000, "InventoryNumber": 0, "SkuItemsText": "颜色:玫瑰红,尺码:中码,套餐:套餐A", "SellNumber": 0, "SkuCode": "高泡洗车MGHZMTCA", "ImagePath": "" }, { "Guid": "aa782221-f9e9-11e8-917f-0010184dbd22", "Spec1Guid": "ef06ca30-2823-e611-a1d6-7c0507895043", "Spec2Guid": "f106ca30-2823-e611-a1d6-7c0507895043", "Spec3Guid": "f506ca30-2823-e611-a1d6-7c0507895043", "Spec1AttrGuid": "ff92bbaf-e899-11e8-917f-0010184dbd22", "Spec2AttrGuid": "65fc1ee3-e7dd-11e8-917f-0010184dbd22", "Spec3AttrGuid": "227f53f4-e7e9-11e8-917f-0010184dbd22", "Spec1Name": "颜色", "Spec1AttrValue": "玫瑰红", "Spec2Name": "尺码", "Spec2AttrValue": "中码", "Spec3Name": "套餐", "Spec3AttrValue": "套餐B", "Price": 266.0000, "ReferencePrice": 80.0000, "MallPrice": 266.0000, "MarketPrice": 266.0000, "InventoryNumber": 0, "SkuItemsText": "颜色:玫瑰红,尺码:中码,套餐:套餐B", "SellNumber": 0, "SkuCode": "高泡洗车MGHZMTCB", "ImagePath": "" } ] }

字段 是否必须 说明
Guid SKU唯一标识
Spec1Guid 规格一唯一标识
Spec2Guid 规格二唯一标识
Spec3Guid 规格三唯一标识
Spec1AttrGuid 属性一唯一标识
Spec2AttrGuid 属性二唯一标识
Spec3AttrGuid 属性三唯一标识
Spec1Name 规格一名称
Spec2Name 规格二名称
Spec3Name 规格三名称
Spec1AttrValue 属性一名称
Spec2AttrValue 属性二名称
Spec3AttrValue 属性三名称
Price 零售价(线下)
ReferencePrice 参考进货价(线下)
MallPrice 商城价(线上商城使用)
MarketPrice 划线价(线上商城使用)
InventoryNumber 库存数量(线上商城使用)
SellNumber 已售数量(线上商城使用)
SkuItemsText SKU描述
SkuCode SKU编码
ImagePath SKU图片

失败时返回:

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

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

获取指定商品的SKU 调试