# 1.1 Refund Api

# Description
  • Refund Api
# Request URL
  • /api/payment/refund
# Request Method
  • POST
# Request Parameters
parameter name is it mandatory type of data length description
appId mandatory string - APPID
mchRefundOrderId mandatory string 1-32 Merchant refund order id (unique for customer) format: letter + num, 1-32 characters: CCP20220428011068111
originalTransactionId mandatory string - original Transaction Id
refundAmount mandatory int - refund Amount(unit: cents, PHP:500.10, should set 50010 cents)
refundReason optional string - refund Reason
refundCallbackUrl mandatory string - refund Callback Url
sign mandatory string - sign
# Successful Response example
{
    "code": 1000,
    "message": "success",
    "data": {
        "mchRefundOrderId": "CCP20220428011068111",
        "refundTransactionId": "R420220428004148975",
        "refundAmount": 10000,
        "refundCreateTime": "2024-04-17 18:12:46",
        "refundStatus": "PENDING"
    }
}
# failed response example. code see reference
{
    "code":1002,
    "message":"merchant white ip forbidden",
}