v4

latestOpenAPI 3.1.02026-08-08186985685.3 KB
merchant

Refund Payment

Refunds a payment. First will check if the users wallet has credits to refund the payment. If so, will take the credits from the users wallet and refund the payment. Otherwise, will transfer USDC from the merchants wallet to Coinflow's wallet and refund the payment.The amount of USDC transferred will the total amount of the payment + credit card fees + gas fees.

put/merchant/payments/{paymentId}/refund

Path parameters

paymentIdstring required
  • ID of the payment to refund

Headers

Authorizationstring required

Request body

destinationWalletstring
refundReason'userCancellation' | 'failedFulfillment' | 'buyerFraud' | 'other' required

Response

Ok

number double required
OR
string required