merchant

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

Request

  • Base URL
    https://api-sandbox.coinflow.cash/api
  • URL
    https://api-sandbox.coinflow.cash/api/merchant/payments/{paymentId}/refund
  • Auth
    API key in header Authorization

Path parameters

paymentIdstring required
  • ID of the payment to refund

Request body

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

Response

Ok

number double required
OR
string required

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security merchant was added to the API

    • info

      added the new optional request property

    • info

      api operation id refund-payment removed and replaced with merchant_RefundPayment