API
查询进/出口供应商
更新时间: 2017-11-22 16:46:29 访问次数:2083
接口说明

进口商、出口商查询,可查询卖家下入库单时,可使用的进口商、出口商

接口英文名称

winit.ums.getVendorInfo

使用场景

1.通过国家二字码查询进口商,用于卖家进行入库操作的进口商
2.通过国家二字码查询出口商,用于卖家进行入库操作的出口商

备注

请求说明
URL http://openapi.winit.com.cn/openapi/service
接口测试 http://openapi.sandbox.winit.com.cn/openapi/service
验证方法 Token,md5
格式 json
字符编码 UTF-8
http请求方式 http
请求数限制 默认每分钟1000,有需要可申请加大。
请求入参
名称 类型 必填 说明 示例
countryCode String(50) Y 国家编码,通用国家二字编码
查询出口供应商时使用CN,进口供应商时请使用目的仓所在的国家简码
US
vendorType String(50) Y 类型:IOR-进口商,EOR-出口商 IOR
请求示例
1.查询出口商:
{ "action": " winit.ums.getVendorInfo", "app_key": "rebecca", "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign":"6DB705567AE0BF17EE783D458B611C3C", "data": { "countryCode": "DE", "vendorType": "EOR" }, "format": "json", "language": "zh_CN", "platform": "OWNERERP", "sign": "9BE673AF23FB0970A9E8DC97CE47786F", "sign_method": "md5", "timestamp": "2016-09-09 10:46:04", "version": "1.0" }
2.查询进口商:
{ "action": " winit.ums.getVendorInfo", "app_key": "rebecca", "client_id":"ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2", "client_sign":"C7B6B7EF9C95959AD7F42CF99C1874EA", "data": { "countryCode": "US", "vendorType": "IOR" }, "format": "json", "language": "zh_CN", "platform": "OWNERERP", "sign": "BC06728B928276AA2D70D1F2DEA4F1EE", "sign_method": "md5", "timestamp": "2016-09-09 10:46:04", "version": "1.0" }

                            
返回出参
名称 类型 必填 说明 示例
isWinit String(10) Y 是否Winit供应商:Y-是,N-否 0
vendorCode String(50) Y 进口商编码
vendorName String(50) Y 进口商名称
返回示例
1.出口商出参:
{ "code": "0", "msg": "操作成功", "data": [ { "isWinit": "Y", "vendorName": "推荐出口商", "vendorCode": "ER002" }, { "isWinit": "N", "vendorName": "测试出口商1", "vendorCode": "ER0000000101" }, { "isWinit": "N", "vendorName": "TestImporter", "vendorCode": "ER0000001405" } ] }
2.进口商出参:
{ "code": "0", "msg": "操作成功", "data": [ { "isWinit": "Y", "vendorName": "推荐进口商", "vendorCode": "RIR004" }, { "isWinit": "N", "vendorName": "US-TEST\t测试进口商", "vendorCode": "IR0000000586" }, { "isWinit": "N", "vendorName": "1234567890123456789012345678901234567890123456789012345678901234567890", "vendorCode": "IR0000001997" } ] }