---
url: /orchestration/reference/operations/RefundFund.md
description: 'POST /v2/consumer/funds/{fundId}/refund — Pays what is left back to the depositor now, when only one user deposited. The fund stays open, empty, for new deposits'
---

> Documentation index: https://developer.civitai.com/llms.txt — every page on this site has a markdown version at its URL + `.md`.

# Pays what is left back to the depositor now, when only one user deposited. The fund stays open, empty, for new deposits

`POST https://orchestration.civitai.com/v2/consumer/funds/{fundId}/refund`

Operation `RefundFund` · Funds · Civitai Orchestration API, generated from the published OpenAPI spec ([v2-consumers.json](https://developer.civitai.com/openapi/v2-consumers.json)); the interactive HTML page is this URL without `.md`.

## Authentication

Send `Authorization: Bearer <token>` (the spec's `ApiKey` scheme); this operation documents `401 Unauthorized` for a missing or invalid token. See [Authentication](https://developer.civitai.com/orchestration/guide/authentication.md).

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `fundId` | path | string (uuid) | yes |  |

## Responses

### 200 OK

Content type: `application/json`.

Schema `FundResponse`.

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string (uuid) | yes |  |
| `allowMatureContent` | boolean | yes |  |
| `description` | string, nullable | no |  |
| `leftoverRefundable` | boolean | yes | Only one user has deposited, so what is left goes back to them when the fund expires or is deleted, or on `POST /funds/{id}/refund`. Otherwise it stays with Civitai. |
| `createdAt` | string (date-time) | yes |  |
| `expiresAt` | string (date-time) | yes |  |
| `balance` | integer (int32) | yes |  |
| `balances` | map of integer (int32) | yes | Balance per currency (`yellow`, `blue`, `green`, `fakeRed`). |

### 401 Unauthorized

Content type: `application/json`.

Schema `ProblemDetails`.

| Field | Type | Required | Description |
|---|---|---|---|
| `type` | string, nullable | no |  |
| `title` | string, nullable | no |  |
| `status` | integer (int32), nullable | no |  |
| `detail` | string, nullable | no |  |
| `instance` | string, nullable | no |  |

### 404 Not Found

Content type: `application/json`.

Schema `ProblemDetails` — fields as listed above.

### 409 Conflict

Content type: `application/json`.

Schema `ProblemDetails` — fields as listed above.
