> This page is for version Preview (default).
> For other versions, use one of these documentation indexes:
> - Preview (default): https://docs.preview.paid.ai/preview/llms.txt
> - Current: https://docs.preview.paid.ai/current/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.preview.paid.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.preview.paid.ai/_mcp/server.

# Credit holds

> Stop work at zero credits: reserve credits before work runs, and settle the reservation with the usage event for that work.

Spending credits never blocks: once a balance is empty, further usage becomes [overage](/credits/how-credits-work#overage). When you'd rather stop at zero, place a **credit hold** before the work runs. A hold reserves credits on your customer's balance, fails if the balance can't cover it, and is settled by the usage event for that work. It works like a card authorisation: check and reserve first, then charge what the work actually cost.

Use a credit hold to:

* **Stop work your customer can't pay for**, by refusing it when the hold fails with `insufficient_credits`.
* **Run work concurrently without overspending**, because two holds can never claim the same credits.
* **Charge what the work actually cost**, not your estimate, by [settling the hold](#settle-it-with-the-event) with the usage event.

## How a hold works

1. **Before the work runs, your code places a hold** for the most the work could cost. Paid checks the balance and reserves the credits in one step, or fails and reserves nothing.
2. **While the hold is active**, its credits count as `held` on the [balance](/credits/credit-ledger#credit-balances) and aren't available to anything else.
3. **When the work is done, you send its usage event** naming the hold. The event's actual cost is spent, and the rest of the reservation is freed.
4. **If the work doesn't run**, you release the hold, or it expires on its own.

A hold writes nothing to the [ledger](/credits/credit-ledger#credit-transactions), because nothing has been spent. Only the event's spend does.

Holds are placed by your code as work starts, so there are no dashboard steps for them.

## Place a hold

Litware's support agent charges 150 credits per resolved ticket. Before it starts on a ticket for Northwind Traders, it reserves the cost of one resolution. These endpoints are in the `credits=v1` beta; send `Paid-Beta: credits=v1`. [Create a credit hold](../api-reference/credits/credit-holds/create) with an `Idempotency-Key`, so a retry never reserves twice:

**`POST /v1/credit-holds`**

```json title="POST /v1/credit-holds"
{
  "customer": "cus_8HqL2xT",
  "creditCurrency": "support_credits",
  "amount": "150",
  "correlationId": "ticket_4410",
  "expiresAfter": { "value": "30", "unit": "minute" }
}
```

**`Response`**

```json title="Response"
{
  "id": "hold_2Nf8Qp",
  "object": "creditHold",
  "livemode": false,
  "customer": "cus_8HqL2xT",
  "creditCurrency": "support_credits",
  "amount": "150",
  "product": null,
  "seat": null,
  "correlationId": "ticket_4410",
  "status": "active",
  "expiresAt": "2026-11-04T14:30:00Z",
  "capturedBy": null,
  "capturedAt": null,
  "releasedAt": null,
  "metadata": {},
  "createdAt": "2026-11-04T14:00:00Z"
}
```

Paid checks the balance and reserves the credits in one atomic step, so two concurrent holds can never both claim the same credits. If the available balance can't cover `amount`, the request fails with `insufficient_credits` and nothing is reserved: don't run the work.

| Field           | What it's for                                                                                                                                                     |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `amount`        | The credits to reserve: the most the work could cost, in the credit currency, up to 15 decimal places.                                                            |
| `expiresAfter`  | How long the hold lasts if it isn't settled or released, in `minute` or `hour`. 15 minutes by default, from 1 minute to 24 hours. The response gives `expiresAt`. |
| `product`       | Lets grants [scoped](/credits/credit-grants#grants-from-prices) to this product count towards the hold. Without it, only unscoped grants count.                   |
| `seat`          | Reserves from that [seat's](/orders-and-billing/seats) balance first, then the shared balance.                                                                    |
| `correlationId` | Your ID for the run, ticket or message, for finding the hold later. It isn't used to settle the hold.                                                             |

A hold can reserve only what's `available`: credits left on the grants that count, less every other active hold. Overage never counts towards a hold, so a hold that would need overage fails, even when the credit currency's `conversion` would bill it. Before a customer's first grant, nothing is available and every hold fails.

## Settle it with the event

When the work is done, name the hold in `creditHold` on the usage event for it:

**`POST /v1/events`**

```json title="POST /v1/events"
{
  "eventName": "ticket.resolved",
  "customer": "cus_8HqL2xT",
  "product": "support_agent",
  "dedupeKey": "ticket_4410",
  "correlationId": "ticket_4410",
  "creditHold": "hold_2Nf8Qp",
  "payload": { "channel": "email" }
}
```

The event captures the hold as soon as it's accepted: its `status` becomes `captured`, with `capturedBy` set to the event's `evt_` ID, so it can no longer expire or be released. Its credits stay reserved until the event's actual cost is spent in the usual [spend order](/credits/how-credits-work#spend-order), and whatever's left of the reservation is freed in that same step. There's no separate capture call.

| If the event costs              | Then                                                              |
| ------------------------------- | ----------------------------------------------------------------- |
| less than the hold              | the rest of the hold is freed.                                    |
| more than the hold              | the extra is still spent from what's left, and can reach overage. |
| nothing in this credit currency | the hold is settled with no spend.                                |

An event names at most one hold, and a hold is settled by one event. An event naming a hold that has already expired, been released or been captured is still accepted and its usage recorded, with a `resource_not_active` warning on `creditHold`, so a timing race never loses usage. Its spend posts as if it named no hold. A duplicate event, with the same `dedupeKey`, settles nothing again. A `creditHold` that doesn't exist, or belongs to another customer or credit currency, fails the event with a 400.

## Release or let it expire

* If the work doesn't run, [release the hold](../api-reference/credits/credit-holds/release) to free its credits straight away. Releasing a hold that isn't active fails with `status_conflict`.
* A hold that's neither captured nor released expires at `expiresAt`, and its credits are free from that moment.

[List credit holds](../api-reference/credits/credit-holds/list) by `customer`, `creditCurrency`, `seat`, `status` or `correlationId` to find the holds for a run.

## How it bills

Northwind has 400 `support_credits` available when three tickets arrive at once:

| Step                                                            | `held`                                                                                       | `available`                      |
| --------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------- |
| Start                                                           | 0                                                                                            | 400                              |
| Hold for ticket 4410: 150                                       | 150                                                                                          | 400 - 150 = 250                  |
| Hold for ticket 4411: 150                                       | 150 + 150 = 300                                                                              | 250 - 150 = 100                  |
| Hold for ticket 4412: 150                                       | fails with `insufficient_credits`, because 100 \< 150. Litware hands the ticket to a person. | 100                              |
| Ticket 4410 resolved: its event spends 150 and settles its hold | 300 - 150 = 150                                                                              | 400 - 150 spent - 150 held = 100 |
| Ticket 4411 escalated: Litware releases its hold                | 150 - 150 = 0                                                                                | 400 - 150 spent = 250            |

Only the resolved ticket spent credits, and nothing went into overage, so nothing is invoiced in money. The ledger shows a single `spend` entry of `-150`.

## Change a hold

A hold's amount, customer and credit currency can't change once credits are reserved against them. To change the amount, release the hold and place a new one.

## Related

* [How credits work](/credits/how-credits-work)
* [Credit balances and ledger](/credits/credit-ledger)
* [Send events](/usage/sending-events)
* [Auto top-ups](/credits/auto-top-ups)
* [Credit holds API reference](../api-reference/credits/credit-holds/create)