---
title: "Correct the balance after a movement"
method: PUT
path: "/api/v1/banking/accounts/{accountId}/movements/{movementId}/balance"
tags: ["Money"]
---

# Correct the balance after a movement

`PUT /api/v1/banking/accounts/{accountId}/movements/{movementId}/balance`

## Request

- Base URL: `http://localhost:5180`
- URL: `http://localhost:5180/api/v1/banking/accounts/{accountId}/movements/{movementId}/balance`
- Auth: API key in cookie `better-auth.session_token`

Sets the balance the account held once this movement landed, where the balance was worked out rather than printed. It becomes verified, and every worked-out balance around it is worked out again from it. A balance the bank printed is verified already and is refused.

## Path parameters

- `accountId` string, required
- `movementId` string, required

## Request body

- object
  - `balanceAfter` integer, required: Money, always in integer cents. €1,250.00 is 125000.

## Response `200`

Corrected.

- object
  - `ok` unknown, required
  - `data` object, required
    - `movementId` string, required: Stable record id, e.g. `lse_012`.
    - `balanceAfter` integer, required: Money, always in integer cents. €1,250.00 is 125000.
    - `balanceSource` 'verified', required
  - `meta` object, required
    - `requestId` string, required: Echoed in the x-request-id header. Quote it in a bug report.

## Other responses

- `404`: No such movement on this account.
- `409`: The balance was printed by the bank and is not changed.

---

[API](https://skmtc.dev/dardaris/apis/dardaris-api.md) · [All operations](https://skmtc.dev/dardaris/apis/dardaris-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dardaris/apis/dardaris-api/revisions/4aff33835c73?raw)
