---
title: "Terminate a wallet"
method: POST
path: "/wallets/{id}/terminate"
tags: ["Wallets"]
---

# Terminate a wallet

`POST /wallets/{id}/terminate`

Use when closing a customer wallet (e.g. churn or migration). Closes the wallet and applies remaining balance per policy (refund or forfeit).

## Path parameters

- `id` string, required

## Response `200`

OK

- WalletResponse
  - `alert_settings` TypesAlertSettings
    - `alert_enabled` boolean
    - `critical` TypesAlertThreshold
      - `condition` 'above' | 'below'
      - `threshold` string
    - `info` TypesAlertThreshold
      - `condition` 'above' | 'below'
      - `threshold` string
    - `warning` TypesAlertThreshold
      - `condition` 'above' | 'below'
      - `threshold` string
  - `alert_state` 'ok' | 'info' | 'warning' | 'in_alarm'
  - `auto_topup` TypesAutoTopup
    - `amount` number
    - `cooldown` TypesDuration
      - `unit` 'second' | 'minute' | 'hour' | 'day'
      - `value` integer
    - `enabled` boolean
    - `invoicing` boolean
    - `threshold` number
  - `balance` string
  - `config` TypesWalletConfig
    - `allowed_price_types` TypesWalletConfigPriceType[] — AllowedPriceTypes is a list of price types that are allowed for the wallet nil means all price types are allowed
  - `conversion_rate` string — amount in the currency = number of credits * conversion_rate ex if conversion_rate is 1, then 1 USD = 1 credit ex if conversion_rate is 2, then 1 USD = 0.5 credits ex if conversion_rate is 0.5, then 1 USD = 2 credits
  - `created_at` string, date-time
  - `created_by` string
  - `credit_balance` string
  - `credits_available_breakdown` TypesCreditBreakdown
    - `free` string
    - `purchased` string
  - `currency` string
  - `customer_id` string
  - `description` string
  - `environment_id` string
  - `id` string
  - `metadata` TypesMetadata
  - `name` string
  - `real_time_balance` string
  - `real_time_credit_balance` string
  - `status` 'published' | 'deleted' | 'archived'
  - `tenant_id` string
  - `topup_conversion_rate` string — topup_conversion_rate is the conversion rate for the topup to the currency ex if topup_conversion_rate is 1, then 1 USD = 1 credit ex if topup_conversion_rate is 2, then 1 USD = 0.5 credits ex if topup_conversion_rate is 0.5, then 1 USD = 2 credits
  - `updated_at` string, date-time
  - `updated_by` string
  - `wallet_status` 'active' | 'frozen' | 'closed'
  - `wallet_type` 'PRE_PAID' | 'POST_PAID'

## Other responses

- `400` — Invalid request
- `404` — Resource not found
- `500` — Server error

## Changes

> 108 revisions in range; 4 could not be searched.

- **2026-07-31** `50b7421a9690` — 1 info
  - added the optional property `auto_topup/cooldown` to the response with the `200` status
- **2026-07-15** `f8ecf435d25d` — 3 warning, 2 info
  - added the new `not_implemented` enum value to the `code` response property for the response status `400`
  - added the new `not_implemented` enum value to the `code` response property for the response status `404`
  - added the new `not_implemented` enum value to the `code` response property for the response status `500`
  - added the optional property `real_time_balance` to the response with the `200` status
  - …1 more
- **2026-07-09** `7d57386313c7` — 5 breaking, 8 warning, 1 info
  - the `config` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - the `metadata` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - the `status` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - the `wallet_status` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - …10 more
- …earlier changes not shown

[Full history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/wallets/:id/terminate/post.md)

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/9cd0dab91f5c/schema)
