莱卡尼API接口文档

莱卡尼本着"帮助客户销售,帮助客户成长"的理念开发了莱卡尼平台API接口,为了更好的帮助有实力的客户进行对接数据。

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx

沙盒测试接口地址:

http://servicetest.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx

注意:

1、在使用接口之前请详情阅读接口调用文档,以免浪费不必要的时间。
2、接口调用需要的Key,请跟相应的客户经理索取。
3、为了不必要的麻烦,请使用沙盒测试接口地址来进行相应的调试。
4、保留限制调用接口次数的权利。

接口变动信息:

1、2015-10-22 产品信息中新增Barcode(条形码),IsPackage(是否套装销售)字段信息,涉及到的接口有:GET_PRODUCTENINFO,GET_PRODUCTENLIST,GET_PRODUCTINFO,GET_PRODUCTLIST
2、2015-12-14 添加判断是否现货销售产品接口GET_NO_SPOTSALES
3、2016-05-10 增加 获取平台禁止产品列表GET_DANGERPRODUCTLIST

GET_BRANDINFO

根据品牌ID获取品牌信息

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=GET_BRANDINFO

提交参数:

序号 参数名称 类型 非空验证
1 Key string
2 BrandID Int

返回值json格式:

                    
{"RetValue":{"BrandID":14,"BrandName":"法伯丽","BrandEnName":"FAVOURER"},"StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 返回内容,当StatusCode=0时有效
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效
4 BrandModel object 品牌对象
BrandID int 品牌ID
BrandName string 品牌中文名称
BrandEnName string 品牌英文名称

GET_BRANDLIST

获取品牌列表

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=GET_BRANDLIST

提交参数:

序号 参数名称 类型 非空验证
1 Key string

返回值json格式:

                    
{"RetValue":[{"BrandID":29,"BrandName":"潘多拉系列","BrandEnName":"pandora"},{"BrandID":27,"BrandName":"婚饰系列","BrandEnName":"Other"},{"BrandID":13,"BrandName":"古玛雅","BrandEnName":"GOMAYA"},{"BrandID":17,"BrandName":"香芭拉","BrandEnName":"Shambala"},{"BrandID":21,"BrandName":"时尚K金产品","BrandEnName":"Other"},{"BrandID":12,"BrandName":"珍姿美","BrandEnName":"JETHMY"},{"BrandID":28,"BrandName":"民族风系列","BrandEnName":"Folk-custom"},{"BrandID":25,"BrandName":"夸张大牌产品","BrandEnName":"Statement Jewelry"},{"BrandID":11,"BrandName":"依娜丽饰","BrandEnName":"INALIS"},{"BrandID":32,"BrandName":"威妮华","BrandEnName":"Viennois"},{"BrandID":18,"BrandName":"品牌A","BrandEnName":"A New Brand"},{"BrandID":10,"BrandName":"又一银","BrandEnName":"YUEYIN"},{"BrandID":20,"BrandName":"K金锆石类","BrandEnName":"KGP Zircon"},{"BrandID":31,"BrandName":"爆款品类","BrandEnName":"Other"},{"BrandID":14,"BrandName":"法伯丽","BrandEnName":"FAVOURER"},{"BrandID":22,"BrandName":"时尚银饰产品","BrandEnName":"Other"},{"BrandID":19,"BrandName":"品牌B","BrandEnName":"B New Brand"},{"BrandID":99,"BrandName":"其它","BrandEnName":"OTHER"}],"StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 返回内容,当StatusCode=0时有效
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效
4 BrandModel[] object[] 品牌列表
BrandID int 品牌ID
BrandName string 品牌中文名称
BrandEnName string 品牌英文名称

GET_CATINFHO

根据类目ID获取类目信息

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=GET_BRANDLIST

提交参数:

序号 参数名称 类型 非空验证
1 Key string
2 CatID Int

返回值json格式:

                    
{"RetValue":{"CatID":201,"CatName":"戒指","CatEnName":"Rings","ParentID":0},"StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 返回内容,当StatusCode=0时有效
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效
4 CatModel object 类目对象
CatID int 类目ID
CatName string 类目中文名称
CatEnName string 类目英文名称
ParentID int 父节点ID

GET_CATLIST

获取类目分类列表

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=GET_CATLIST

提交参数:

序号 参数名称 类型 非空验证
1 Key string

返回值json格式:

                    
{"RetValue":[{"CatID":201,"CatName":"戒指","CatEnName":"Rings","ParentID":0},{"CatID":210,"CatName":"耳 钉","CatEnName":"Stud Earrings","ParentID":202},{"CatID":216,"CatName":"项 链","CatEnName":"Necklaces","ParentID":205},{"CatID":225,"CatName":"钥匙扣","CatEnName":"KeyLinks","ParentID":224},{"CatID":226,"CatName":"钱夹","CatEnName":"Money Clips","ParentID":224},{"CatID":217,"CatName":"吊 坠","CatEnName":"Pendants","ParentID":205},{"CatID":211,"CatName":"耳 圈","CatEnName":"Hoop Earrings","ParentID":202},{"CatID":202,"CatName":"耳饰","CatEnName":"Earrings","ParentID":0},{"CatID":212,"CatName":"耳钩&耳坠","CatEnName":"Dangle Earrings","ParentID":202},{"CatID":218,"CatName":"长款项链","CatEnName":"Long Necklaces","ParentID":205},{"CatID":205,"CatName":"项链&吊坠","CatEnName":"Necklace&Pendants","ParentID":0},{"CatID":207,"CatName":"手 链","CatEnName":"Bracelet","ParentID":0},{"CatID":219,"CatName":"链条配链","CatEnName":"Chain Nceklace","ParentID":205},{"CatID":213,"CatName":"耳夹&耳扣","CatEnName":"Clip Earrings","ParentID":202},{"CatID":208,"CatName":"手镯","CatEnName":"Bangle&Cuff","ParentID":0},{"CatID":220,"CatName":"脚链","CatEnName":"Anklets","ParentID":0},{"CatID":215,"CatName":"耳饰花托","CatEnName":"Earrings Jackets","ParentID":202},{"CatID":204,"CatName":"饰品套装","CatEnName":"Jewelry Set","ParentID":0},{"CatID":221,"CatName":"领带夹&袖扣","CatEnName":"Tie clips & Cufflinks","ParentID":0},{"CatID":224,"CatName":"钥匙扣&钱夹","CatEnName":"Keylings & Money Clips","ParentID":0},{"CatID":223,"CatName":"头饰、发饰","CatEnName":"Hair Jewelry","ParentID":0},{"CatID":54,"CatName":"包装&展件","CatEnName":"Jewelry Packaging","ParentID":0},{"CatID":104,"CatName":"LEKANI 纯银首饰","CatEnName":"LEKANI JEWELRY","ParentID":0}],"StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 返回内容,当StatusCode=0时有效
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效
4 CatModel[] object[] 类目对象
CatID int 类目ID
CatName string 类目中文名称
CatEnName string 类目英文名称
ParentID int 父节点ID

GET_DANGERPRODUCTLIST

获取平台禁止产品列表

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=GET_DANGERPRODUCTLIST

提交参数:

序号 参数名称 类型 非空验证 备注
1 Key string
2 Ptype int 0 表示所有,1 wish , 2 速卖通 ,3 Lazada , 4 Amazon ,5 eBay

返回值json格式:

                    
{"RetValue":{"ProductID":102786,"SKU":"LKNSPCB007-2","BarCode":"9000000000094","Name":"B007 Free Shipping SGS Test Past Latest Trendy Classic Silver Plating Bangle Wholesale Price","Price":5.90,"Stock":48,"IsPackage":1,"Weight":25.00,"GrossWeight":30.000,"PackageHeight":10.00,"PackageLength":10.00,"PackageWidth":8.00,"ShopTime":"2014-07-22T13:29:54.077","KeyWords":" Silver Plating Bangle Wholesale Price ","CatID":208,"CatName":null,"BrandID":10,"BrandName":null,"Attributes":"[{\"AttrID\":\"3\",\"AttrName\":\"Model Number\",\"AttrValue\":\"B007\",\"IsSKU\":\"0\"},{\"AttrID\":\"10\",\"AttrName\":\"Material\",\"AttrValue\":\"None\",\"IsSKU\":\"0\"},{\"AttrID\":\"166\",\"AttrName\":\"Diameter\",\"AttrValue\":\"6.5CM\",\"IsSKU\":\"0\"},{\"AttrID\":\"284\",\"AttrName\":\"Gender\",\"AttrValue\":\"Women\",\"IsSKU\":\"0\"},{\"AttrID\":\"326\",\"AttrName\":\"Style\",\"AttrValue\":\"Romantic\",\"IsSKU\":\"0\"},{\"AttrID\":\"20258\",\"AttrName\":\"Setting Type\",\"AttrValue\":\"Bezel Setting\",\"IsSKU\":\"0\"},{\"AttrID\":\"100005859\",\"AttrName\":\"Metals Type\",\"AttrValue\":\"Silver Plated\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000631\",\"AttrName\":\"is_customized\",\"AttrValue\":\"Yes\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000782\",\"AttrName\":\"Plating\",\"AttrValue\":\"Silver Plated\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000784\",\"AttrName\":\"Shape\\pattern\",\"AttrValue\":\"Heart\",\"IsSKU\":\"0\"},{\"AttrID\":\"200001034\",\"AttrName\":\"Metal Color\",\"AttrValue\":\"Silver Plated\",\"IsSKU\":\"1\"}]","Images":"http://img.pfhoo.com/pro/b/20140717/d8e37cb5-e313-45a9-9033-ec21b9b9dafc.jpg,http://img.pfhoo.com/pro/b/20140717/66061c2f-bc2d-4338-b75e-c251a8a2b377.jpg,http://img.pfhoo.com/pro/b/20140717/f1564057-57b5-42d4-a979-e12bb1bbaf65.jpg,http://img.pfhoo.com/pro/b/20140717/88d96057-91d7-43fe-be37-4b6b0eb28c5a.jpg","Description":"<img src=\"http://img.inalis.com/InfoImg/20140717/7eece521-6d4e-4070-995d-1e0acae3c3f7.jpg\" alt=\"\" /><img src=\"http://img.inalis.com/InfoImg/20140717/741093a6-8f3e-4f8f-a411-0db9fdfc837f.jpg\" alt=\"\" /><img src=\"http://img.inalis.com/InfoImg/20140717/ddfdfc12-7b67-4c07-9f43-3093a5eefcd5.jpg\" alt=\"\" /><img src=\"http://img.inalis.com/InfoImg/20140717/bf272e58-e975-4b28-b434-580f3036dd73.jpg\" alt=\"\" />"},"StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 返回内容,当StatusCode=0时有效
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效
4 ProductModel object 产品信息对象
ProductID int 产品ID
SKU string 产品货号
BarCode string EAN13条形码,条码以7000000,8000000,9000000开头
Price decimal 价格(元)
Stock int 库存
IsPackage int 是否套装销售,1为非套装销售,2为套装销售
Weight decimal 产品重量(克)
GrossWeight decimal 毛重
PackageHeight decimal 包装高度(厘米)
PackageLength decimal 包装长度(厘米)
PackageWidth decimal 包装宽度(厘米)
ShopTime Datetime 上架时间
KeyWords string 关键字
CatID int 类目ID
CatName string 类目名称
BrandID int 品牌ID
BrandName string 品牌名称
Attributes AttributeModel[] 属性对象列表
Images string 主图列表,图片之间以","(逗号)隔开,第一张图片为默认主图
Description string 详情描述,包含HTML字符
5 AttributeModel object 属性对象
AttrID int 属性ID
AttrName string 属性名称
AttrValue string 属性值
IsSKU int 0为基本属性,1为销售属性(如码数,颜色等)

GET_PRODUCTENINFO

根据ProductID或SKU获取英文产品信息

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=GET_PRODUCTENINFO

提交参数:

序号 参数名称 类型 非空验证 备注
1 Key string
2 ProdcutID int 通过sku获取产品信息时 ProdcutID 设置为0即可
3 Sku string

返回值json格式:

                    
{"RetValue":{"ProductID":102786,"SKU":"LKNSPCB007-2","BarCode":"9000000000094","Name":"B007 Free Shipping SGS Test Past Latest Trendy Classic Silver Plating Bangle Wholesale Price","Price":5.90,"Stock":48,"IsPackage":1,"Weight":25.00,"GrossWeight":30.000,"PackageHeight":10.00,"PackageLength":10.00,"PackageWidth":8.00,"ShopTime":"2014-07-22T13:29:54.077","KeyWords":" Silver Plating Bangle Wholesale Price ","CatID":208,"CatName":null,"BrandID":10,"BrandName":null,"Attributes":"[{\"AttrID\":\"3\",\"AttrName\":\"Model Number\",\"AttrValue\":\"B007\",\"IsSKU\":\"0\"},{\"AttrID\":\"10\",\"AttrName\":\"Material\",\"AttrValue\":\"None\",\"IsSKU\":\"0\"},{\"AttrID\":\"166\",\"AttrName\":\"Diameter\",\"AttrValue\":\"6.5CM\",\"IsSKU\":\"0\"},{\"AttrID\":\"284\",\"AttrName\":\"Gender\",\"AttrValue\":\"Women\",\"IsSKU\":\"0\"},{\"AttrID\":\"326\",\"AttrName\":\"Style\",\"AttrValue\":\"Romantic\",\"IsSKU\":\"0\"},{\"AttrID\":\"20258\",\"AttrName\":\"Setting Type\",\"AttrValue\":\"Bezel Setting\",\"IsSKU\":\"0\"},{\"AttrID\":\"100005859\",\"AttrName\":\"Metals Type\",\"AttrValue\":\"Silver Plated\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000631\",\"AttrName\":\"is_customized\",\"AttrValue\":\"Yes\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000782\",\"AttrName\":\"Plating\",\"AttrValue\":\"Silver Plated\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000784\",\"AttrName\":\"Shape\\pattern\",\"AttrValue\":\"Heart\",\"IsSKU\":\"0\"},{\"AttrID\":\"200001034\",\"AttrName\":\"Metal Color\",\"AttrValue\":\"Silver Plated\",\"IsSKU\":\"1\"}]","Images":"http://img.pfhoo.com/pro/b/20140717/d8e37cb5-e313-45a9-9033-ec21b9b9dafc.jpg,http://img.pfhoo.com/pro/b/20140717/66061c2f-bc2d-4338-b75e-c251a8a2b377.jpg,http://img.pfhoo.com/pro/b/20140717/f1564057-57b5-42d4-a979-e12bb1bbaf65.jpg,http://img.pfhoo.com/pro/b/20140717/88d96057-91d7-43fe-be37-4b6b0eb28c5a.jpg","Description":"<img src=\"http://img.inalis.com/InfoImg/20140717/7eece521-6d4e-4070-995d-1e0acae3c3f7.jpg\" alt=\"\" /><img src=\"http://img.inalis.com/InfoImg/20140717/741093a6-8f3e-4f8f-a411-0db9fdfc837f.jpg\" alt=\"\" /><img src=\"http://img.inalis.com/InfoImg/20140717/ddfdfc12-7b67-4c07-9f43-3093a5eefcd5.jpg\" alt=\"\" /><img src=\"http://img.inalis.com/InfoImg/20140717/bf272e58-e975-4b28-b434-580f3036dd73.jpg\" alt=\"\" />"},"StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 返回内容,当StatusCode=0时有效
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效
4 ProductModel object 产品信息对象
ProductID int 产品ID
SKU string 产品货号
BarCode string EAN13条形码,条码以7000000,8000000,9000000开头
Price decimal 价格(元)
Stock int 库存
IsPackage int 是否套装销售,1为非套装销售,2为套装销售
Weight decimal 产品重量(克)
GrossWeight decimal 毛重
PackageHeight decimal 包装高度(厘米)
PackageLength decimal 包装长度(厘米)
PackageWidth decimal 包装宽度(厘米)
ShopTime Datetime 上架时间
KeyWords string 关键字
CatID int 类目ID
CatName string 类目名称
BrandID int 品牌ID
BrandName string 品牌名称
Attributes AttributeModel[] 属性对象列表
Images string 主图列表,图片之间以","(逗号)隔开,第一张图片为默认主图
Description string 详情描述,包含HTML字符
5 AttributeModel object 属性对象
AttrID int 属性ID
AttrName string 属性名称
AttrValue string 属性值
IsSKU int 0为基本属性,1为销售属性(如码数,颜色等)

GET_PRODUCTENLIST

获取产品列表(英文)

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=GET_PRODUCTENLIST

提交参数:

序号 参数名称 类型 非空验证
1 Key string
2 PageIndex int
3 CatID int
4 BrandID int
5 ShopBeginTime string
6 ShopEndTime string
7 SKUS string

SKUS输入格式:

                    
                        ["LKN18KRGPR476-8","LKN18KRGPN606","LKN18KRGPN601","LKN18KRGPN603","LKN18KRGPN609","LKN18KRGPN599","LKN18KRGPN600","LKN18KRGPR422","LKN18KRGPR423","LKN18KRGPR250-8"]
                  
                

返回值json格式:

                    
{"RetValue":{"PageIndex":1,"PageTotal":100,"PageSize":100,"RecordTotal":9900,"ProductList":[{"ProductID":102782,"SKU":"LKNSPCB003","BarCode":"9000000000032","Name":"B003 Free Shipping SGS Test Past Latest Trendy Classic Silver Plating Bangle Wholesale Price","Price":13.95,"Stock":56,"IsPackage":1,"Weight":56.00,"GrossWeight":61.000,"PackageHeight":10.00,"PackageLength":10.00,"PackageWidth":8.00,"ShopTime":"2014-07-22T13:29:54.137","KeyWords":" Silver Plating Bangle Wholesale Price","CatID":208,"CatName":null,"BrandID":10,"BrandName":null,"Attributes":"[{\"AttrID\":\"3\",\"AttrName\":\"Model Number\",\"AttrValue\":\"B003\",\"IsSKU\":\"0\"},{\"AttrID\":\"10\",\"AttrName\":\"Material\",\"AttrValue\":\"None\",\"IsSKU\":\"0\"},{\"AttrID\":\"166\",\"AttrName\":\"Diameter\",\"AttrValue\":\"6.5CM\",\"IsSKU\":\"0\"},{\"AttrID\":\"284\",\"AttrName\":\"Gender\",\"AttrValue\":\"Women\",\"IsSKU\":\"0\"},{\"AttrID\":\"326\",\"AttrName\":\"Style\",\"AttrValue\":\"Romantic\",\"IsSKU\":\"0\"},{\"AttrID\":\"20258\",\"AttrName\":\"Setting Type\",\"AttrValue\":\"Bezel Setting\",\"IsSKU\":\"0\"},{\"AttrID\":\"100005859\",\"AttrName\":\"Metals Type\",\"AttrValue\":\"Silver Plated\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000631\",\"AttrName\":\"is_customized\",\"AttrValue\":\"Yes\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000782\",\"AttrName\":\"Plating\",\"AttrValue\":\"Silver Plated\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000784\",\"AttrName\":\"Shape\\pattern\",\"AttrValue\":\"Plant\",\"IsSKU\":\"0\"},{\"AttrID\":\"200001034\",\"AttrName\":\"Metal Color\",\"AttrValue\":\"Silver Plated\",\"IsSKU\":\"1\"}]","Images":"http://img.pfhoo.com/pro/b/20140717/bfade954-3409-473d-82aa-f6832eabefc7.jpg,http://img.pfhoo.com/pro/b/20140717/feb3a3a0-d338-4c92-9a6a-b0d0661bfb05.jpg,http://img.pfhoo.com/pro/b/20140717/8211cb85-5491-4d92-89c3-eebb188562cf.jpg,http://img.pfhoo.com/pro/b/20140717/0a1717b7-0a9d-40d3-9ad4-bcb1aeaef7e6.jpg","Description":"<img src=\"http://img.inalis.com/InfoImg/20140717/14b86427-37ac-4233-b5d1-0fcbbea573b8.jpg\" alt=\"\" /><img src=\"http://img.inalis.com/InfoImg/20140717/6f90bb03-32f5-4bfa-b64f-10ff2528f8bb.jpg\" alt=\"\" /><img src=\"http://img.inalis.com/InfoImg/20140717/9053088c-680e-408d-8f68-857adf2706a9.jpg\" alt=\"\" /><img src=\"http://img.inalis.com/InfoImg/20140717/225023bc-cf71-4f6e-b182-ef971aee9b45.jpg\" alt=\"\" />"},(省略99条数据)]},"StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 返回内容,当StatusCode=0时有效
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效
4 PageIndex int 当前页
5 PageTotal int 总页数
6 PageSize int 每一页记录数 默认100条数据
7 RecordTotal int 记录总数
8 ProductList ProductModel[] 产品信息对象列表
9 ProductModel object 产品信息对象
ProductID int 产品ID
SKU string 产品货号
BarCode string EAN13条形码,条码以7000000,8000000,9000000开头
Price decimal 价格(元)
Stock int 库存
IsPackage int 是否套装销售,1为非套装销售,2为套装销售
Weight decimal 产品重量(克)
GrossWeight decimal 毛重
PackageHeight decimal 包装高度(厘米)
PackageLength decimal 包装长度(厘米)
PackageWidth decimal 包装宽度(厘米)
ShopTime Datetime 上架时间
KeyWords string 关键字
CatID int 类目ID
CatName string 类目名称
BrandID int 品牌ID
BrandName string 品牌名称
Attributes AttributeModel[] 属性对象列表
Images string 主图列表,图片之间以","(逗号)隔开,第一张图片为默认主图
Description string 详情描述,包含HTML字符
10 AttributeModel object 属性对象
AttrID int 属性ID
AttrName string 属性名称
AttrValue string 属性值
IsSKU int 0为基本属性,1为销售属性(如码数,颜色等)

GET_PRODUCTINFO

根据ProductID或SKU获取中文产品信息

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=GET_PRODUCTINFO

提交参数:

序号 参数名称 类型 非空验证 备注
1 Key string
2 ProdcutID int 通过sku获取产品信息时 ProdcutID 设置为0即可
3 Sku string

返回值json格式:

                    
{"RetValue":{"ProductID":102786,"SKU":"LKNSPCB007-2","BarCode":"9000000000094","Name":"歪心牌开口手镯时尚心形造型银饰手镯 B007","Price":5.90,"Stock":48,"IsPackage":1,"Weight":25.00,"GrossWeight":30.000,"PackageHeight":10.00,"PackageLength":10.00,"PackageWidth":8.00,"ShopTime":"2014-07-22T13:29:54.077","KeyWords":"时尚手镯,银饰手镯","CatID":208,"CatName":"手镯","BrandID":10,"BrandName":"又一银","Attributes":"[{\"AttrID\":\"3\",\"AttrName\":\"型号\",\"AttrValue\":\"B007\",\"IsSKU\":\"0\"},{\"AttrID\":\"10\",\"AttrName\":\"镶嵌物品\",\"AttrValue\":\"无镶嵌物\",\"IsSKU\":\"0\"},{\"AttrID\":\"166\",\"AttrName\":\"直径\",\"AttrValue\":\"6.5CM\",\"IsSKU\":\"0\"},{\"AttrID\":\"284\",\"AttrName\":\"性别\",\"AttrValue\":\"女\",\"IsSKU\":\"0\"},{\"AttrID\":\"326\",\"AttrName\":\"潮流风格\",\"AttrValue\":\"欧美风\",\"IsSKU\":\"0\"},{\"AttrID\":\"20258\",\"AttrName\":\"镶嵌类型\",\"AttrValue\":\"无镶嵌\",\"IsSKU\":\"0\"},{\"AttrID\":\"100005859\",\"AttrName\":\"热门材质 \",\"AttrValue\":\"镀银\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000631\",\"AttrName\":\"是否可定制\",\"AttrValue\":\"是\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000782\",\"AttrName\":\"镀色\",\"AttrValue\":\"镀银\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000784\",\"AttrName\":\"流行造型/形状\",\"AttrValue\":\"心形\",\"IsSKU\":\"0\"},{\"AttrID\":\"200001034\",\"AttrName\":\"金属颜色\",\"AttrValue\":\"镀银\",\"IsSKU\":\"1\"}]","Images":"http://img.pfhoo.com/pro/b/20140717/d8e37cb5-e313-45a9-9033-ec21b9b9dafc.jpg,http://img.pfhoo.com/pro/b/20140717/66061c2f-bc2d-4338-b75e-c251a8a2b377.jpg,http://img.pfhoo.com/pro/b/20140717/f1564057-57b5-42d4-a979-e12bb1bbaf65.jpg,http://img.pfhoo.com/pro/b/20140717/88d96057-91d7-43fe-be37-4b6b0eb28c5a.jpg,http://img.pfhoo.com/pro/b/20140717/d8e37cb5-e313-45a9-9033-ec21b9b9dafc.jpg","Description":"<img src=\"http://img.pfhoo.com/InfoImg/20140717/7eece521-6d4e-4070-995d-1e0acae3c3f7.jpg\" alt=\"\" /><img src=\"http://img.pfhoo.com/InfoImg/20140717/741093a6-8f3e-4f8f-a411-0db9fdfc837f.jpg\" alt=\"\" /><img src=\"http://img.pfhoo.com/InfoImg/20140717/ddfdfc12-7b67-4c07-9f43-3093a5eefcd5.jpg\" alt=\"\" /><img src=\"http://img.pfhoo.com/InfoImg/20140717/bf272e58-e975-4b28-b434-580f3036dd73.jpg\" alt=\"\" />"},"StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 返回内容,当StatusCode=0时有效
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效
4 ProductModel object 产品信息对象
ProductID int 产品ID
SKU string 产品货号
BarCode string EAN13条形码,条码以7000000,8000000,9000000开头
Price decimal 价格(元)
Stock int 库存
IsPackage int 是否套装销售,1为非套装销售,2为套装销售
Weight decimal 产品重量(克)
GrossWeight decimal 毛重
PackageHeight decimal 包装高度(厘米)
PackageLength decimal 包装长度(厘米)
PackageWidth decimal 包装宽度(厘米)
ShopTime Datetime 上架时间
KeyWords string 关键字
CatID int 类目ID
CatName string 类目名称
BrandID int 品牌ID
BrandName string 品牌名称
Attributes AttributeModel[] 属性对象列表
Images string 主图列表,图片之间以","(逗号)隔开,第一张图片为默认主图
Description string 详情描述,包含HTML字符
5 AttributeModel object 属性对象
AttrID int 属性ID
AttrName string 属性名称
AttrValue string 属性值
IsSKU int 0为基本属性,1为销售属性(如码数,颜色等)

GET_PRODUCTLIST

获取产品列表(中文)

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=GET_PRODUCTLIST

提交参数:

序号 参数名称 类型 非空验证
1 Key string
2 PageIndex int
3 CatID int
4 BrandID int
5 ShopBeginTime string
6 ShopEndTime string
7 SKUS string

SKUS输入格式:

                    
                        ["LKN18KRGPR476-8","LKN18KRGPN606","LKN18KRGPN601","LKN18KRGPN603","LKN18KRGPN609","LKN18KRGPN599","LKN18KRGPN600","LKN18KRGPR422","LKN18KRGPR423","LKN18KRGPR250-8"]
                  
                

返回值json格式:

                    
{"RetValue":{"PageIndex":1,"PageTotal":100,"PageSize":100,"RecordTotal":9933,"ProductList":[{"ProductID":100063,"SKU":"LKN18KRGPR179-8","BarCode":"7000000252945","Name":"经典风格环保白金几何形戒指 R179","Price":12.00,"Stock":53,"IsPackage":1,"Weight":10.00,"GrossWeight":14.000,"PackageHeight":10.00,"PackageLength":10.00,"PackageWidth":8.00,"ShopTime":"2014-07-11T16:48:50.553","KeyWords":"白金戒指,环保戒指","CatID":201,"CatName":"戒指","BrandID":11,"BrandName":"依娜丽饰","Attributes":"[{\"AttrID\":\"3\",\"AttrName\":\"型号\",\"AttrValue\":\"R179 R001\",\"IsSKU\":\"0\"},{\"AttrID\":\"10\",\"AttrName\":\"镶嵌物品\",\"AttrValue\":\"捷克钻\",\"IsSKU\":\"0\"},{\"AttrID\":\"284\",\"AttrName\":\"性别\",\"AttrValue\":\"女\",\"IsSKU\":\"0\"},{\"AttrID\":\"326\",\"AttrName\":\"潮流风格\",\"AttrValue\":\"经典/流行\",\"IsSKU\":\"0\"},{\"AttrID\":\"1186\",\"AttrName\":\"场合\",\"AttrValue\":\"日常/户外\",\"IsSKU\":\"0\"},{\"AttrID\":\"20257\",\"AttrName\":\"戒指类型\",\"AttrValue\":\"镶嵌戒\",\"IsSKU\":\"0\"},{\"AttrID\":\"20258\",\"AttrName\":\"镶嵌类型\",\"AttrValue\":\"密镶式镶\",\"IsSKU\":\"0\"},{\"AttrID\":\"100005859\",\"AttrName\":\"热门材质 \",\"AttrValue\":\"锡合金\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000631\",\"AttrName\":\"是否可定制\",\"AttrValue\":\"是\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000784\",\"AttrName\":\"流行造型/形状\",\"AttrValue\":\"几何\",\"IsSKU\":\"0\"},{\"AttrID\":\"200000369\",\"AttrName\":\"戒指码数\",\"AttrValue\":\"美码8\",\"IsSKU\":\"1\"},{\"AttrID\":\"200000783\",\"AttrName\":\"镶嵌物颜色\",\"AttrValue\":\"白色\",\"IsSKU\":\"1\"},{\"AttrID\":\"200001034\",\"AttrName\":\"金属颜色\",\"AttrValue\":\"镀白金\",\"IsSKU\":\"1\"}]","Images":"http://img.pfhoo.com/pro/b/20140627/d9340445-4d69-450c-a202-94af5724041e.jpg,http://img.pfhoo.com/pro/b/20140621/6e2266cd-437f-4f87-b279-6ab28896b4bb.jpg,http://img.pfhoo.com/pro/b/20140621/c83ed283-80d4-4faa-a282-ac1372763d96.jpg,http://img.pfhoo.com/pro/b/20140621/047a9f47-3819-484d-811a-a185100738f9.jpg,http://img.pfhoo.com/pro/b/20140621/e9be0f5e-94a9-466c-a061-b2416cc2527b.jpg,http://img.pfhoo.com/pro/b/20140627/d9340445-4d69-450c-a202-94af5724041e.jpg,http://img.pfhoo.com/pro/b/20140627/49de47cc-d2e8-4815-b8bd-b92b58f6c7d5.jpg","Description":"<img src=\"http://img.pfhoo.com/InfoImg/20140821/78ad8827-0fb8-4b4f-8f8d-886c7d576462.jpg\" alt=\"\" /><img src=\"http://img.pfhoo.com/InfoImg/20140821/9dd0c117-5796-4364-a8f7-519fd7f76f6d.jpg\" alt=\"\" /><img src=\"http://img.pfhoo.com/InfoImg/20140821/fcbc8e15-96ba-4e61-88c3-60d34f9feb26.jpg\" alt=\"\" /><img src=\"http://img.pfhoo.com/InfoImg/20140821/370ee507-a8d2-4dec-b4b4-15a9c0012cf0.jpg\" alt=\"\" /><img src=\"http://img.pfhoo.com/InfoImg/20140821/4356cee5-72c3-419c-a821-05cef7310bb8.jpg\" alt=\"\" /><img src=\"http://img.pfhoo.com/InfoImg/20140821/e87679b8-073e-461e-b44f-f4b973426c82.jpg\" alt=\"\" /><img src=\"http://img.pfhoo.com/InfoImg/20140821/edcd9ae5-6708-4c0f-a88a-a32b84e94f2b.jpg\" alt=\"\" /><img src=\"http://img.pfhoo.com/InfoImg/20140821/a3d149ca-e0cd-4ac9-8a2f-1f5f133933ae.jpg\" alt=\"\" /><img src=\"http://img.pfhoo.com/InfoImg/20140821/b6d3b634-e82b-4484-bd9e-b24043b0fbd3.jpg\" alt=\"\" />"},(省略99条数据)]},"StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 返回内容,当StatusCode=0时有效
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效
4 PageIndex int 当前页
5 PageTotal int 总页数
6 PageSize int 每一页记录数 默认100条数据
7 RecordTotal int 记录总数
8 ProductList ProductModel[] 产品信息对象列表
9 ProductModel object 产品信息对象
ProductID int 产品ID
SKU string 产品货号
BarCode string EAN13条形码,条码以7000000,8000000,9000000开头
Price decimal 价格(元)
Stock int 库存
IsPackage int 是否套装销售,1为非套装销售,2为套装销售
Weight decimal 产品重量(克)
GrossWeight decimal 毛重
PackageHeight decimal 包装高度(厘米)
PackageLength decimal 包装长度(厘米)
PackageWidth decimal 包装宽度(厘米)
ShopTime Datetime 上架时间
KeyWords string 关键字
CatID int 类目ID
CatName string 类目名称
BrandID int 品牌ID
BrandName string 品牌名称
Attributes AttributeModel[] 属性对象列表
Images string 主图列表,图片之间以","(逗号)隔开,第一张图片为默认主图
Description string 详情描述,包含HTML字符
10 AttributeModel object 属性对象
AttrID int 属性ID
AttrName string 属性名称
AttrValue string 属性值
IsSKU int 0为基本属性,1为销售属性(如码数,颜色等)

Get_ISOFFSHELVES

根据SKU判断此商品是否下架

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=Get_ISOFFSHELVES

提交参数:

序号 参数名称 类型 非空验证
1 Key string
2 SKU string

返回值json格式:

                    
{"RetValue":1,"StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 返回内容,0为下架,1为上架,当StatusCode=0时有效
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效

Get_STOCK

获取产品库存

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=Get_STOCK

提交参数:

序号 参数名称 类型 非空验证
1 Key string
2 SKU string

返回值json格式:

                    
{"RetValue":97,"StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 返回库存数,0为无库存,当StatusCode=0时有效
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效

GET_NO_SPOTSALES

获取非现货销售产品(包括定做产品,售完即止等产品)

接口地址:

http://service.pfhoo.com/Standard/WebService/Lekani_Standard_WebService.asmx?op=GET_NO_SPOTSALES

提交参数:

序号 参数名称 类型 非空验证
1 Key string
2 SKUS string

SKUS输入格式:

                    
                        ["LKNSPCB002","LKNSPCB008-2","LKN18KRGPN601","LKN18KRGPN603","LKN18KRGPN609","LKN18KRGPN599","LKN18KRGPN600","LKN18KRGPR422","LKN18KRGPR423","LKN18KRGPR250-8"]
                  
                

返回值json格式:

                    
{"RetValue":"[\"LKNSPCB002\",\"LKNSPCB008-2\"]","StatusCode":0,"ErrorMessage":null}
                  
                

返回值说明:

序号 字段名 类型 说明
1 StatusCode int 返回的状态
2 RetValue string 当StatusCode=0时有效,如输入参数的skus存在非现货销售的sku,则返回非现货销售的sku,反之则返回空值
3 ErrorMessage string 错误返回信息,当StatusCode=1时有效