---
title: "Splits a charge into two using the percent or amount provided Creates an allowance and two new charges."
method: POST
path: "/finance/v1/folio-actions/{folioId}/charges/{chargeId}/split"
tags: ["FolioActions"]
---

# Splits a charge into two using the percent or amount provided Creates an allowance and two new charges.

`POST /finance/v1/folio-actions/{folioId}/charges/{chargeId}/split`

## 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}/charges/{chargeId}/split`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `allowances.post`, `charges.create`, `folios.manage`, `admin`

<br>You must have at least one of these scopes: 'allowances.post, charges.create, folios.manage'.<br>For fine-grained clients, you must have this permission: 'core.folios.split_charge'.

## Path parameters

- `folioId` string, required
- `chargeId` string, required

## Headers

- `Idempotency-Key` string

## Request body

- SplitChargeRequest
  - `percent` number, double, nullable: The percent to split charge (between 0 and 100)
  - `amount` MonetaryValueModel
    - `amount` number, double, required
    - `currency` string, required
  - `type` 'ByPercent' | 'ByAmount', required: How to split the charge: by percent value, or by absolute amount

## Response `200`

OK

- SplitChargeResult
  - `allowanceId` string, required
  - `firstChargeId` string, required
  - `secondChargeId` string, required

## Other responses

- `204`: No Content
- `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)
