我如何使用 BlueSnap API 进行退款

How do I issue refund with BlueSnap API

我需要 BlueSnap 中的退款交易,我正在使用 API 并且我有发票号码。 我该怎么做?

您没有提及您正在使用哪种类型的 API 集成,因此您可以选择以下选项:

如果您使用付款方式 API (JSON/XML) - 使用具有此 URL 格式的 PUT:https://ws.bluesnap.com/services/2/transactions/:transaction-id/refund

更多详情: https://developers.bluesnap.com/v8976-JSON/docs/refund https://developers.bluesnap.com/v8976-XML/docs/refund

如果您使用的是延期付款 API - 请参阅此 link 中的说明。

以这种 URL 格式使用 PUT: https://ws.bluesnap.com/services/2/orders/refund?invoiceId=38410844&reason=unsatisfied+customer

更多详情: https://developers.bluesnap.com/v8976-Extended/docs/refund-invoice