# Get order details

# Interface call request specification

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

# Request parameters

    "order_id": 123455,
    "out_order_id": 'xxxxx';
    "openid": "oTVP50O53a7jgmawAmxKukNlq3XI"

# Return Package Example

    "errcode": 0,
        "order_id": 123455,
        "out_order_id": 'xxxxx';
        "status": 20,
        "path": "/pages/order.html?out_order_id=xxxxx", 
        "order_detail " :
              	"sharer_openid": "SHARER_OPENID"  
            "product_Infos ":
                    "out_product_id": "12345",
                    "product_cnt": 10,
                    "sale_price": 200,
                    "path": "pages/productDetail/productDetail?productId=2176180",
                    "title": "Title,"
                    "head_image": " http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg",
                    "real_price": 200
                "pay_method": "WeChat Pay"
                "prepay_id": "42526234625",
                "prepay_time": "2020-03-25 14:04:25",
                "transaction_id": "131456479687",   
                "pay_time": "2020-03-25 14:05:25",
                "pay_method_type": 0
                "order_price": 1600,
                "freight": 500,
                "discounted_price": 1000,
                "additional_price": 100,
                "additional_remarks": "Taxes and fees"
            "delivery_detail " :      // This field must be adjusted to the shipping interface
                "delivery_type": 1,
                "finish_all_delivery": 1,
                        "waybill_id": "SFXXXX",
                        "delivery_id": "SF"

# Request Parameter Dxplaination

parameter type Required Required Introductions
order_id number(uint64) yes Order id on WeChat (Choose one of the two order id)
out_order_id string yes Merchant Custom Order ID
openid string yes User's openid

# Return parameter specification

parameter type Introductions
Errcode number Error code
errmsg string Error message
order.order_id number(uint64) Trading Component Platform Order ID
order.out_order_id string Merchant Custom Order ID
order.status number Order Status
order.path string The page path of the order, for the micro-channel side order center jump
order.order_detail.promotion_info.promoter_id string Promoter Unique ID
order.order_detail.promotion_Info.finder_nickname string Promotional Video Number Nickname
order.order_detail.sharer_info.sharer_openid string Sharing openid
order.order_detail.product_infos[].out_product_id string Custom Product ID
order.order_detail.product_infos[].out_sku_id string Merchant custom product skuID, fill-in string if the product_No sku under id.
order.order_detail.product_infos[].product_cnt number Number of purchases
order.order_detail.product_infos[].sale_price number The selling price (unit: points) of the item at the time of generating this order may not match the price of the uploaded item interface
order.order_detail.product_infos[].real_price number Average price per unit sku (unit: cents) after deduction of discount, if no discount, with sale_Price consistency
order.order_detail.product_infos[].path number Bound Mini Program product path
order.order_detail.product_infos[].head_image number Header Map of Goods at Order Generation
order.order_detail.product_infos[].title number Title of the item when the order is generated
order.order_detail.pay_info.pay_method_type number 0: WeChat Pay, 1: Cash on delivery, 2: Merchant membership card (default 0)
order.order_detail.pay_info.prepay_id string Pre-payment ID
order.order_detail.pay_info.prepay_time string Prepayment Time (get prepay)_Id time), yyyy-MM-dd HH: mm: SS
order.order_detail.pay_info.transaction_id string Payment ID
order.order_detail.pay_info.pay_time string Payment time (get the transaction)_Time (id) ,yyyy-MM-dd HH: mm: SS
order.order_detail.price_info.freight number Freight (in cents)
order.order_detail.price_info.order_price number The final amount of the order paid (in cents)_price = Total price of goods + freight + additional_price - discounted_price
order.order_detail.price_info.discounted_price number Preferential amount (unit: points)
order.order_detail.price_info.additional_price number Additional amount (in cents)
order.order_detail.price_info.additional_remarks string Additional Amount Remarks
order.order_detail.delivery_detail.delivery_type number Delivery Type
order.order_detail.delivery_detail.finish_all_delivery number Whether shipment is complete
order.order_detail.delivery_detail.delivery_list[].delivery_id string Express company ID, obtained by getting the list of express companies
order.order_detail.delivery_detail.delivery_list[].waybill_id string Tracking number
order.order_detail.delivery_detail.delivery_list[].deliverer_name string Courier name
order.order_detail.delivery_detail.delivery_list[].deliverer_phone string Courier Phone
order.order_detail.delivery_detail.delivery_list[].delivey_status string Logistics status
order.order_detail.shop_id string Store ID
order.order_detail.dg_id string Guide ID
order.order_detail.remark_info.buyer_message string Buyer Message
order.order_detail.remark_info.trade_memo string Seller Notes
order.order_detail.buyer_info.delivery_name string Buyer InformationName of consignee
order.order_detail.buyer_info.delivery_mobile string Buyer InformationMobile phone number
order.order_detail.buyer_info.delivery_address string Buyer InformationDelivery Address(street)
order.order_detail.buyer_info.province string Buyer Informationprovince
order.order_detail.buyer_info.city string Buyer Informationcity
order.order_detail.buyer_info.area string Buyer Informationarea
order.order_detail.buyer_info.zip_code string Buyer InformationPostcode
order.order_detail.buyer_info.lastedchange_time string Buyer InformationLast updated time
order.order_detail.price_detail.total_amount number Original price
order.order_detail.price_detail.benefit_type number Preferential way 0 nothing 1 Amount of relief 2 discounts
order.order_detail.price_detail.discount_type string Type of offer vipcouponintegral
order.order_detail.price_detail.benefit_name string Coupon Name
order.order_detail.price_detail.benefit_info string Coupon Description
order.order_detail.price_detail.benefit_condition number Eligible amount
order.order_detail.price_detail.benefit_value number Full reduction
order.order_detail.price_detail.benefit_discount number Actual amount of relief
order.order_detail.price_detail.coupon_id number Coupon id
order.order_detail.service_orders[].out_product_id string Service Suborder ListMerchant Custom Product ID (Order Line Product)
order.order_detail.service_orders[].sub_order_price number Service Suborder ListTotal Suborder Price
order.order_detail.service_orders[].sub_order_amount number Service Suborder ListNumber of Suborders
order.order_detail.service_orders[].sub_order_id string Service Suborder List Suborder id
order.order_detail.pay_info_list[].pay_method_type number 0: WeChat Pay, 1: Cash on delivery, 2: Merchant membership card (default 0)
order.order_detail.pay_info_list[].prepay_id string Pre-payment ID
order.order_detail.pay_info_list[].prepay_time string Prepayment Time (get prepay)_Time (id)
order.order_detail.pay_info_list[].transaction_id string Payment ID
order.order_detail.pay_info_list[].pay_time string Payment time (get the transaction)_Time (id)

# Enumerate - status

Enumeration value describe
10 Outstanding
11 Checkout payment completed (automatic flow, the same treatment as 10 for merchants)
20 Awaiting shipment
30 Pending receipt
100 complete
200 After the sale of all goods, the order is cancelled
250 User active cancellation/Outstanding Time Out Cancellation/Business cancellation