[PR #7593] Updated API Documentation for Splitting Transactions #49096

Open
opened 2026-04-26 10:56:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/7593
Author: @rboadu
Created: 4/22/2026
Status: 🔄 Open

Base: masterHead: issue-6180


📝 Commits (9)

  • e40b5d1 Updated API Documentation for Splitting Transactions
  • 6a4dba0 Update check-spelling metadata
  • 176dc17 Updated category name in example
  • 5e1f461 Update packages/docs/docs/api/reference.md
  • 49445e0 Fixed documentation to CodeRabbits feedback
  • 9bedc68 Merge branch 'master' into issue-6180
  • 3355f9d Update packages/docs/docs/api/reference.md
  • a530545 Updated wording of reference document
  • 81f6920 Merge branch 'master' into issue-6180

📊 Changes

2 files changed (+59 additions, -5 deletions)

View changed files

📝 .github/actions/docs-spelling/expect.txt (+1 -3)
📝 packages/docs/docs/api/reference.md (+58 -2)

📄 Description

Description

This PR updates the Split Transactions API documentation to reflect actual behavior observed when creating and managing split transactions via the API.

The current docs state that subtransactions only require amount, but in practice they must satisfy full transaction constraints, including fields like account and date. Additionally, certain flags (is_parent, is_child, and parent_id) are required for split transactions to function correctly.

This PR:

  • Clarifies the required fields for subtransactions
  • Documents the need to set is_parent: true on the parent transaction before adding subtransactions
  • Explains that subtransactions behave as full transaction records, not lightweight objects
  • Adds a working example payload demonstrating correct usage
  • Notes limitations around updating subtransactions individually

These changes improve developer experience and reduce confusion when working with split transactions via the API.

Fixes #6180

Testing

  • Verified behavior by creating split transactions via the API using the documented fields (account, date, parent_id, is_child, is_parent)
  • Confirmed that omitting fields like account or date results in validation errors
  • Tested that is_parent: true must be set on the parent transaction before subtransactions are properly recognized
  • Confirmed that updating subtransactions individually leads to inconsistent behavior, supporting the added documentation note
  • Ensured the provided example payload reflects a working configuration

Checklist

  • Release notes added (see link above)
  • No obvious regressions in affected areas
  • Self-review has been performed - I understand what each change in the code does and why it is needed

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/7593 **Author:** [@rboadu](https://github.com/rboadu) **Created:** 4/22/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `issue-6180` --- ### 📝 Commits (9) - [`e40b5d1`](https://github.com/actualbudget/actual/commit/e40b5d1377e91441ffde9c767f0b82642f154b2b) Updated API Documentation for Splitting Transactions - [`6a4dba0`](https://github.com/actualbudget/actual/commit/6a4dba024dd8e07da8b71ed959b19d6c0fd07ea4) Update check-spelling metadata - [`176dc17`](https://github.com/actualbudget/actual/commit/176dc178d197c6b40f56d3522f3436ae3ebe6974) Updated category name in example - [`5e1f461`](https://github.com/actualbudget/actual/commit/5e1f461770c89a17829c9171f473227fcdfb40d0) Update packages/docs/docs/api/reference.md - [`49445e0`](https://github.com/actualbudget/actual/commit/49445e0da8ffc9af43cde96b5501a6f5ae5245e0) Fixed documentation to CodeRabbits feedback - [`9bedc68`](https://github.com/actualbudget/actual/commit/9bedc687cc1d7cb72e8297c8ee6f8b1a3128f61d) Merge branch 'master' into issue-6180 - [`3355f9d`](https://github.com/actualbudget/actual/commit/3355f9d715fd17909955db3f93b5a821164fe0a0) Update packages/docs/docs/api/reference.md - [`a530545`](https://github.com/actualbudget/actual/commit/a5305459dd07699ce5091bae8b318cbcfd66349a) Updated wording of reference document - [`81f6920`](https://github.com/actualbudget/actual/commit/81f6920ad49f05c6130b2802adc17d6926ca92b7) Merge branch 'master' into issue-6180 ### 📊 Changes **2 files changed** (+59 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `.github/actions/docs-spelling/expect.txt` (+1 -3) 📝 `packages/docs/docs/api/reference.md` (+58 -2) </details> ### 📄 Description <!-- Thank you for submitting a pull request! Make sure to follow the instructions to write release notes for your PR — it should only take a minute or two: https://github.com/actualbudget/docs#writing-good-release-notes. Try running yarn generate:release-notes *before* pushing your PR for an interactive experience. --> ## Description <!-- What does this PR do? Why is it needed? Please give context on the "why?": why do we need this change? What problem is it solving for you?--> This PR updates the Split Transactions API documentation to reflect actual behavior observed when creating and managing split transactions via the API. The current docs state that subtransactions only require `amount`, but in practice they must satisfy full transaction constraints, including fields like `account` and `date`. Additionally, certain flags (`is_parent`, `is_child`, and `parent_id`) are required for split transactions to function correctly. This PR: - Clarifies the required fields for subtransactions - Documents the need to set `is_parent: true` on the parent transaction before adding subtransactions - Explains that subtransactions behave as full transaction records, not lightweight objects - Adds a working example payload demonstrating correct usage - Notes limitations around updating subtransactions individually These changes improve developer experience and reduce confusion when working with split transactions via the API. ## Related issue(s) <!-- e.g. Fixes #123, Relates to #456 --> Fixes #6180 ## Testing <!-- What did you test? How can we reproduce the issue you are fixing or how can we test the feature you built? --> - Verified behavior by creating split transactions via the API using the documented fields (`account`, `date`, `parent_id`, `is_child`, `is_parent`) - Confirmed that omitting fields like `account` or `date` results in validation errors - Tested that `is_parent: true` must be set on the parent transaction before subtransactions are properly recognized - Confirmed that updating subtransactions individually leads to inconsistent behavior, supporting the added documentation note - Ensured the provided example payload reflects a working configuration ## Checklist - [x] Release notes added (see link above) - [x] No obvious regressions in affected areas - [x] Self-review has been performed - I understand what each change in the code does and why it is needed <!--- actual-bot-sections ---> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-26 10:56:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#49096