Refund
Refund
POST
https://api.2pay.co/online/v1/refund
This API is used for refund orders.
Request Body
Name
Type
Description
merchantNo*
String
ID of a merchant.
verifySign*
String
The merchants should verify the signature to ensure the response is from the server and not modified by any others.
reference*
String
The reference number of a trasaction in the merchant services system.
amount*
String
Amount of a transaction.
ipnurl
String
Asynchronous callback Url.
The IPN Url should be secure and reliable.
{
"ret_msg": "refund success ",
"ret_code": "000100"
}
Response
Parameter
Type
Description
ret_msg
String
Return response message.
ret_code
String
Return response status code.
curl --location --request POST 'https://api.2pay.co//app-data-search/v1/refund' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchantNo": "M1659212481867",
"reference": "86772212-8b1c-4bf7-79a3-4f32afa7e2c6",
"amount": "9.990000",
"verifySign": "{{verifySign}}"
}'
Last updated