Initiate a refund for the original credit card transaction order. Note the status value in the synchronous response. It is recommended to rely on the query interface for confirmation.
curl --request POST \
--url https://uat-interface.haipay.asia/usd/refund/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"orderNo": "<string>",
"sign": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"appId": "<string>",
"orderNo": "<string>",
"orderId": "<string>",
"refundNo": "<string>",
"status": "<string>",
"errorMsg": "<string>",
"sign": "<string>"
}
}Business ID (obtained from backend, must pass corresponding business ID based on currency in URL)
Merchant refund application order number
Platform order number (original collection platform order number returned)
Signature
curl --request POST \
--url https://uat-interface.haipay.asia/usd/refund/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"orderNo": "<string>",
"sign": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"appId": "<string>",
"orderNo": "<string>",
"orderId": "<string>",
"refundNo": "<string>",
"status": "<string>",
"errorMsg": "<string>",
"sign": "<string>"
}
}