# Enquire about order details

# Examples of Interface Requests

Interface Force Check Source IP

http请求方式:POST
https://api.weixin.qq.com/shop/pay/getorder?access_token=xxxxxxxxx

# Example of request parameters

{
    "trade_no": "123455"
}

# Examples of back-up

{
    "errcode": 0,
    "errmsg":"ok",
    "order":
    {
        "trade_no": "522346",
        "transaction_id": "4302900974202204024351451925",
        "combine_trade_no": "512346",
        "mchid": "1623426221",
        "create_time": 1648880172,
        "update_time": 1648880485,
        "pay_time": 1648880315,
        "expire_time": 1651161600,
        "amount": 1,
        "description": "测试商品",
        "refund_list": [{
            "amount": 1,
            "create_time": 1648880476,
            "finish_time": 1648880483,
            "result": "SUCCESS",
            "refund_id": "50301901362022040218937476250",
            "refund_no": "522347"
        }],
        "profit_sharing_list": [{
	        "mchid": "1623426221",
	        "amount": 1,
	        "create_time": 1648880985,
	        "finish_time": 1648881016,
	        "result": "SUCCESS",
	        "profit_sharing_id": "30002107912022040228952584675",
	        "profit_sharing_no": "512341"
        }],
        "profit_sharing_delay": 30,
        "profit_sharing_frozen": 0,
    }
}

# Dxplaination of request parameters

parameter type Is it compulsory? Introductions
trade_no string yes Merchant transaction number

# Return parameter explaination

parameter type Is it compulsory? Introductions
errcode number yes Error code
errmsg string yes Error message
order Object Order yes Order Information

# Object Order

Field Name type Is it compulsory? Introductions
trade_no string yes Merchant transaction number
combine_trade_no string yes Total transaction number for merchant contract payment
mchid string yes Merchant Number
transaction_id string no WeChat Payment side transaction number
create_time number yes Order creation time, second time stamp
update_time number yes Order update time, second time stamp
pay_time number no Order payment time, second time stamp
expire_time number no Order expiration time, second time stamp
close_status number no Order closed status, 0: Normal; 1: It is closed
close_time number no Order closing time, second time stamp
amount number yes Order Amount, in units
description string yes Order Description
profit_sharing_list Array Object ProfitSharingRecord no List of accounts receivable information
refund_list Array Object RefundRecord no List of refund information
profit_sharing_delay number no Account period, how many days after the order begins payment time can be divided up
profit_sharing_frozen number no Is the order currently frozen to be divided? 1: Can't be divided, 0 can be divided normally

# Object ProfitSharingRecord

Field Name type Is it compulsory? Introductions
profit_sharing_no string yes Business billing number
profit_sharing_id string yes WeChat Payment Side Account Number
mchid string yes Merchant Number
amount number yes Amounts divided, in units
create_time number yes Payment allocation request time, second-rate timestamp
finish_time number no Payment completion time, second-rate timestamp
result string no Results of accounting
fail_reason string no Reasons for failure

# Object RefundRecord

Field Name type Is it compulsory? Introductions
refund_no string yes Merchant refund number
refund_id string yes WeChat Payment Side Refund Number
amount number yes Amount of refund, in units
create_time number yes Refund application time, second time stamp
finish_time number no When the refund is completed, a second time stamp
result string no Refund results
fail_reason string no Reasons for failure