Create Refund
Description
Endpoint
Parameters
Header
Name
Type
Mandatory
Description
Body
Name
Type
Mandatory
Description
Response
Name
Type
Description
Example
Last updated
Last updated
curl -X POST 'https://live.cpayapi.com/openapi/v2/refund' \
-H 'Content-Type: application/json' \
-d `{
"mid": 206051,
"orderID": "NO202305261652",
"amount": "1.05",
"sign": "b02c7d2fd87e1b00dd7efe7069"
}`
{
"code": 0,
"msg": "success",
"data": {
"orderID": "240424172131139895037",
"orderStatus": 10,
"refundAmount": "200",
"remark": ""
},
"traceid": "240425171627X7893092"
}{
"code": 90751019,
"msg": "create order fail: refund fail",
"data": null,
"traceid": "230531100629X9029613"
}