# Order division

# Examples of Interface Requests

Interface Force Check Source IP

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

# Example of request parameters

{
    "openid": "oTVP50O53a7jgmawAmxKukNlq3XI",
    "mchid":"1230000109",
    "trade_no": "1217752501201407033233368018",
    "transaction_id":"4208450740201411110007820472",
    "profit_sharing_no":"P20150806125346"
}

# Examples of back-up

{
    "errcode": 0,
    "errmsg":"ok"
}

# Dxplaination of request parameters

parameter type Is it compulsory? Introductions
openid string yes User's openid
mchid string yes The merchant account number corresponding to the order
trade_no string yes Merchant transaction number
transaction_id string yes Payment Number
profit_sharing_no string yes Merchant account number, Weixin Mini Program unique system, the same account number multiple requests equal to one.The length is between 6 and 32 characters.

# Return parameter explaination

Paragraph Name type Is it compulsory? Introductions
errcode number yes Error code
errmsg string yes Error message

# Return code

返回码 Error Type
-1 System exceptions
9720004 The order outstanding balance is 0