# Delivery of orders

The delivery mode is selected by the user when placing an order, and the delivery method has been default, so there is no need to pass in the parameters of delivery mode.

If the order contains more than one item of the same kind(Same product_Id and same sku_id)These goods must be sent together in the same package

Goods that have been completed after sale cannot be shipped

# Interface call request specification

Http request method: POST
https://api.weixin.qq.com/product/delivery/send?access_token=xxxxxxxxx

# Request Parameter Sample

{
    "order_id": 123456,
    "delivery_list": 
    [
        {
            "delivery_id": "1",
            "is_all_product" : true,
            "waybill_id": "23424324253",
            "product_News " : [
              {
                "product_cnt" : 0,
                "product_id" : 0,
                "sku_id" : 0
              }
            ]
        }
    ]
}

# Return Package Example

{
    "errcode": 0,
    "errmsg":"ok",
}

# Request Parameter Dxplaination

parameter type Is it necessary to fill out Introductions
order_id number yes Order id
delivery_list[].delivery_id string no Express company id, get through the list of express companies, express delivery required, the same city, the line from the need to fill out
delivery_list[].waybill_id string no Express single number, express delivery required, the same city, the line from the need to fill out
delivery_list[].is_all_product bool no Does the delivery order contain all the goods in the order (true if not filled in, false if subcontracted delivery)
delivery_list[].product_infos[].product_cnt number no Number of commodities(is_all_Required when product = false)
delivery_list[].product_infos[].product_id number no Goods id (is_all_Required when product = false)
delivery_list[].product_infos[].sku_id number no Goods sku(is_all_Required when product = false)

# Return parameter specification

parameter type Introductions
Errcode number Error code
errmsg string Error message

# Return code

Return code Type of error
-1 System exception
-2 Token is too long
9401020 Wrong parameter
9401021 Call the api without permission
108009 Orders are not allowed to ship & confirm receipt
109000 Delivery failure
109001 Already shipped
109002 No merchandise with you
101100 Order current status does not allow delivery
800001 The same goods are not delivered in the same package