# Order Refunds

# Examples of Interface Requests

Interface Force Check Source IP

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

# Example of request parameters

{
    "openid": "oTVP50O53a7jgmawAmxKukNlq3XI",
    "mchid":"1230000109",
    "trade_no": "1217752501201407033233368018",
    "transaction_id":"4208450740201411110007820472",
    "refund_no":"1217752501201407033233368018",
    "total_amount":100,
    "refund_amount":50
}

# 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
refund_no string yes Merchant refund number, Weixin Mini Program system internal unique, can only be numbers, uppercase letters_-|*@,The same refund number is requested multiple times for only one refund. The length is between 6 and 32 characters.
total_amount number yes Total Order Amount
refund_amount number yes Refund Amount

# Return parameter explaination

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