---
title: "Refund a charge"
method: POST
path: "/v1/charges/{id}/refund"
tags: ["Charges"]
---

# Refund a charge

`POST /v1/charges/{id}/refund`

Refund a charge back to the customer. Only escrow-based charges can be refunded,
and only before the escrow has been settled or expired.

**Refund reasons:**
- `customer_request` - Customer requested a refund
- `merchant_error` - Charge was made in error
- `fraud_reversal` - Fraudulent transaction reversal

The refund is processed on-chain and the funds are returned to the customer's account.

## Path parameters

- `id` string, required

## Request body

- object
  - `reason` 'customer_request' | 'merchant_error' | 'fraud_reversal', required — Reason for the refund
  - `note` string — Optional internal note about the refund

## Response `200`

Charge refunded successfully

- object — Charge refunded successfully
  - `id` string, required — Charge ID
  - `customerId` string, required
  - `customer` object
    - `id` string
    - `onchainAddress` string — Ethereum address (checksummed or lowercase)
    - `externalCustomerId` string, nullable
  - `usageId` string
  - `amountUsdc` string, required — USDC amount with up to 6 decimal places
  - `amountToken` string
  - `status` 'REFUNDED' | 'REFUND_PENDING', required — REFUNDED when on-chain confirmation succeeded, REFUND_PENDING when tx submitted but confirmation failed
  - `refundReason` 'customer_request' | 'merchant_error' | 'fraud_reversal', required
  - `refundNote` string, nullable
  - `refundTxHash` string, required — Transaction hash for the refund
  - `refundedAt` string, date-time, nullable — Set when refund is confirmed on-chain; null when REFUND_PENDING
  - `createdAt` string, date-time

## Other responses

- `400` — Refund not allowed
- `401` — Unauthorized
- `403` — Forbidden (secret key required)
- `404` — Charge not found
- `500` — Blockchain error
- `503` — Lock unavailable

---

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