---
search:
  tags:
    - billing
    - POST
seo:
  description: >-
    Expire prepaid customer balance. Reference for the POST
    /v1/customers/{customerId}/balance/expire endpoint in the Vortex Payments
    API.
sidebar:
  label: Expire prepaid customer balance
  badge: POST
title: Expire prepaid customer balance
type: openapi-operation
---
`POST /v1/customers/{customerId}/balance/expire`

**curl**

```bash
curl "https://api.vortex.nyc/v1/customers/{customerId}/balance/expire?environment=sandbox&merchantAccountId=..." \
  -X POST \
  -H "Authorization: Bearer $VORTEX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entryId":"cbal_expired_123","sourceEntryId":"cbal_123","amount":1000,"description":"Expired unused balance","effectiveAt":"2026-06-30T00:00:00.000Z"}'
```

**TypeScript**

```ts
import { expireCustomerBalance, createVortex } from "@vortex-api/vortex/2026-09";

const vortex = createVortex({ apiKey: process.env.VORTEX_API_KEY });
const { data } = await expireCustomerBalance({
  client: vortex,
  path: { customerId: "..." },
  query: { environment: "sandbox", merchantAccountId: "..." },
  body: {"entryId":"cbal_expired_123","sourceEntryId":"cbal_123","amount":1000,"description":"Expired unused balance","effectiveAt":"2026-06-30T00:00:00.000Z"},
});
```

**Request body** (`application/json`, required)

- `entryId` (string)
- `sourceEntryId` (string, required)
- `amount` (integer)
- `description` (string)
- `effectiveAt` (string<date-time>)
- `metadata` (Metadata)

Request body example:

```json
{
  "entryId": "cbal_expired_123",
  "sourceEntryId": "cbal_123",
  "amount": 1000,
  "description": "Expired unused balance",
  "effectiveAt": "2026-06-30T00:00:00.000Z"
}
```

**Responses**

- `201` — Created
- `400` — Bad request, including malformed JSON
- `401` — Missing or invalid API key
- `409` — Conflict, including idempotency body drift
- `422` — Validation failed
- `429` — API key rate limit exceeded
- `default` — Error

Response example, 201:

```json
{
  "data": {},
  "requestId": "string"
}
```
