Cancel
Cancel
POST
https://mapi.yuansfer.com/app-data-search/v3/cancel
This API cancels the payment of a transaction. Note: If the payment result of the pay API is a failure, the Yuansfer system cancels the transaction. If the payment result of the pay API is successful, the Yuansfer system refunds the amount of the transaction.
Request Body
merchantNo*
string
Merchant ID
storeNo*
string
Store ID
transactionNo
string
The Transaction ID in the Yuansfer system. Either transactionNo or reference is required.
reference
string
The Invoice Number of the transaction in the merchant's system. Either transactionNo or reference is required.
verifySign*
string
The parameter signature.
Response
Parameter
Type
Description
result
object
The result of the refund.
ret_msg
string
The response return message.
ret_code
string
Result Object
Parameter
Type
Description
amount
number
The transaction amount.
currency
string
The supported transaction currency "USD" "CNY".
reference
string
The Invoice Number of the transaction in the merchant's system.
status
string
The status of the refund.
transactionNo
string
The Transaction ID in the Yuansfer system.
Last updated
Was this helpful?