# Get order details

# Interface call request specification

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

# Request Parameter Sample

{
    "order_id":32423523451235145
}

# Return Package Example

{
    "errcode": 0,
    "errmsg":"ok",
    "order": 
    {
        "order_id": 12123121332
        "out_order_id": "faefawefweafawe",
        "status": 20,
        "craete_time": "2020-03-25 13:05:25",
        "update_time": "2020-03-25 14:05:25",
        "order_detail " :
        {
            "product_Infos ":
            [
                {
                    "product_id": 234245,
                    "sku_id":23424,
                    "sku_cnt": 10,
                    "on_aftersale_sku_cnt": 10,
                    "finish_aftersale_sku_cnt": 0,
                    "Title": "Fitness Ring,"
                    "thumb_img": " http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg",
                    "sku_attrs": 
                    [
                       {
                           "attr_key": "Choose a color,"
                           "attr_value": "Red and blue host."
                       }
                    ],
                    "beats_price": 2000
                },
                ...
            ]
            "pay_info":
            {
                "pay_method": "WeChat Pay"
                "prepay_id": "42526234625",
                "transaction_id": "131456479687",
                "prepay_time": "2020-03-25 14:04:25",
                "pay_time": "2020-03-25 14:05:25"
            },
            "price_info":
            {
                "product_price": 20000,
                "order_price": 10500,
                "freight": 500,
                "discounted_price": 10000,
                "is_discounted": true
            }
            "delivery_info":
            {
                "delivery_method": "Express,"
                "delivery_time": "2020-03-25 16:05:25",
                "delivery_product_info":
                {
                    "waybill_id": "134654612313",
                    "delivery_id": "STO",
                    "product_Infos ":
                    [
                        {
                            "product_id": 234245,
                            "sku_id":23424,
                            "product_cnt":1
                        }
                    ]
                }
                "address_info":
                {
                    "user_Name ":" Mr. Chen " ,
                    "postal_code": "2435245",
                    "province_name": "Guangdong,"
                    "city_name": "Guangzhou,"
                    "county_name": "Haizhu District"
                    "detail_info": "Tai Tong"
                    "national_code": "234234",
                    "tel_number": "24534252"
                },
                "express_fee":
                [
                    {
                        "shipping_method": "ShippingMethod_Express",
                        "distance":0,
                    }
                ],
                "offline_delivery_time":0,
                "offline_pickup_time":0,
                "ship_done_time":"1620738080"
            }
        },
        "aftersale_detail " : 
        {
            "aftersale_order_list": [
                {
                    "aftersale_order_id": 1234
                }
            ],
            "on_aftersale_order_cnt": 1
        },
        "openid": 'xxxxx';
        "ext_info":
        {
            "customer_notes": "Fat Shun Fung"
            "merchant_notes": "Insufficient stock, cancel"
        }
    }  
}

# Request Parameter Dxplaination

parameter type Is it necessary to fill out Introductions
order_id number yes Order ID, available from the Get Orders list

# Return parameter specification

parameter type Introductions
Errcode number Error code
errmsg string Error message
order.order_id number Order ID
order.out_order_id string External Order id
order.status number Status of goods
order.create_time string Create time
order.update_time string Update time
order.order_detail.product_infos[].product_id number Mini Store Internal Product ID
order.order_detail.product_infos[].sku_id number Mini Store interior skuID
order.order_detail.product_infos[].thumb_img string sku small diagram
order.order_detail.product_infos[].sku_cnt number Number of sku
order.order_detail.product_infos[].on_aftersale_sku_cnt number Is after-sales/Number of sku in refund process
order.order_detail.product_infos[].finish_aftersale_sku_cnt number After-sales completed/Number of sku refunded
order.order_detail.product_infos[].sale_price number Selling Price (Unit: Cents)
order.order_detail.product_infos[].sku_attrs[].attr_key string Attribute key (for attribute customization)
order.order_detail.product_infos[].sku_attrs[].attr_value string Property values (for property customization)
order.order_detail.pay_info.pay_method string Payment method (currently only "WeChat Pay")
order.order_detail.pay_info.prepay_id string Pre-payment ID
order.order_detail.pay_info.transaction_id string Payment Order Number
order.order_detail.pay_info.prepay_time string Time of advance payment
order.order_detail.pay_info.pay_time string Payment Time
order.order_detail.price_info.product_price number Product amount (unit: points)
order.order_detail.price_info.order_price number Order Amount (Unit: Minutes)
order.order_detail.price_info.freight number Freight (in cents)
order.order_detail.price_info.discounted_price number Preferential amount (unit: points)
order.order_detail.price_info.is_discounted bool Is there a discount (false: no discount/True: there is a discount)
order.order_detail.delivery_info.delivery_method string Express (currently only "express")
order.order_detail.delivery_info.delivery_time string Delivery time
order.order_detail.delivery_info.delivery_product_info.waybill_id string Tracking number
order.order_detail.delivery_info.delivery_product_info.delivery_id string Courier company number
order.order_detail.delivery_info.delivery_product_info.product_infos[].product_id number Shipped merchandise store internal merchandise ID
order.order_detail.delivery_info.delivery_product_info.product_infos[].sku_id number Shipped goods store internal skuID
order.order_detail.delivery_info.delivery_product_info.product_infos[].product_cnt number Quantity of goods shipped
order.order_detail.delivery_info.address_info.username string Name of consignee
order.order_detail.delivery_info.address_info.postal_code string postal code
order.order_detail.delivery_info.address_info.province_name string GB receiving address first level address
order.order_detail.delivery_info.address_info.city_name string GB receiving address secondary address
order.order_detail.delivery_info.address_info.county_name string GB Receiving Address Third-level Address
order.order_detail.delivery_info.address_info.detail_info string Detailed shipping address information
order.order_detail.delivery_info.address_info.national_code string Address Country Code
order.order_detail.delivery_info.address_info.Tel_number string Consignee mobile phone number
order.order_detail.delivery_info.express_fee.shipping_method string Distribution mode
order.order_detail.delivery_info.pickup_address.province_name string Address from the first level GB address (from the order to have the information)
order.order_detail.delivery_info.pickup_address.city_name string Address from the second level of GB address (from the order to have this information)
order.order_detail.delivery_info.pickup_address.county_name string Address from the GB third level address (from the order to have the information)
order.order_detail.delivery_info.pickup_address.detail_info string Lift address details (lift orders only have this information)
order.order_detail.delivery_info.pickup_address.house_number string Address Number (This information is only available on order, may be empty)
order.order_detail.delivery_info.pickup_address.Tel_number string From the merchant contact number (from the order only have this information)
order.order_detail.delivery_info.express_fee.distance number Offline from the lift, the city distribution distance
order.order_detail.delivery_info.offline_delivery_time number Offline Delivery Time
order.order_detail.delivery_info.offline_pickup_time number Offline pickup time
order.order_detail.delivery_info.ship_done_time number Delivery completion time
order.aftersale_detail.aftersale_order_list[].aftersale_order_id number After-sales single ID (After-sale interface can be used for inquiry after opening)
order.aftersale_detail.on_aftersale_order_cnt number Number of sales in the process
order.openid string User openid for logistics assistant interface
order.ext_info.customer_notes string User Notes
order.ext_info.merchant_notes string Merchant Remarks

# Enumerations-shipping_method

Enumeration value describe
"ShippingMethod_Express" express delivery
"ShippingMethod_SameCity" Same city distribution
"ShippingMethod_Pickup" Self mention

# Enumerate - status

Enumeration value describe
10 Outstanding
15 Group activities Pay success Waiting for the group
16 Pay success Waiting for the merchant to receive orders (Same city distribution Offline self-lifting)
17 Successful payments pending write-off
20 Awaiting shipment
21 Partial shipment
30 Pending receipt
100 complete
200 After the sale of all goods, the order is cancelled
250 User Active Cancellation or Pending Payment Overtime Cancellation

# Return code

Return code Type of error
-1 System exception
-2 Token is too long
9401020 Wrong parameter