Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solution

How can we help?

BACK

What is the difference between refund and cancellation?

Question:

In-store payment provides two interfaces to reverse a transaction:

1- Transaction Cancel Interface (alipay.acquire.cancel)

2- Refund interface (alipay.acquire.overseas.spot.refund)

What is the difference?

Answer:

Businessly, the refund interface is used to perform refund logic. The transaction cancel interface is used to cancel an order when the transaction status cannot be determined. For example, in a in-store payment, the order payment result may not be confirmed due to network reasons. To avoid waiting, you can call transaction cancel interface to cancel the order and then re-initiate the transaction.

You can call transaction cancel interface to refund no matter the order is successful or not. Once called successfully, a full refund will be made. While the refund interface can perform partial refund by setting the amount.

In terms of time limit, as long as the refund is valid, you can call the refund interface to initiate a refund. The transaction cancel interface can only cancel transactions that occur on the day (calculated in Beijing time).


问题:

当面付提供了两个接口: 交易取消接口(alipay.acquire.cancel)和退款接口(alipay.acquire.overseas.spot.refund),两者有什么区别?

解答:

业务上,退款接口用于执行退款逻辑。而交易取消接口在交易状态无法确定时,用于取消订单。比如在当面付中,可能由于网络原因导致订单支付结果无法确认,为避免等待,可以调用交易取消接口取消订单,然后重新发起交易。

无论订单状态如何,交易取消接口总能调用成功,对于已经成功的交易,将进行全额退款。而退款接口可以通过设定金额进行部分退款。

时效上,只要在退款有效期内,均可调用退款接口发起退款。而交易取消接口仅能取消当天发生的交易(以北京时间计算)。

NEED HELP?

NEED HELP?