---
title: "Update a wallet"
method: PUT
path: "/wallets/{id}"
tags: ["Wallets"]
---

# Update a wallet

`PUT /wallets/{id}`

Use when changing wallet settings (e.g. enabling or updating auto top-up thresholds).

## Path parameters

- `id` string, required

## Request body

- UpdateWalletRequest
  - `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
  - `auto_topup` TypesAutoTopup
    - `amount` number
    - `cooldown` TypesDuration
      - `unit` 'second' | 'minute' | 'hour' | 'day'
      - `value` integer
    - `enabled` boolean
    - `invoicing` boolean
    - `threshold` number
  - `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
  - `description` string
  - `metadata` TypesMetadata
  - `name` string

## 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

- **2026-07-31** `50b7421a9690` — 2 info
  - added the new optional request property `auto_topup/cooldown`
  - 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` — 7 breaking, 8 warning, 2 info
  - the `config` request property type/format changed from ``/`` to `object`/``
  - the `metadata` request property type/format changed from ``/`` to `object`/``
  - 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`
  - …13 more
- …earlier changes not shown

[Full history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/wallets/:id/put.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/562f13cf61dd/schema)
