# 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

# Request Parameter Sample

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

# Return Package Example

    "errcode": 0,

# 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