---
title: "Corrects a folio by moving some charges. This operation creates a new folio with the charges from the request. The payment, equal to the sum of charges, is also split to this new folio so that both folios will have 0 balance."
method: POST
path: "/finance/v1/folio-actions/{folioId}/correct"
tags: ["FolioActions"]
---

# Corrects a folio by moving some charges. This operation creates a new folio with the charges from the request. The payment, equal to the sum of charges, is also split to this new folio so that both folios will have 0 balance.

`POST /finance/v1/folio-actions/{folioId}/correct`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/finance/v1/folio-actions/{folioId}/correct`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `folios.manage`, `admin`

Allowance value posted must not exceed sum of charges minus existing allowances<br>You must have this scope: 'folios.manage'.<br>For fine-grained clients, you must have this permission: 'core.folios.correct'.

## Path parameters

- `folioId` string, required

## Headers

- `Idempotency-Key` string

## Request body

- CorrectFolioRequest
  - `reason` string, required: Description of why the correction is performed
  - `chargeIds` string[], nullable: The IDs of the charges that should be moved
  - `allowanceIds` string[], nullable: The IDs of the allowances that should be moved Only moving global allowances is supported
  - `transitoryChargeIds` string[], nullable: The IDs of the transitory charges that should be moved

## Response `201`

Folio correction was successful. Correction folio created.

- FolioCreatedModel
  - `id` string, required: The folio id

## Other responses

- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `415`: Unsupported media type.
- `422`: Validation errors in the request body or query params.
- `499`: Client closed request.
- `500`: An unexpected error occurred.
- `503`: The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-finance-api.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-finance-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-finance-api/revisions/6f1d524c1ea7?raw)
