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

Name
Type
Description

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.

{
    "result": {
        "amount": 0.01,
        "currency": "USD",
        "reference": "test20200101307",
        "status": "closed",
        "transactionNo": "297553638302751118"
    },
    "ret_msg": "cancel success ",
    "ret_code": "000100"
}

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.

curl -XPOST -H "Content-type: application/json" -d '{
	"merchantNo": "200043",
	"storeNo": "300014",
	"verifySign": "dd81f7781603bec48ae2c6a9ac758bf2",
	"transactionNo": "297553638301777927",
}' 'https://mapi.yuansfer.com/app-data-search/v3/cancel'

Last updated