---
title: "Update wallet details for an account"
method: PATCH
path: "/accounts/{account_id}/wallet"
tags: ["Wallet"]
---

# Update wallet details for an account

`PATCH /accounts/{account_id}/wallet`

## Request

- Base URL: `https://api.togai.com`
- URL: `https://api.togai.com/accounts/{account_id}/wallet`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/togaihq/apis/togai-apis/docs/accounts/:account_id/wallet/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update wallet details for an account

## Path parameters

- `account_id` string, required

## Request body

- UpdateWalletRequest: Payload to update wallet of an account
  - `effectiveFrom` string, date-time
  - `status` 'ACTIVE' | 'INACTIVE'

## Response `200`

Response for Credit Balance Request

- WalletBalanceResponse: Wallet Balance response
  - `id` string, required
  - `accountId` string, required
  - `customerId` string, required
  - `balance` number, required: This amount is the difference of total credited amount and sum of consumed, hold amount. ie. credit amount - (consumed amount + hold amount)
  - `creditUnit` string, required
  - `externalId` string
  - `status` 'ACTIVE' | 'INACTIVE', required
  - `holdAmount` number
  - `effectiveFrom` string, date-time, required
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `metadata` object

## Other responses

- `default`: Error response

## Changes

- **2024-04-18** `f22fc08442b7`: 1 info
  - endpoint added
- **2023-09-02** `6b13f6f47735`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/togaihq/apis/togai-apis/changes/accounts/:account_id/wallet/patch.md)

---

[API](https://skmtc.dev/togaihq/apis/togai-apis.md) - [All operations](https://skmtc.dev/togaihq/apis/togai-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/togaihq/apis/togai-apis/revisions/442f5d8f4aa0?raw)
