开发者文档
获取单品条码(新)

接口说明

本接口用于提供给第三方平台或是卖家自有系统集成查询指定仓库的单品信息。

使用场景

卖家可以通过该接口实现按仓库ID及产品编码生成单品码及单品条码。

请求说明  

URL

http://openapi.winit.com.cn/openapi/service

接口测试

http://openapi.sandbox.winit.com.cn/openapi/service

验证方式

Token,md5

格式

json

字符编码UTF-8

http请求方式

http

请求数限制

默认每分钟300,有需要可以申请加大

 

参数说明 

名称

类型

必填

说明

示例

merchandiseCode

String(100)

必填

产品编码,产品注册时必填


specification

String(255)

选填,当产品在注册时如果区分了产品规格,则获取的时候为必填

产品规格


number

Integer(4)

必填


数量,大于0并小于1000,多个产品时总数不大于1000


labelTypeString必填

LZ10060(默认):尺寸100*60仅有单品条码;

LZ7050:尺寸70*50,L6040,仅有单品条码;尺寸60*40,仅有单品条码


madeInString选填
不填写标签上不展示Made In China

 

请求示例(产品编码支持1个或者多个)

 

{

    "action":"ims.item.generateSingleItemLabelsNoMerged",

    "app_key":"rebecca",

    "data":{

        "madeIn":"Made in China",

        "labelType":"LZ10060",

        "singleItemLabelVos":[

            {

                "merchandiseCode":"LCD-IP4S-02",

                "specification":"",

                "number":"1"

            }

        ]

    },

    "format":"json",

    "language":"zh_CN",

    "platform":"SELLERERP",

    "sign":"00000000000000000000000000000000",

    "sign_method":"md5",

    "timestamp":"2015-06-16 00:19:26",

    "version":"1.0"

}


返回结果示例 

{
    "code":"0",
    "data":[{
        "label":"JVBERi0xLjQKJeLjz9MKNCAwIG9iago8PC9UeXBlL1hPYmplY3QvQ29sb3JTcGFjZVsvSW5kZXhlZC9EZXZpY2VSR0IgMjU1KAAAAIAAAACAAICAAAAAgIAAgACAgICAgPwEBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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wMDAwMTM0MSAwMDAwMCBuIAowMDAwMDAxNjQzIDAwMDAwIG4gCjAwMDAwMDE3MzEgMDAwMDAgbiAKMDAwMDAwMDAxNSAwMDAwMCBuIAowMDAwMDAwOTY5IDAwMDAwIG4gCjAwMDAwMDI5NTggMDAwMDAgbiAKMDAwMDAwMTYwOCAwMDAwMCBuIAowMDAwMDAzMDIxIDAwMDAwIG4gCjAwMDAwMDMwNzUgMDAwMDAgbiAKMDAwMDAwMzEwNyAwMDAwMCBuIAowMDAwMDAzMjExIDAwMDAwIG4gCnRyYWlsZXIKPDwvUm9vdCAxMCAwIFIvSUQgWzw1NmI1NDc5NzcwYTUyMDQ1NDI2YTcyMzgwY2EzMjJiZT48M2FmMGUwZjEzMjUzMDE4NWRmZjY2MWFmOTc4YzhkZDI+XS9JbmZvIDExIDAgUi9TaXplIDEyPj4Kc3RhcnR4cmVmCjMzNzIKJSVFT0YK",
        "singleItemSerno":"S999900000003492187"
    }]
,
    "msg":"操作成功",
    "@xmlns":"http://openapi.sandbox.winit.com.cn/openapi/service"
}

返回参数说明

 

正确的返回结果:查询成功。

名称

类型

说明

singleItemSerno

String()

单品条码

label

String()

bese64标签字符串(PDF)

 

错误的返回结果:查询失败