---
title: "Un-split a customer transaction back to one category"
method: DELETE
path: "/accountant/companies/{customerId}/transactions/{transactionId}/splits"
tags: ["Accountant Portal"]
---

# Un-split a customer transaction back to one category

`DELETE /accountant/companies/{customerId}/transactions/{transactionId}/splits`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/transactions/{transactionId}/splits`
- Auth: HTTP bearer

#876. Deletes the split legs, clears isSplit, sets the parent category, and void-and-replaces the posted journal entry with a single category line. Same 422 guards as the PUT.

## Query parameters

- `categoryGlAccountId` string, uuid, required

## Response `200`

Success envelope with the updated transaction

- object

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `422`: Validation or business rule error. Same `TRANSACTION_CATEGORY_IS_BANK_ACCOUNT` and `TRANSACTION_BANK_OFFSET_UNIDENTIFIED` refusals as the PUT.

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
