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

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

Response

Result Object

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