# Inquiries about gift order details

Use this interface to find out details of small store authorization gift delivery orders.

# Dxplaination of Interface Call Request

POST https://api.weixin.qq.com/channels/ec/order/presentorder/get?access_token=ACCESS_TOKEN

# Dxplaination of request parameters

parameter type Is it compulsory? describe
present_order_id string yes Gift Sheet ID
openid string no User openid

# Example of request parameters

{
    "present_order_id": "4226341196275658752",
    "open_id": "OPENID"
}

# Return parameter explaination

parameter type describe
errcode number Error code
errmsg string Error message
present_order_info PresentOrderInfo Gift List Details

# Example of Return Parameters

{
    "errcode": 0,
    "errmsg": "ok",
    "present_order_info": {
        "ecsgift": {
            "gifts": {
                "gift": [
                    {
                        "order_id": 4226341196275658752,
                        "wishmessage": "祝福你",
                        "giftstatus": 0
                    }
                ]
            },
            "user_type": 1
        }
    }
}

# Structure Dxplaination

# PresentOrderInfo

parameter type describe
present_order_info.ecsgift ECsGiftInfo Gift Details
present_order_info.cannot_receive number Can I receive a gift?
present_order_info.cannot_receive_tips string Can't accept gifts tips

# ECsGiftInfo

parameter type describe
ecsgift.gifts GiftList List of presents
ecsgift.gifts.gift array List of Gift Information
ecsgift.gifts.gift.order_id number Gift Sheet ID
ecsgift.gifts.gift.giftstatus GiftStatus Gift Status
ecsgift.gifts.gift.expired_time number Gift expiration time
ecsgift.user_type number User perspective
ecsgift.wishmessage string Blessings

# GiftStatus (Gift State Enumeration)

The enumeration value describe
0 To be collected
1 I have received it
2 It's been overtime.
3 I have received the address to be filled in
4 The gift was finished.
5 The unfilled address is overdue
6 I wasn't drawn.

# PresentUserType (Enumeration of User Types)

The enumeration value describe
0 Third party
1 The Giftgiver
2 The recipient

# Error code

Error code Error Description
See the Common Error Code for more details -
40097 Parameter Error