# Delivery of orders

# Interface call request specification

Specify when adding an orderdelivery_type:1: Normal express delivery, 2: There is no need for express delivery, 3: Offline distribution, 4: User mention.

For orders without logistics, you can not passdelivery_list

delivery_idPlease refer to the data of the express company list interface, can not be customized, if the corresponding does not, please upload"delivery_id":"OTHERS"

When finish_all_When delivery = 1, the order status is transferred from 20 (pending delivery) to 30 (awaiting delivery).

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

# Request Parameter Sample

{
    "order_id": 123456,,
    "out_order_id": 'xxxxx';
    "openid": "oTVP50O53a7jgmawAmxKukNlq3XI",
    "finish_all_delivery": 0,    // 0: Not yet issued, 1: Issued
    "delivery_list": 
    [
        {
            "delivery_id": "SF",
            "waybill_id": "23424324253"
        }
    ]
}

# Return Package Example

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

# Request Parameter Dxplaination

parameter type Is it necessary to fill out Introductions
order_id number no Order ID
out_order_id string no Merchant custom order ID, and order_id Either way,
openid string yes User's openid
finish_all_delivery number yes Delivery completion mark bit, 0: Not yet issued, 1: Issued
delivery_list object array delivery_Required when type = 1 Express Information
delivery_list[].delivery_id string delivery_Please fill in the form below. Express company ID, obtained by getting the list of express companies
delivery_list[].waybill_id string delivery_Please fill in the form below. Tracking number

# Return parameter specification

parameter type Introductions
Errcode number Error code
errmsg string Error message
The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation. Tap to report.