API
查询进/出口供应商
更新时间: 2019-10-16 20:23:37 访问次数:5460
接口说明

通过国家二字码查询进出口商,用于在创建入库单时填写进出口商

请求说明
URL https://openapi.winit.com.cn/openapi/service
接口测试 https://openapi.sandbox.winit.com.cn/openapi/service
接口名

winit.ums.getVendorInfo

验证方法 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-否
N
vendorCode String(50) Y 进出口商编码 IR0000000586
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" } ] }