API
创建海外仓出库单(确认中)-新接口
更新时间: 2020-07-29 15:56:08 访问次数:722
Document
接口说明

本接口可以创建出库单并提交至“确认中”状态。(不支持智能推荐)
"确认中"的出库单无法修改
"确认中"的订单作废后,仓库需要时间确认是否允许作废,所以提交“作废”订单后,需要再次查询订单详情,订单状态变更为 已作废(VO)才算作废成功。

接口英文名称

wh.outbound.createSubmittedOrder

使用场景

使用本接口创建状态为“确认中”的出库单,
支持创建标准出库单、自提出库单、销毁出库单、商品下架
每次请求仅支持创建一个出库单。
"确认中"的订单作废后,仓库需要时间确认是否允许作废,所以提交“作废”订单后,需要再次查询订单详情,订单状态变更为 已作废(VO)才算作废成功。

备注

  • 一、特殊尾程派送方式参数赋值说明
    1.尾程派送服务DHL 快递柜(DHL服务介绍收件人地址填写
    请按照以下要求进行填写:
    收件人地址为Packstation(DHL全自助式24小时自提柜)、Postfiliale(DHL和DE POST专营自提点)、Paketshop(当地带有DHL便捷服务的商店)
    地址信息 填写要求 示例
    收件人街道1(address1) Postnumber+Packstation/ Paketshop/Postfiliale+ 3位数代码 1234567890Packstation101
    收件人街道2(address2) 不填写任何信息
    门牌号 填写3位数代码或者“0”(示例: 3位数代码:101,若填“0”,系统将会进行自动截取3位数代码) 0
    邮箱 非DHL注册用户使用Paketshop/Postfiliale服务必须填写邮箱 test@12234.com

    调用示例请参考入参(1.使用DHL Paken Service的标准海外仓出库 )。
    2.尾程派送使用追踪守护服务(增值服务)追踪服务介绍
    尾程派送追踪服务为增值服务,非必填入参,如需入参,请按照以下要求进行填写:
    VASList
    Array
    O 增值服务列表,根据选择的物流渠道是否支持增值服务(通过接口queryDeliveryWay出参serviceCode的value就为增值服务,当非空是,可根据需要购买或者放弃购买增值服务

  • 投保金额为限制1-10000,货币单位为CNY
  • 3.德国“门牌号“[doorplateNumbers]强制校验门牌号填写
    门牌号区分为:必填、非必填、不可填
    是否填写门牌号请根据价卡中每个尾程派送方式的要求来填写
    门牌号填写类型 填写要求 示例
    必填 根据价卡要求的渠道,门牌号字段必须填写,否则报错无法下单 17
    非必填 根据价卡要求的渠道,门牌号字段非必须填写,无论是否填写将不会影响下单
    不可填 根据价卡要求的渠道,门牌号字段不可填写,否则报错无法下单
  • 二、规避重复发货风险
    创建出库单时可以通过字段“repeatable”控制是否允许卖家订单号重复。
  • 三、自提出库单需要区分【卖家自提】或者【第三方物流公司】
    (1)卖家自提:订单归属方——卖家,自行前往winit仓库进行自提
    (2)第三方物流公司自提:订单归属方——卖家,委托第三方物流公司前往winit仓库进行自提。
    入参说明:
           卖家自提:deliverySide 必填 PL
           第三方物流公司自提:deliverySide :必填 CY,
                                               thirdPartyLogistics:必填,请填写物流公司名称 
                                               trackingNoBOL:选填

  • 目前自提出库的winit物流产品如下
    物流渠道编码
    (winitProductCode)
    物流渠道名称
    (deliveryWay)
    OSF820823 VAS - Self pick up service
    OSF820856 Self pick up servicee
    OSF821973 VAS - Self pick up service(palletzation)

    只有使用海外仓出库为自提出库的物流渠道时为必填,其他物流渠道非必填

    上线日期:2019年7月12日

  • 五、eBay返利政策要求

    一组ebayID(ebaySellerID)、TransacitonID、itemID只能返利一次
    winit禁止不同的收件人填写相同的transaction ID和item ID号.

请求说明
URL http://openapi.winit.com.cn/openapi/service
接口测试 http://openapi.sandbox.winit.com.cn/openapi/service
验证方法 Token,md5
格式 json
字符编码 UTF-8
http请求方式 http
请求数限制 默认每分钟1000,有需要可申请加大。
请求入参

名称 类型 必填 说明 示例
winitProductCode String(32) Y 最后一公里派送方式编码
物流渠道,可查询通过接口queryDeliveryWaywinitProductCode
OSF810556
warehouseCode String(40) Y 仓库编码
仓库编码,通过接口queryWarehouse对应的warehouseCode
或者通过在页面物流代码,输入万邑通账号和token得到仓库代码
DE0001
shipperOrderNo String(40) N 卖家订单号
isRepeat String(1) Y 卖家订单号shipperOrderNo是否允许重复
Y:允许重复
N:不允许重复
推荐填写N
inventoryServiceType String() N 库存类型
2B:ToB整箱出库(必须大写)
2C:ToC销售出库(必须大写)
当为空时,默认为2C销售出库
如需2B整箱出库,请联系商务开通权限以及安排业务流程培训,未开通权限之前入参无效
storeType String(100) N 电商平台类型
ebay:销售订单平台来源于ebay
Amazon:销售平台来源于亚马逊
wish:销售平台来源于wish
Other:其他销售平台
eBaySellerId String(256) N 当前Transaction对应的eBay Seller ID
eBay Seller ID为选填,若为eBay订单请务必准确填写eBaySellerID,eBay TransactionID ,eBayItemID,这将影响到eBay返利政策。
eBay API参考:
eBay API: GetOrders
Paramater: OrderArray.Order.SellerUserID
testuser_houlingzhong
eBayBuyerId String(256) N 当前Transaction对应的eBay Buyer ID。
eBay Buyer ID为选填。
eBay API参考:
eBay API: GetOrders
Paramater: OrderArray.Order.BuyerUserID
lilazngirl2303
ebayID String(128) 单据类型
eBay的订单号,若为eBay订单请务必准确填写eBaySellerID,eBay TransactionID ,eBayItemID,这将影响到eBay返利政策。
使用eBay的CompleteSale接口时,OrderID可以用于定位一笔订单。
VATNo String(128) O 卖家VAT号
从英国出库的订单,要求填写注册VAT(万邑联-个人中心-服务设置- 出口商/进口商管理-查看-VAT信息-VAT),当卖家有多个VAT时,可以指定出库单的VAT,否则由系统自动分配VAT

buyerCompany String(100) N 收件人公司名称
美国DGM渠道收件人公司为必填,要求为英文收件人公司(详细要求见价卡)
万邑通
receiverCountry String(50) Y 收件人国家名称
1.可填写英文全称
2.可填写ISO国家二字码
DE
receiverCity String(50) Y 城市 Herten NRW
receiverState String(50) Y 收件人州名称
receiverName String(60) Y 收件人姓名
收件人姓名不可为空
huangxh
receiverPostcode String(50) Y 邮政编码 45701
receiverHouseNo String(60) O 门牌号
根据物流渠道不同,门牌号需要必填、非必填 、不可填
0
receiverAddressLine1 String(100) Y 收件人街道1
根据物流渠道不同,填写的要求不相同
817995256 Postfiliale 560
receiverAddressLine2 String(100) N 收件人街道2
根据物流渠道不同,填写的要求不相同
receiverPhone String(128) Y 收件人电话 13434740696
receiverEmail String(50) N 收件人电子邮箱 xiaohong.huang@winit.com.cn
merchandiseList Array 出库商品列表,以下为子节点
--|merchandiseCode String(64) Y 商品编码
winit注册的商品编码(SKU)
--|specification String(64) N 规格
如果商品在winit注册时填写了规格,则为必填项,否则无法准确定位您注册的产品。
如果您在注册商品时没有填写该字段,则在入参中去掉‘Specification’字段。
--|quantity Integer(16) Y 要发货的某个商品的单品数量。数量必须>0。
--|eBayTransactionId Sring(64) N eBay交易ID选填,如果填写,则eBay TransactionID,eBay TransactionID,eBaySellerID三个值都需要填写,若不填写eBay TransactionID则三个值都不填写。 eBay上使用TransactionID+ItemID标识一个唯一的交易,一个OrderID可以对应一个或多个交易。 当一笔交易的拍卖方式为‘BID’时,此笔交易的TransactionID为‘0’。 eBay API参考: eBay API: GetOrders Paramater: OrderArray.Order.TransactionArray.Transaction.TransactionID
--|eBayItemId Sring(64) N eBay ItemID
eBay ItemID为选填,若为eBay订单请务必准确填eBaySellerID,eBay TransactionID ,eBayItemID,这将影响到eBay返利政策。
eBay上使用描述一个刊登的唯一标识。一个刊登可以产生多笔交易,但是ItemID是唯一不变的。
eBay API参考:
eBay API: GetOrders
Paramater: OrderArray.Order.TransactionArray.Transaction.Item.ItemID
--|eBayItemId Sring(64) N eBay ItemID
eBay ItemID为选填,若为eBay订单请务必准确填写eBaySellerID,eBay TransactionID ,eBayItemID,这将影响到eBay返利政策。
eBay上使用描述一个刊登的唯一标识。一个刊登可以产生多笔交易,但是ItemID是唯一不变的。
eBay API参考:
eBay API: GetOrders
Paramater: OrderArray.Order.TransactionArray.Transaction.Item.ItemID
--|merchandiseGrade Sring(128) N 商品等级
GOOD:良品(必须大写)
DEFECTIVE:不良品(必须大写)
当卖家开启商品等级(良品/不良品)的时候填入
如需商品等级管理,请联系商务开通权限以及安排业务流程培训,未开通权限之前入参无效
--|ownerCode Sring(128) N 货主编码
当卖家开启货主管理的时候填入
如需根据货主管理商品,请联系商务开通权限以及安排业务流程培训,未开通权限之前入参无效
pickUpSupplier String() O 提货方
PL代表卖家自提
CY代表第三方物流公司自提
仅在使用自提出库的物流产品时必填,若不入参请去除该字段
logisticsSupplierName String(100) O 第三方物流公司名称
当提货方(pickUpSupplier)为:CY时必填
当提货方为(pickUpSupplier):PL时去除该字段
selfPickTrackingOrBOLNo String(50) N 第三方物流公司快递单号或BOL
当提货方(pickUpSupplier)为:CY时选填 
当提货方(pickUpSupplier)为:PL时去除该字段
VASList
Array
O 增值服务列表,根据选择的物流渠道是否支持增值服务(通过接口queryDeliveryWay出参serviceCode的value就为增值服务,当非空是,可根据需要购买或者放弃购买增值服务
--|serviceCode
Array

Y
增值服务编码
可查询通过接口queryDeliveryWay查询出参中的serviceCode
OSF777778
--|attrList Array Y 增值服务选项,以下为子节点
--|--|attrCode
String()
Y 增值服务属性code
可查询通过接口queryDeliveryWay查询出参中的attrCode
目前暂时是ISA

投保金额ISA的最小值:1,最大是10000
ISA
--|--|attrValue String(20) Y 增值服务值
投保金额ISA的最小值:1,最大是10000
100
请求示例
1.使用DHL Paken Service的标准海外仓出库 
{
    "action": "wh.outbound.createSubmittedOrder",
    "app_key": "rebecca",
    "client_id": "ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
    "data": {
        "winitProductCode": "OSF810556",
        "warehouseCode": "DE0001",
        "shipperOrderNo": "testforpaketservice",
        "isRepeat": "Y",
        "inventoryServiceType": "",
        "storeType": "ebay",
        "eBaySellerId": "testuser_houlingzhong",
        "eBayBuyerId": "lilazngirl2303",
        "VATNo": "",
        "buyerCompany": "万邑通 ",
        "receiverCountry": "DE",
        "receiverCity": "Herten NRW",
        "receiverState": "",
        "receiverName": "huangxh",
        "receiverPostcode": "45701",
        "receiverHouseNo": "0",
        "receiverAddressLine1": "817995256 Postfiliale 560",
        "receiverAddressLine2": "",
        "receiverPhone": "13434740696",
        "receiverEmail": "xiaohong.huang@winit.com.cn",
        "merchandiseList": [
            {
                "merchandiseCode": "auto_sku_005",
                "specification": "",
                "quantity": "1",
                "eBayTransactionId": "",
                "eBayItemId": "",
                "merchandiseGrade": "",
                "ownerCode": ""
            }
        ],
        "pickUpSupplier": "",
        "logisticsSupplierName": "",
        "selfPickTrackingOrBOLNo": "",
        "VASList": [
            {
                "serviceCode": "OSF777778",
                "attrList": [
                    {
                        "attrCode": "ISA",
                        "attrValue": "50"
                    }
                ]
            }
        ]
    },
    "format": "json",
    "language": "zh_CN",
    "platform": "OWNERERP",
    "sign": "8E46367BC73479683B439F49C085D6B4",
    "sign_method": "md5",
    "timestamp": "2014-07-30 11:03:48",
    "version": "1.0",
    "client_sign": "648B6128B24ACE078D19736F364CC6E1"
}
	   2.带有增值服务(追踪守护)的入参示例 
{
    "action": "wh.outbound.createSubmittedOrder",
    "app_key": "rebecca",
    "client_id": "ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
    "data": {
        "warehouseCode": "US0001",
        "orderType": "OSF81",
        "receiverPostcode": "32066",
        "receiverCountry": "US",
        "shipperOrderNo": "",
        "pickUpSupplier": "PL",
        "logisticsSupplierName": "123",
        "selfPickTrackingOrBOLNo": "123",
        "inventoryServiceType": "2C",
        "isEbay": "Y",
        "isRepeat": "Y",
        "eBaySellerId": "testuser_houlingzhong",
        "eBayBuyerId": "lilazngirl2303",
        "VATNo": "",
        "VASList": [
            {
                "serviceCode": "OSF777778",
                "attrList": [
                    {
                        "attrCode": "ISA",
                        "attrValue": "50"
                    }
                ]
            }
        ],
        "merchandiseList": [
            {
                "merchandiseCode": "auto_sku_005",
                "specification": "",
                "quantity": "1",
                "eBayTransactionId": "",
                "eBayItemId": ""
            }
        ],
        "winitProductCode": "OSF810595",
        "invoiceUrl": "",
        "buyerCompany": "万邑通 ",
        "receiverName": "huangxh",
        "receiverHouseNo": "",
        "receiverAddressLine1": "Unit 8/39 Hill Road",
        "receiverAddressLine2": "",
        "receiverCity": "mayo",
        "receiverState": "fl",
        "receiverPhone": "13434740696",
        "receiverEmail": "xiaohong.huang@winit.com.cn"
    },
    "format": "json",
    "language": "zh_CN",
    "platform": "OWNERERP",
    "sign": "FE51D582CFFB5F1C6C7F786735D89C7F",
    "sign_method": "md5",
    "timestamp": "2014-07-30 11:03:48",
    "version": "1.0",
    "client_sign": "8309DBFCD4CF7236AF4F9E31321BD1FE"
}
3.门牌号填写示例标准海外仓出库单 
{
    "action": "wh.outbound.createSubmittedOrder",
    "app_key": "rebecca",
    "client_id": "ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
    "data": {
        "warehouseCode": "DE0001",
        "orderType": "OSF81",
        "receiverPostcode": "45701",
        "receiverCountry": "DE",
        "shipperOrderNo": "testforpaketservice",
        "pickUpSupplier": "",
        "logisticsSupplierName": "",
        "selfPickTrackingOrBOLNo": "",
        "inventoryServiceType": "",
        "isEbay": "Y",
        "isRepeat": "Y",
        "eBaySellerId": "testuser_houlingzhong",
        "eBayBuyerId": "lilazngirl2303",
        "VATNo": "",
        "merchandiseList": [
            {
                "merchandiseCode": "auto_sku_005",
                "specification": "",
                "quantity": "1",
                "eBayTransactionId": "",
                "eBayItemId": ""
            }
        ],
        "winitProductCode": "OSF810556",
        "invoiceUrl": "",
        "buyerCompany": "万邑通 ",
        "receiverName": "huangxh",
        "receiverHouseNo": "560",
        "receiverAddressLine1": "817995256 Postfiliale 560",
        "receiverAddressLine2": "",
        "receiverCity": "Herten NRW",
        "receiverState": "",
        "receiverPhone": "13434740696",
        "receiverEmail": "xiaohong.huang@winit.com.cn"
    },
    "format": "json",
    "language": "zh_CN",
    "platform": "OWNERERP",
    "sign": "C4DBE9271FE60498D2E2C141FA2C9835",
    "sign_method": "md5",
    "timestamp": "2014-07-30 11:03:48",
    "version": "1.0",
    "client_sign": "F03028D73D07B777C7498E0916B865BD"
}
4.自提出库单 
{
    "action": "wh.outbound.createSubmittedOrder",
    "app_key": "rebecca",
    "client_id": "ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
    "data": {
        "warehouseCode": "US0001",
        "orderType": "OSF82",
        "receiverPostcode": "45701",
        "receiverCountry": "DE",
        "shipperOrderNo": "testforselfpickup",
        "pickUpSupplier": "CY",
        "logisticsSupplierName": "local UPS",
        "selfPickTrackingOrBOLNo": "",
        "inventoryServiceType": "",
        "isEbay": "Y",
        "isRepeat": "Y",
        "eBaySellerId": "testuser_houlingzhong",
        "eBayBuyerId": "lilazngirl2303",
        "VATNo": "",
        "merchandiseList": [
            {
                "merchandiseCode": "auto_sku_005",
                "specification": "",
                "quantity": "1",
                "eBayTransactionId": "",
                "eBayItemId": ""
            }
        ],
        "winitProductCode": "OSF820823",
        "invoiceUrl": "",
        "buyerCompany": "万邑通 ",
        "receiverName": "huangxh",
        "receiverHouseNo": "560",
        "receiverAddressLine1": "817995256 Postfiliale 560",
        "receiverAddressLine2": "",
        "receiverCity": "Herten NRW",
        "receiverState": "",
        "receiverPhone": "13434740696",
        "receiverEmail": "xiaohong.huang@winit.com.cn"
    },
    "format": "json",
    "language": "zh_CN",
    "platform": "OWNERERP",
    "sign": "F4D68658878BC8B9AA9CD9A6D4341E20",
    "sign_method": "md5",
    "timestamp": "2014-07-30 11:03:48",
    "version": "1.0",
    "client_sign": "BE76556C25C7EF6EE8768F89A6142FDC"
}
5.销毁出库单 
{
    "action": "wh.outbound.createSubmittedOrder",
    "app_key": "rebecca",
    "client_id": "ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
    "data": {
        "warehouseCode": "US0001",
        "orderType": "OSF83",
        "receiverPostcode": "45701",
        "receiverCountry": "DE",
        "shipperOrderNo": "testforselfpickup",
        "pickUpSupplier": "CY",
        "logisticsSupplierName": "local UPS",
        "selfPickTrackingOrBOLNo": "",
        "inventoryServiceType": "",
        "isEbay": "Y",
        "isRepeat": "Y",
        "eBaySellerId": "testuser_houlingzhong",
        "eBayBuyerId": "lilazngirl2303",
        "VATNo": "",
        "merchandiseList": [
            {
                "merchandiseCode": "auto_sku_005",
                "specification": "",
                "quantity": "1",
                "eBayTransactionId": "",
                "eBayItemId": ""
            }
        ],
        "winitProductCode": "OSF830859",
        "invoiceUrl": "",
        "buyerCompany": "万邑通 ",
        "receiverName": "huangxh",
        "receiverHouseNo": "560",
        "receiverAddressLine1": "817995256 Postfiliale 560",
        "receiverAddressLine2": "",
        "receiverCity": "Herten NRW",
        "receiverState": "",
        "receiverPhone": "13434740696",
        "receiverEmail": "xiaohong.huang@winit.com.cn"
    },
    "format": "json",
    "language": "zh_CN",
    "platform": "OWNERERP",
    "sign": "BC9EFBA4B1D45E4EE5E65D1D7B385D2E",
    "sign_method": "md5",
    "timestamp": "2014-07-30 11:03:48",
    "version": "1.0",
    "client_sign": "54D2914BFCC36485028FAA8043F04A49"
}
6.带有收件人公司的出库单 
{
    "action": "wh.outbound.createSubmittedOrder",
    "app_key": "rebecca",
    "client_id": "ODJKMDU1YZCTYJQ5YY00ZWZLLTK5N2QTOWY4MZI5OGMWNDG2",
    "data": {
        "warehouseCode": "US0001",
        "orderType": "OSF81",
        "receiverPostcode": "32066",
        "receiverCountry": "US",
        "shipperOrderNo": "buyerCompany",
        "buyerCompany": "万邑通 ",
        "pickUpSupplier": "",
        "logisticsSupplierName": "",
        "selfPickTrackingOrBOLNo": "",
        "inventoryServiceType": "",
        "isEbay": "Y",
        "isRepeat": "Y",
        "eBaySellerId": "testuser_houlingzhong",
        "eBayBuyerId": "lilazngirl2303",
        "VATNo": "",
        "merchandiseList": [
            {
                "merchandiseCode": "auto_sku_005",
                "specification": "",
                "quantity": "1",
                "eBayTransactionId": "",
                "eBayItemId": ""
            }
        ],
        "winitProductCode": "OSF810595",
        "invoiceUrl": "",
        "receiverName": "huangxh",
        "receiverHouseNo": "",
        "receiverAddressLine1": "3647 Old State Route 32",
        "receiverAddressLine2": "",
        "receiverCity": "Mayo",
        "receiverState": "fl",
        "receiverPhone": "13434740696",
        "receiverEmail": "xiaohong.huang@winit.com.cn"
    },
    "format": "json",
    "language": "zh_CN",
    "platform": "OWNERERP",
    "sign": "95BB17F6AEE6D3FD6026B1818173BFA2",
    "sign_method": "md5",
    "timestamp": "2014-07-30 11:03:48",
    "version": "1.0",
    "client_sign": "1BBEFE32390EA66E3E3D038745BE0D17"
}
 
     
返回出参
名称 类型 必填 说明 示例
orderNo String(80) Y 出库订单号 0
splitType
String() BW:仓群间拆单
WW:仓群内拆单
NONE:不拆单

orderNoList
Array Y 出库订单号列表,拆单时返回多个

返回参数说明 正确的返回结果:出库单号,出库单状态。 错误的返回结果:错误码,错误信息

返回示例
{
    "code": "0",
    "msg": "操作成功",
    "data": {
        "orderNo": "WO0000012327",
        "orderNoList": [
            "WO0000012327"
        ],
        "splitType": "NONE"
    }
}