Cancel
Last updated
Last updated
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.
Name | Type | Description |
---|---|---|
Response
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.
Parameter
Type
Description
result
object
The result of the refund.
ret_msg
string
The response return message.
ret_code
string
The response return code. For more details, see here.
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.