---
title: "Refund Payment"
method: PUT
path: "/merchant/payments/{paymentId}/refund"
tags: ["merchant"]
---

# Refund Payment

`PUT /merchant/payments/{paymentId}/refund`

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.

## Path parameters

- `paymentId` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `destinationWallet` string
  - `partialAmount` Cents
    - `cents` integer, required
  - `refundReason` 'userCancellation' | 'failedFulfillment' | 'buyerFraud' | 'other', required

## Response `200`

Ok

- union
  - number, double
  - string

---

[API](https://skmtc.net/coinflow/apis/api-reference.md) · [All operations](https://skmtc.net/coinflow/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coinflow/api-reference/versions/c7b5afab1295/schema)
