Developer API
Write reference
The write endpoints of the Developer API: adding and deleting transactions, category, merchant, splits, tags, notes and batches.
This page covers every write the Developer API takes on transactions: adding and deleting a transaction, category and merchant, splits, tags, the token’s own note, and batches of up to 500 transactions. Rules have their own page. A write needs a token that can change data. You choose whether a token can change data when you create it in Settings › AI & Privacy › API tokens, and the choice can’t be changed later. Every token reads. A write from a read-only token is 403 read_only_token. The examples use $TAIGA_API for the app’s origin, so in production a path such as /api/v1/tags is https://app.taiga.finance/api/v1/tags, and $TAIGA_TOKEN for a taiga_pat_… token.
Which endpoints does the write side serve?
Section titled “Which endpoints does the write side serve?”| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/categories |
Categories |
| GET | /api/v1/rules |
Rules |
| POST | /api/v1/rules |
Create Rule |
| PUT | /api/v1/rules/{rule_id} |
Replace Rule |
| DELETE | /api/v1/rules/{rule_id} |
Delete Rule |
| GET | /api/v1/tags |
Tags |
| POST | /api/v1/tags |
Create Tag |
| POST | /api/v1/transactions |
Create Transaction |
| POST | /api/v1/transactions/batch |
Batch Update |
| PATCH | /api/v1/transactions/{transaction_id} |
Edit Transaction |
| DELETE | /api/v1/transactions/{transaction_id} |
Delete Transaction |
| GET | /api/v1/transactions/{transaction_id}/note |
Get Note |
| PUT | /api/v1/transactions/{transaction_id}/note |
Set Note |
| DELETE | /api/v1/transactions/{transaction_id}/note |
Clear Note |
| PUT | /api/v1/transactions/{transaction_id}/splits |
Set Splits |
| DELETE | /api/v1/transactions/{transaction_id}/splits |
Clear Splits |
| PUT | /api/v1/transactions/{transaction_id}/tags |
Set Tags |
How do writes behave?
Section titled “How do writes behave?”Repeating a write is safe
Section titled “Repeating a write is safe”Every write except a create sets a value: a category, a merchant, the whole set of tags, the whole set of split legs, the note’s text. Sending the same write twice leaves the transaction as one write would, so a script can retry a request whose answer it lost. A create adds a transaction each time, so it takes a client_id that makes its retry safe (below). No other write takes a retry key, or needs one.
A write that changes nothing is a no-op. It answers 200 with the transaction as it stands, adds no entry to the transaction’s history and counts nothing against the daily change allowance. A no-op is never refused, even with no allowance left for the day. Here 1611641 already holds the category the request sets:
curl -X PATCH "$TAIGA_API/api/v1/transactions/1611641" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"category": "Housing::Home Improvement"}'The answer is 200 with the same row the first write returned. The same holds for a DELETE …/splits on a transaction that isn’t split, a rule PUT equal to the stored rule, and a batch update whose row already matches ("changed": false).
Preconditions
Section titled “Preconditions”A write can carry what the script read, and the API writes only if the transaction still holds it. Preconditions are optional and use the read shape, the fields as GET /transactions returns them:
| Write | Precondition | Shape |
|---|---|---|
PATCH /transactions/{transaction_id} and batch updates |
expected |
{"parent_category", "category", "merchant"}, any of them |
PUT /transactions/{transaction_id}/tags and batch updates |
expected_tags |
a list of tag names; [] means “I read it with no tags” |
PUT and DELETE /transactions/{transaction_id}/splits |
expected_splits |
a list of {"amount", "parent_category", "category"}; [] means “I read it with no splits” |
Only the keys you send are compared. Because expected is in the read shape, expected.category is the sub-category alone, while the category the write sets is Parent::Sub:
curl -X PATCH "$TAIGA_API/api/v1/transactions/1611659" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"category": "Shopping::Clothing", "expected": {"parent_category": "Shopping", "category": "Shopping", "merchant": "Amazon"}}'That answers 200, the row now reading Shopping / Clothing. A later write that still expects Shopping / Shopping but asks for a different value is refused. Nothing is written or counted, and current holds what the row has now:
curl -X PATCH "$TAIGA_API/api/v1/transactions/1611659" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"category": "Shopping::Personal Care", "expected": {"parent_category": "Shopping", "category": "Shopping"}}'HTTP/1.1 409 Conflictcontent-type: application/json
{ "detail": "precondition_failed", "current": { "category": "Clothing", "parent_category": "Shopping" }}A row that already holds the requested values answers 200 whatever the precondition says. Sending the first request again, after it was committed, is 200 and changes nothing, so a retry never turns into a 409. expected isn’t taken on a split transaction, which reads as its legs: that is 400 expected_unsupported.
What a write does in the app
Section titled “What a write does in the app”A write goes through the app’s own editors. A create is written as Add transaction in the app writes one. A category or merchant set through the API is a manual change, and later syncs and rules respect it as they respect one made by hand. A split is written as the app’s split editor writes it.
Attribution
Section titled “Attribution”Every change a token makes is recorded in the transaction’s history as made through that token. In the app’s transaction drawer, the token’s owner sees the entry marked “via” and the token’s name. A partner in the same household sees “via an API token” instead, because a token’s name reaches only its owner. Undo uses the same record to find what a token changed.
The answer
Section titled “The answer”A write answers with the same envelope as a read, {data, next_cursor, home_currency, as_of, zone} (conventions), and data holds the transaction’s rows as GET /transactions reads them: one row, or one row per leg on a split transaction. The answer to POST /transactions adds possible_duplicates. Three answers differ. A batch answers {data: [{id, changed}], changes}, and a transaction DELETE and a rule DELETE are 204 with no body.
A split leg reads as its own row with the id <parent id>-s<slot>. A leg’s id on any write path is 400 split_leg_id: write to its split_of, the parent’s id, instead.
curl -X PATCH "$TAIGA_API/api/v1/transactions/1611777-s1" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"category": "Shopping::Shopping"}'HTTP/1.1 400 Bad Requestcontent-type: application/json
{ "detail": "split_leg_id"}POST /transactions
Section titled “POST /transactions”Adds a transaction to an account, as Add transaction in the app does. It takes the account’s id from GET /accounts, a date, an amount in the account’s currency (an outflow negative) and a merchant. An amount of zero, or one finer than the currency’s minor unit, such as -6.855 in dollars, is 400 bad_amount; it isn’t rounded. A category is a Parent::Sub pair from GET /categories. Without one, your rules and the app’s categorizer place the transaction, and one they can’t place reads Miscellaneous / Uncategorized. A note becomes the token’s note on the new transaction, as PUT …/note writes it. An account a partner shares with you as a balance only is 403 account_not_writable.
curl -X POST "$TAIGA_API/api/v1/transactions" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"account_id": "8565", "date": "2026-11-09", "amount": -18.4, "merchant": "Farmers Market", "category": "Food::Groceries", "note": "Cash at the Saturday market.", "client_id": "cash-2026-11-09-market"}'HTTP/1.1 201 Createdcontent-type: application/json
{ "data": [ { "id": "1658930", "split_of": null, "split_slot": null, "split_note": null, "date": "2026-11-09", "posted_date": "2026-11-09", "authorized_date": null, "description": "Farmers Market", "merchant": "Farmers Market", "amount": -18.4, "currency": "USD", "amount_home": -18.4, "fx_rate": null, "fx_rate_date": null, "status": "posted", "type": "debit", "parent_category": "Food", "category": "Groceries", "counterparty": null, "account_id": "8565", "account_name": "Chase Joint Checking", "institution": "Chase", "hidden_from_budgets": false, "tags": [], "paid_from_fund": null } ], "next_cursor": null, "home_currency": "USD", "as_of": "2026-11-12", "zone": "UTC", "possible_duplicates": []}The new transaction is posted on its date, its description is the merchant you sent, and GET /transactions reads it as it reads any other. In the app’s history its first entry reads “Added through the API”, with the token’s name. Your arrival rules run on it as on any transaction that arrives. A create counts one change against the daily change allowance, its note included.
Retrying a create with client_id
Section titled “Retrying a create with client_id”A create adds a transaction each time it is sent, so a retry without a client_id can add a second copy. A client_id is your own id for the transaction: printable ASCII with no spaces, at most 128 characters, such as a row number or a hash of the row it comes from. A create whose client_id any of your tokens used before answers 200 OK with that transaction and writes nothing. The rest of the body isn’t compared. Sending the request above a second time answers 200 OK with the same body, and counts nothing, even with no changes left for the day. Deleting the transaction frees its client_id, so the same create afterwards adds a new transaction.
Possible duplicates
Section titled “Possible duplicates”A create is never refused for looking like a transaction already on the account. Instead, possible_duplicates lists the ids of the transactions that look like it: the same amount, a near date, a similar name. This request repeats a bank charge of the day before, TRADER JOE'S for -102.63 (\u0027 is the apostrophe, escaped for the shell):
curl -X POST "$TAIGA_API/api/v1/transactions" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"account_id": "8565", "date": "2026-11-09", "amount": -102.63, "merchant": "Trader Joe\u0027s"}'The answer is 201 Created with the new transaction, 1658931, and "possible_duplicates": ["1637582"], the bank’s charge. Both transactions stay until one is deleted.
When the bank’s copy arrives
Section titled “When the bank’s copy arrives”On an account connected to a bank, the bank delivers its own copy of a charge you added. When the posted copy matches yours, with the same amount, a near date and a similar name, it settles onto your transaction instead of arriving as a second one. The transaction takes the bank’s amount, date and status, and keeps your category, merchant, note and tags. From then on it is the bank’s transaction too: DELETE refuses it and undo leaves it.
| Field | Type | Required | Default and limits | Description |
|---|---|---|---|---|
account_id |
string |
Yes | at least 1 character; at most 32 characters | The account’s id from /accounts; one you can write. |
amount |
number |
Yes | at least -1,000,000,000,000,000; at most 1,000,000,000,000,000 |
The amount in the account’s currency, an outflow negative and an inflow positive; not zero, and no finer than the currency’s minor unit. |
category |
string or null |
No | at most 255 characters | Parent::Sub, one of /categories. |
client_id |
string or null |
No | at least 1 character; at most 128 characters | Your own id for this transaction (printable ASCII, no spaces, at most 128 characters). Sending a create with an id you used before answers 200 with that transaction and writes nothing, so a retry never makes a second copy. A deleted transaction frees its id. |
date |
date |
Yes | The day of the transaction, ISO YYYY-MM-DD. |
|
merchant |
string |
Yes | at least 1 character; at most 255 characters | The merchant name, stored with its outer spacing trimmed. |
note |
string or null |
No | at most 8000 characters | The transaction’s first note, as PUT /transactions/{id}/note takes it (at most 4000 characters once its outer spacing is stripped). |
| Field | Type | Description |
|---|---|---|
account_id |
string |
The id of the account the row is on, as /accounts lists it. |
account_name |
string |
The account’s name. |
amount |
number or null |
The amount in currency, an outflow negative and an inflow positive; on a split leg, the leg’s amount. |
amount_home |
number or null |
amount in the home currency (home_currency), at its month’s reference rate (the rate published for the last day of the month before its date); null when the row has no home amount (no reference rate, or a code Taiga does not convert), and then it is in no total. |
authorized_date |
date or null |
The day the bank authorized the charge; null when the source does not report one. |
category |
string or null |
The sub-category alone, the part after :: in a write’s Parent::Sub; null when the row has no category. |
counterparty |
string or null |
The other party’s name as the source stated it, before merchant resolution; null when it stated none. |
currency |
string |
The currency code amount is in: the account’s, or the code the feed stated when it differs from the account’s (such a row has no home amount). |
date |
date |
The transaction’s date, the day the app lists it on and the day from and to select on. |
description |
string |
The transaction’s text as the bank or the import stated it. |
fx_rate |
number or null |
Home-currency units per one unit of currency, the rate amount_home is converted at; null on a row in the home currency and wherever amount_home is null. |
fx_rate_date |
date or null |
The day fx_rate was published; null wherever fx_rate is. |
hidden_from_budgets |
boolean |
Whether the row is hidden from budgets. |
id |
string |
The row’s id: the transaction’s id, or <id>-s<slot> on a split leg. |
institution |
string or null |
The account’s institution; null when none is recorded. |
merchant |
string or null |
The merchant name: the one Taiga resolved, or one set in the app, by a rule or through this API; on a split leg, the leg’s own merchant when it has one; null when there is none. |
paid_from_fund |
string or null |
The name of the savings fund the transaction was paid from; null when none. |
parent_category |
string or null |
The parent category, the part before :: in a write’s Parent::Sub; null when the row has no category. |
posted_date |
date or null |
The day the transaction posted; the date when the source stated none. |
split_note |
string or null |
On a split leg, the leg’s note; null on a row that is not split and on a leg with no note. |
split_of |
string or null |
On a split leg, the id of the transaction it is a leg of, the id a write takes; null on a row that is not split. |
split_slot |
integer or null |
On a split leg, its slot number, from 1; null on a row that is not split. |
status |
string |
posted, pending or cancelled. |
tags |
string[] |
The names of the transaction’s tags (a split leg lists its transaction’s); empty when it has none. |
type |
string or null |
The transaction type the source stated, usually credit (money in) or debit (money out); null when it stated none. |
| Status | Code | Description |
|---|---|---|
| 400 | bad_account_id |
account_id is not an account id (digits only, no leading zero) |
| 400 | bad_amount |
The amount is zero, or finer than its account currency’s minor unit. |
| 400 | bad_category |
A category is not written Parent::Sub. |
| 400 | unknown_category |
A category is not one of your household’s (/categories lists them) |
| 400 | bad_merchant |
A merchant is blank once its outer spacing is trimmed. |
| 400 | note_too_long |
The note is longer than 4000 characters once stripped. |
| 400 | bad_note |
The note holds a control character other than a line break or tab, such as NUL. |
| 401 | invalid_token |
No bearer, or not a live personal token. |
| 402 | billing_read_only |
The household’s billing is inactive, so the account is read-only; the body is the app’s own (its detail.reason is the billing state). |
| 403 | account_not_writable |
You can see the account but not write it (a partner’s, shared as a balance only) |
| 403 | read_only_token |
The token was not made able to change data. |
| 403 | demo_account |
The token’s owner is a demo account, which never writes. |
| 403 | notice_required |
Review a notice in the app first. |
| 404 | account_not_found |
No account you can see. |
| 405 | read_only |
The path only reads. |
| 405 | method_not_allowed |
The path does not serve this method; Allow names those it does. |
| 422 | — | The body or a parameter failed schema validation; the answer is FastAPI’s validation list (detail, one entry per failure). unstorable_text: a text value holds a character no field can store (NUL, or a lone surrogate); nothing was written or counted. |
| 429 | write_limit |
What the request would actually change does not fit what is left of the day’s changes (remaining is what is left, Retry-After runs to the next UTC midnight — fields sent with the values the row already holds count nothing, and a request that changes nothing is never refused) |
| 429 | rate_limited |
Too many requests, or too many failed tokens from your network. |
| 429 | too_many_in_flight |
Too many requests at once. |
| 503 | busy |
The write met a concurrent change to the same rows and was rolled back whole; nothing was written or counted. Retry after Retry-After (1 second) — every write is all or nothing and sets values, so a retry is safe. |
DELETE /transactions/{transaction_id}
Section titled “DELETE /transactions/{transaction_id}”Deletes a transaction that one of your tokens added, while it is still only that: the bank’s copy hasn’t settled onto it, and nobody has changed it in the app with an edit, a note or a tag. Any of your tokens may delete it, not only the one that added it. It answers 204 with no body:
curl -X DELETE "$TAIGA_API/api/v1/transactions/1658929" \ -H "Authorization: Bearer $TAIGA_TOKEN"HTTP/1.1 204 No ContentThe delete is permanent, and an undo of the token doesn’t bring the transaction back. It counts one change and frees the transaction’s client_id. The same DELETE again is 404 transaction_not_found.
Every other transaction is 409 not_api_created: one the bank delivered, one entered in the app, one a partner added through their own token, and one you added that someone has since changed in the app. Here Jordan wrote a note on 1658933 in the app after adding it through the API:
curl -X DELETE "$TAIGA_API/api/v1/transactions/1658933" \ -H "Authorization: Bearer $TAIGA_TOKEN"HTTP/1.1 409 Conflictcontent-type: application/json
{ "detail": "not_api_created"}Such a transaction can be deleted in the app. A split leg’s id is 400 split_leg_id, as on every write path.
| Parameter | Type | Required | Default and limits | Description |
|---|---|---|---|---|
transaction_id |
string |
Yes | A transaction’s id from /transactions. A split leg’s id (<id>-s<slot>) is refused 400 split_leg_id; write its split_of. |
| Status | Code | Description |
|---|---|---|
| 400 | split_leg_id |
The id is a split leg’s (<id>-s<slot>); write to its split_of. |
| 401 | invalid_token |
No bearer, or not a live personal token. |
| 402 | billing_read_only |
The household’s billing is inactive, so the account is read-only; the body is the app’s own (its detail.reason is the billing state). |
| 403 | read_only_token |
The token was not made able to change data. |
| 403 | demo_account |
The token’s owner is a demo account, which never writes. |
| 403 | notice_required |
Review a notice in the app first. |
| 404 | transaction_not_found |
No transaction you can see. |
| 405 | read_only |
The path only reads. |
| 405 | method_not_allowed |
The path does not serve this method; Allow names those it does. |
| 409 | not_api_created |
Only a transaction you added through the API may be deleted here, and only while the bank has not matched it and nobody has changed it in the app; delete any other transaction in the app. |
| 422 | — | The body or a parameter failed schema validation; the answer is FastAPI’s validation list (detail, one entry per failure). unstorable_text: a text value holds a character no field can store (NUL, or a lone surrogate); nothing was written or counted. |
| 429 | write_limit |
What the request would actually change does not fit what is left of the day’s changes (remaining is what is left, Retry-After runs to the next UTC midnight — fields sent with the values the row already holds count nothing, and a request that changes nothing is never refused) |
| 429 | rate_limited |
Too many requests, or too many failed tokens from your network. |
| 429 | too_many_in_flight |
Too many requests at once. |
| 503 | busy |
The write met a concurrent change to the same rows and was rolled back whole; nothing was written or counted. Retry after Retry-After (1 second) — every write is all or nothing and sets values, so a retry is safe. |
PATCH /transactions/{transaction_id}
Section titled “PATCH /transactions/{transaction_id}”Sets the category, the merchant, or both on one transaction. category is a Parent::Sub pair from GET /categories. A bare name is 400 bad_category, and a well-formed pair that isn’t in the list is 400 unknown_category. A body field the endpoint doesn’t take is a 422.
curl -X PATCH "$TAIGA_API/api/v1/transactions/1611641" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"category": "Housing::Home Improvement"}'HTTP/1.1 200 OKcontent-type: application/json
{ "data": [ { "id": "1611641", "split_of": null, "split_slot": null, "split_note": null, "date": "2025-10-06", "posted_date": "2025-10-06", "authorized_date": null, "description": "AMAZON", "merchant": "Amazon", "amount": -119.59, "currency": "USD", "amount_home": -119.59, "fx_rate": null, "fx_rate_date": null, "status": "posted", "type": "debit", "parent_category": "Housing", "category": "Home Improvement", "counterparty": null, "account_id": "8442", "account_name": "Chase Joint Checking", "institution": "Chase", "hidden_from_budgets": false, "tags": [], "paid_from_fund": null } ], "next_cursor": null, "home_currency": "USD", "as_of": "2026-11-11", "zone": "UTC"}A merchant rename has the same shape, -d '{"merchant": "Amazon Marketplace"}'.
| Parameter | Type | Required | Default and limits | Description |
|---|---|---|---|---|
transaction_id |
string |
Yes | A transaction’s id from /transactions. A split leg’s id (<id>-s<slot>) is refused 400 split_leg_id; write its split_of. |
| Field | Type | Required | Default and limits | Description |
|---|---|---|---|---|
category |
string or null |
No | at most 255 characters | Parent::Sub, one of /categories. |
expected |
object or null |
No | Write only if the row still holds what you read (409 precondition_failed with what it holds now, nothing written). A row that already holds the values you send answers 200 whatever this says. |
|
expected.category |
string or null |
No | at most 255 characters | The read’s category — the sub-category alone, not Parent::Sub. |
expected.merchant |
string or null |
No | at most 255 characters | The read’s merchant. |
expected.parent_category |
string or null |
No | at most 255 characters | The read’s parent_category. |
merchant |
string or null |
No | at least 1 character; at most 255 characters | The merchant name to set, stored with its outer spacing trimmed; null or omitted leaves the merchant as it is. |
| Field | Type | Description |
|---|---|---|
account_id |
string |
The id of the account the row is on, as /accounts lists it. |
account_name |
string |
The account’s name. |
amount |
number or null |
The amount in currency, an outflow negative and an inflow positive; on a split leg, the leg’s amount. |
amount_home |
number or null |
amount in the home currency (home_currency), at its month’s reference rate (the rate published for the last day of the month before its date); null when the row has no home amount (no reference rate, or a code Taiga does not convert), and then it is in no total. |
authorized_date |
date or null |
The day the bank authorized the charge; null when the source does not report one. |
category |
string or null |
The sub-category alone, the part after :: in a write’s Parent::Sub; null when the row has no category. |
counterparty |
string or null |
The other party’s name as the source stated it, before merchant resolution; null when it stated none. |
currency |
string |
The currency code amount is in: the account’s, or the code the feed stated when it differs from the account’s (such a row has no home amount). |
date |
date |
The transaction’s date, the day the app lists it on and the day from and to select on. |
description |
string |
The transaction’s text as the bank or the import stated it. |
fx_rate |
number or null |
Home-currency units per one unit of currency, the rate amount_home is converted at; null on a row in the home currency and wherever amount_home is null. |
fx_rate_date |
date or null |
The day fx_rate was published; null wherever fx_rate is. |
hidden_from_budgets |
boolean |
Whether the row is hidden from budgets. |
id |
string |
The row’s id: the transaction’s id, or <id>-s<slot> on a split leg. |
institution |
string or null |
The account’s institution; null when none is recorded. |
merchant |
string or null |
The merchant name: the one Taiga resolved, or one set in the app, by a rule or through this API; on a split leg, the leg’s own merchant when it has one; null when there is none. |
paid_from_fund |
string or null |
The name of the savings fund the transaction was paid from; null when none. |
parent_category |
string or null |
The parent category, the part before :: in a write’s Parent::Sub; null when the row has no category. |
posted_date |
date or null |
The day the transaction posted; the date when the source stated none. |
split_note |
string or null |
On a split leg, the leg’s note; null on a row that is not split and on a leg with no note. |
split_of |
string or null |
On a split leg, the id of the transaction it is a leg of, the id a write takes; null on a row that is not split. |
split_slot |
integer or null |
On a split leg, its slot number, from 1; null on a row that is not split. |
status |
string |
posted, pending or cancelled. |
tags |
string[] |
The names of the transaction’s tags (a split leg lists its transaction’s); empty when it has none. |
type |
string or null |
The transaction type the source stated, usually credit (money in) or debit (money out); null when it stated none. |
| Status | Code | Description |
|---|---|---|
| 400 | split_leg_id |
The id is a split leg’s (<id>-s<slot>); write to its split_of. |
| 400 | bad_category |
A category is not written Parent::Sub. |
| 400 | unknown_category |
A category is not one of your household’s (/categories lists them) |
| 400 | bad_merchant |
A merchant is blank once its outer spacing is trimmed. |
| 400 | expected_unsupported |
expected was sent for a split transaction, which reads as its legs. |
| 401 | invalid_token |
No bearer, or not a live personal token. |
| 402 | billing_read_only |
The household’s billing is inactive, so the account is read-only; the body is the app’s own (its detail.reason is the billing state). |
| 403 | read_only_token |
The token was not made able to change data. |
| 403 | demo_account |
The token’s owner is a demo account, which never writes. |
| 403 | notice_required |
Review a notice in the app first. |
| 404 | transaction_not_found |
No transaction you can see. |
| 405 | read_only |
The path only reads. |
| 405 | method_not_allowed |
The path does not serve this method; Allow names those it does. |
| 409 | precondition_failed |
The row no longer holds what your precondition says you read, and this write would change it; current is what it holds now. Nothing was written or counted. |
| 422 | — | The body or a parameter failed schema validation; the answer is FastAPI’s validation list (detail, one entry per failure). unstorable_text: a text value holds a character no field can store (NUL, or a lone surrogate); nothing was written or counted. |
| 429 | write_limit |
What the request would actually change does not fit what is left of the day’s changes (remaining is what is left, Retry-After runs to the next UTC midnight — fields sent with the values the row already holds count nothing, and a request that changes nothing is never refused) |
| 429 | rate_limited |
Too many requests, or too many failed tokens from your network. |
| 429 | too_many_in_flight |
Too many requests at once. |
| 503 | busy |
The write met a concurrent change to the same rows and was rolled back whole; nothing was written or counted. Retry after Retry-After (1 second) — every write is all or nothing and sets values, so a retry is safe. |
PUT /transactions/{transaction_id}/splits
Section titled “PUT /transactions/{transaction_id}/splits”Replaces a transaction’s split legs, as the app’s split editor does. The legs are numbered 1 to n in the order sent, up to 50. Each leg takes an amount, a category and an optional note. The amounts carry the parent’s sign, so an outflow’s legs are negative, and they must sum to the transaction’s amount to the cent, or the write is 422 split_sum_mismatch. On a two-decimal currency a leg finer than a cent is rounded half up to cents, so -5.004 is stored as -5.00, and the write is accepted when the rounded legs sum to the amount. A transaction linked in the app as an offset can’t be split until the link is removed: 422 split_refused.
curl -X PUT "$TAIGA_API/api/v1/transactions/1611777/splits" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"splits": [ {"amount": -100.00, "category": "Housing::Home Improvement"}, {"amount": -47.97, "category": "Shopping::Shopping", "note": "Garden soil"} ]}'The answer is the two legs, each its own row:
HTTP/1.1 200 OKcontent-type: application/json
{ "data": [ { "id": "1611777-s1", "split_of": "1611777", "split_slot": 1, "split_note": null, "date": "2025-11-28", "posted_date": "2025-11-28", "authorized_date": null, "description": "HOME DEPOT", "merchant": "Home Depot", "amount": -100.0, "currency": "USD", "amount_home": -100.0, "fx_rate": null, "fx_rate_date": null, "status": "posted", "type": "debit", "parent_category": "Housing", "category": "Home Improvement", "counterparty": null, "account_id": "8442", "account_name": "Chase Joint Checking", "institution": "Chase", "hidden_from_budgets": false, "tags": [], "paid_from_fund": null }, { "id": "1611777-s2", "split_of": "1611777", "split_slot": 2, "split_note": "Garden soil", "date": "2025-11-28", "posted_date": "2025-11-28", "authorized_date": null, "description": "HOME DEPOT", "merchant": "Home Depot", "amount": -47.97, "currency": "USD", "amount_home": -47.97, "fx_rate": null, "fx_rate_date": null, "status": "posted", "type": "debit", "parent_category": "Shopping", "category": "Shopping", "counterparty": null, "account_id": "8442", "account_name": "Chase Joint Checking", "institution": "Chase", "hidden_from_budgets": false, "tags": [], "paid_from_fund": null } ], "next_cursor": null, "home_currency": "USD", "as_of": "2026-11-11", "zone": "UTC"}To split only a transaction that still has no splits, add "expected_splits": []. Once it is split, the same precondition with other legs is a 409 whose current.splits holds the legs as GET /transactions reads them:
HTTP/1.1 409 Conflictcontent-type: application/json
{ "detail": "precondition_failed", "current": { "splits": [ { "amount": -40.0, "parent_category": "Housing", "category": "Home Improvement" }, { "amount": -26.71, "parent_category": "Shopping", "category": "Shopping" } ] }}| Parameter | Type | Required | Default and limits | Description |
|---|---|---|---|---|
transaction_id |
string |
Yes | A transaction’s id from /transactions. A split leg’s id (<id>-s<slot>) is refused 400 split_leg_id; write its split_of. |
| Field | Type | Required | Default and limits | Description |
|---|---|---|---|---|
expected_splits |
object[] or null |
No | at most 50 items | The legs you read, in any order ([]: you saw it not split). Write only if the row still holds what you read (409 precondition_failed with what it holds now, nothing written). A row that already holds the values you send answers 200 whatever this says. |
expected_splits[].amount |
number |
Yes | at least -1,000,000,000,000,000; at most 1,000,000,000,000,000 |
The leg’s amount as you read it, compared at its currency’s minor unit. |
expected_splits[].category |
string or null |
No | at most 255 characters | The leg’s category as you read it: the sub-category alone, not Parent::Sub. |
expected_splits[].parent_category |
string or null |
No | at most 255 characters | The leg’s parent_category as you read it. |
splits |
object[] |
Yes | at least 1 item; at most 50 items | Every leg, in slot order; together they sum to the transaction’s amount. |
splits[].amount |
number |
Yes | at least -1,000,000,000,000,000; at most 1,000,000,000,000,000 |
The leg’s amount, with the transaction’s sign (an outflow negative). |
splits[].category |
string |
Yes | at most 255 characters | Parent::Sub, one of /categories. |
splits[].note |
string or null |
No | at most 255 characters | The leg’s note; null or omitted for none. |
| Field | Type | Description |
|---|---|---|
account_id |
string |
The id of the account the row is on, as /accounts lists it. |
account_name |
string |
The account’s name. |
amount |
number or null |
The amount in currency, an outflow negative and an inflow positive; on a split leg, the leg’s amount. |
amount_home |
number or null |
amount in the home currency (home_currency), at its month’s reference rate (the rate published for the last day of the month before its date); null when the row has no home amount (no reference rate, or a code Taiga does not convert), and then it is in no total. |
authorized_date |
date or null |
The day the bank authorized the charge; null when the source does not report one. |
category |
string or null |
The sub-category alone, the part after :: in a write’s Parent::Sub; null when the row has no category. |
counterparty |
string or null |
The other party’s name as the source stated it, before merchant resolution; null when it stated none. |
currency |
string |
The currency code amount is in: the account’s, or the code the feed stated when it differs from the account’s (such a row has no home amount). |
date |
date |
The transaction’s date, the day the app lists it on and the day from and to select on. |
description |
string |
The transaction’s text as the bank or the import stated it. |
fx_rate |
number or null |
Home-currency units per one unit of currency, the rate amount_home is converted at; null on a row in the home currency and wherever amount_home is null. |
fx_rate_date |
date or null |
The day fx_rate was published; null wherever fx_rate is. |
hidden_from_budgets |
boolean |
Whether the row is hidden from budgets. |
id |
string |
The row’s id: the transaction’s id, or <id>-s<slot> on a split leg. |
institution |
string or null |
The account’s institution; null when none is recorded. |
merchant |
string or null |
The merchant name: the one Taiga resolved, or one set in the app, by a rule or through this API; on a split leg, the leg’s own merchant when it has one; null when there is none. |
paid_from_fund |
string or null |
The name of the savings fund the transaction was paid from; null when none. |
parent_category |
string or null |
The parent category, the part before :: in a write’s Parent::Sub; null when the row has no category. |
posted_date |
date or null |
The day the transaction posted; the date when the source stated none. |
split_note |
string or null |
On a split leg, the leg’s note; null on a row that is not split and on a leg with no note. |
split_of |
string or null |
On a split leg, the id of the transaction it is a leg of, the id a write takes; null on a row that is not split. |
split_slot |
integer or null |
On a split leg, its slot number, from 1; null on a row that is not split. |
status |
string |
posted, pending or cancelled. |
tags |
string[] |
The names of the transaction’s tags (a split leg lists its transaction’s); empty when it has none. |
type |
string or null |
The transaction type the source stated, usually credit (money in) or debit (money out); null when it stated none. |
| Status | Code | Description |
|---|---|---|
| 400 | split_leg_id |
The id is a split leg’s (<id>-s<slot>); write to its split_of. |
| 400 | bad_category |
A category is not written Parent::Sub. |
| 400 | unknown_category |
A category is not one of your household’s (/categories lists them). |
| 401 | invalid_token |
No bearer, or not a live personal token. |
| 402 | billing_read_only |
The household’s billing is inactive, so the account is read-only; the body is the app’s own (its detail.reason is the billing state). |
| 403 | read_only_token |
The token was not made able to change data. |
| 403 | demo_account |
The token’s owner is a demo account, which never writes. |
| 403 | notice_required |
Review a notice in the app first. |
| 404 | transaction_not_found |
No transaction you can see. |
| 405 | read_only |
The path only reads. |
| 405 | method_not_allowed |
The path does not serve this method; Allow names those it does. |
| 409 | precondition_failed |
The row no longer holds what your precondition says you read, and this write would change it; current is what it holds now. Nothing was written or counted. |
| 422 | split_sum_mismatch |
The legs do not sum to the transaction’s amount. |
| 422 | split_leg_precision |
A leg’s amount is finer than its currency’s minor unit. |
| 422 | split_refused |
An offset link on the transaction or on one of its legs does not allow this change. |
| 422 | unstorable_text |
A text value holds a character no field can store (NUL, or a lone surrogate); nothing was written or counted. |
| 429 | write_limit |
What the request would actually change does not fit what is left of the day’s changes (remaining is what is left, Retry-After runs to the next UTC midnight — fields sent with the values the row already holds count nothing, and a request that changes nothing is never refused) |
| 429 | rate_limited |
Too many requests, or too many failed tokens from your network. |
| 429 | too_many_in_flight |
Too many requests at once. |
| 503 | busy |
The write met a concurrent change to the same rows and was rolled back whole; nothing was written or counted. Retry after Retry-After (1 second) — every write is all or nothing and sets values, so a retry is safe. |
DELETE /transactions/{transaction_id}/splits
Section titled “DELETE /transactions/{transaction_id}/splits”Collapses a split transaction back to one row. With no body the clear is unconditional, and on a transaction that isn’t split it is a no-op that answers 200. An optional JSON body with expected_splits clears only if the legs are still the ones read. The legs may be listed in any order; the amount and the category pair are compared, a leg’s note is not.
curl -X DELETE "$TAIGA_API/api/v1/transactions/1611787/splits" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"expected_splits": [ {"amount": -26.71, "parent_category": "Shopping", "category": "Shopping"}, {"amount": -40.00, "parent_category": "Housing", "category": "Home Improvement"} ]}'HTTP/1.1 200 OKcontent-type: application/json
{ "data": [ { "id": "1611787", "split_of": null, "split_slot": null, "split_note": null, "date": "2025-12-02", "posted_date": "2025-12-02", "authorized_date": null, "description": "LOWE'S", "merchant": "Lowe's", "amount": -66.71, "currency": "USD", "amount_home": -66.71, "fx_rate": null, "fx_rate_date": null, "status": "posted", "type": "debit", "parent_category": "Housing", "category": "Home Improvement", "counterparty": null, "account_id": "8442", "account_name": "Chase Joint Checking", "institution": "Chase", "hidden_from_budgets": false, "tags": [], "paid_from_fund": null } ], "next_cursor": null, "home_currency": "USD", "as_of": "2026-11-11", "zone": "UTC"}| Parameter | Type | Required | Default and limits | Description |
|---|---|---|---|---|
transaction_id |
string |
Yes | A transaction’s id from /transactions. A split leg’s id (<id>-s<slot>) is refused 400 split_leg_id; write its split_of. |
| Field | Type | Required | Default and limits | Description |
|---|---|---|---|---|
expected_splits |
object[] or null |
No | at most 50 items | The legs you read, in any order ([]: you saw it not split). Write only if the row still holds what you read (409 precondition_failed with what it holds now, nothing written). A row that already holds the values you send answers 200 whatever this says. |
expected_splits[].amount |
number |
Yes | at least -1,000,000,000,000,000; at most 1,000,000,000,000,000 |
The leg’s amount as you read it, compared at its currency’s minor unit. |
expected_splits[].category |
string or null |
No | at most 255 characters | The leg’s category as you read it: the sub-category alone, not Parent::Sub. |
expected_splits[].parent_category |
string or null |
No | at most 255 characters | The leg’s parent_category as you read it. |
| Field | Type | Description |
|---|---|---|
account_id |
string |
The id of the account the row is on, as /accounts lists it. |
account_name |
string |
The account’s name. |
amount |
number or null |
The amount in currency, an outflow negative and an inflow positive; on a split leg, the leg’s amount. |
amount_home |
number or null |
amount in the home currency (home_currency), at its month’s reference rate (the rate published for the last day of the month before its date); null when the row has no home amount (no reference rate, or a code Taiga does not convert), and then it is in no total. |
authorized_date |
date or null |
The day the bank authorized the charge; null when the source does not report one. |
category |
string or null |
The sub-category alone, the part after :: in a write’s Parent::Sub; null when the row has no category. |
counterparty |
string or null |
The other party’s name as the source stated it, before merchant resolution; null when it stated none. |
currency |
string |
The currency code amount is in: the account’s, or the code the feed stated when it differs from the account’s (such a row has no home amount). |
date |
date |
The transaction’s date, the day the app lists it on and the day from and to select on. |
description |
string |
The transaction’s text as the bank or the import stated it. |
fx_rate |
number or null |
Home-currency units per one unit of currency, the rate amount_home is converted at; null on a row in the home currency and wherever amount_home is null. |
fx_rate_date |
date or null |
The day fx_rate was published; null wherever fx_rate is. |
hidden_from_budgets |
boolean |
Whether the row is hidden from budgets. |
id |
string |
The row’s id: the transaction’s id, or <id>-s<slot> on a split leg. |
institution |
string or null |
The account’s institution; null when none is recorded. |
merchant |
string or null |
The merchant name: the one Taiga resolved, or one set in the app, by a rule or through this API; on a split leg, the leg’s own merchant when it has one; null when there is none. |
paid_from_fund |
string or null |
The name of the savings fund the transaction was paid from; null when none. |
parent_category |
string or null |
The parent category, the part before :: in a write’s Parent::Sub; null when the row has no category. |
posted_date |
date or null |
The day the transaction posted; the date when the source stated none. |
split_note |
string or null |
On a split leg, the leg’s note; null on a row that is not split and on a leg with no note. |
split_of |
string or null |
On a split leg, the id of the transaction it is a leg of, the id a write takes; null on a row that is not split. |
split_slot |
integer or null |
On a split leg, its slot number, from 1; null on a row that is not split. |
status |
string |
posted, pending or cancelled. |
tags |
string[] |
The names of the transaction’s tags (a split leg lists its transaction’s); empty when it has none. |
type |
string or null |
The transaction type the source stated, usually credit (money in) or debit (money out); null when it stated none. |
| Status | Code | Description |
|---|---|---|
| 400 | split_leg_id |
The id is a split leg’s (<id>-s<slot>); write to its split_of. |
| 401 | invalid_token |
No bearer, or not a live personal token. |
| 402 | billing_read_only |
The household’s billing is inactive, so the account is read-only; the body is the app’s own (its detail.reason is the billing state). |
| 403 | read_only_token |
The token was not made able to change data. |
| 403 | demo_account |
The token’s owner is a demo account, which never writes. |
| 403 | notice_required |
Review a notice in the app first. |
| 404 | transaction_not_found |
No transaction you can see. |
| 405 | read_only |
The path only reads. |
| 405 | method_not_allowed |
The path does not serve this method; Allow names those it does. |
| 409 | precondition_failed |
The row no longer holds what your precondition says you read, and this write would change it; current is what it holds now. Nothing was written or counted. |
| 422 | split_refused |
An offset link on the transaction or on one of its legs does not allow this change. |
| 422 | unstorable_text |
A text value holds a character no field can store (NUL, or a lone surrogate); nothing was written or counted. |
| 429 | write_limit |
What the request would actually change does not fit what is left of the day’s changes (remaining is what is left, Retry-After runs to the next UTC midnight — fields sent with the values the row already holds count nothing, and a request that changes nothing is never refused) |
| 429 | rate_limited |
Too many requests, or too many failed tokens from your network. |
| 429 | too_many_in_flight |
Too many requests at once. |
| 503 | busy |
The write met a concurrent change to the same rows and was rolled back whole; nothing was written or counted. Retry after Retry-After (1 second) — every write is all or nothing and sets values, so a retry is safe. |
PUT /transactions/{transaction_id}/tags
Section titled “PUT /transactions/{transaction_id}/tags”Sets a transaction’s tags to exactly the list sent, by name, up to 50. Names are matched as the app matches a typed name, with case and spacing folded. Only existing tags are taken: this write never creates a tag, so create one first with POST /tags. A tag the write takes off is remembered, so a rule never puts it back. On a split transaction every leg row carries the tags.
curl -X PUT "$TAIGA_API/api/v1/transactions/1611777/tags" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"tags": ["Home project"], "expected_tags": []}'The answer lists both legs of 1611777 with "tags": ["Home project"]. The first leg:
{ "id": "1611777-s1", "split_of": "1611777", "split_slot": 1, "split_note": null, "date": "2025-11-28", "posted_date": "2025-11-28", "authorized_date": null, "description": "HOME DEPOT", "merchant": "Home Depot", "amount": -100.0, "currency": "USD", "amount_home": -100.0, "fx_rate": null, "fx_rate_date": null, "status": "posted", "type": "debit", "parent_category": "Housing", "category": "Home Improvement", "counterparty": null, "account_id": "8442", "account_name": "Chase Joint Checking", "institution": "Chase", "hidden_from_budgets": false, "tags": [ "Home project" ], "paid_from_fund": null}A name with no tag behind it refuses the write, and tags lists the names that are missing:
HTTP/1.1 400 Bad Requestcontent-type: application/json
{ "detail": "unknown_tag", "tags": [ "Ski trip 2026" ]}| Parameter | Type | Required | Default and limits | Description |
|---|---|---|---|---|
transaction_id |
string |
Yes | A transaction’s id from /transactions. A split leg’s id (<id>-s<slot>) is refused 400 split_leg_id; write its split_of. |
| Field | Type | Required | Default and limits | Description |
|---|---|---|---|---|
expected_tags |
string[] or null |
No | at most 50 items; each: at most 120 characters | The tag names you read ([]: none), matched as tags are; a name no tag holds any more is a mismatch. Write only if the row still holds what you read (409 precondition_failed with what it holds now, nothing written). A row that already holds the values you send answers 200 whatever this says. |
tags |
string[] |
Yes | at most 50 items; each: at most 120 characters | The names of the tags the transaction holds after the write: existing tags of your household, matched with spacing and case folded; [] takes every tag off. |
| Field | Type | Description |
|---|---|---|
account_id |
string |
The id of the account the row is on, as /accounts lists it. |
account_name |
string |
The account’s name. |
amount |
number or null |
The amount in currency, an outflow negative and an inflow positive; on a split leg, the leg’s amount. |
amount_home |
number or null |
amount in the home currency (home_currency), at its month’s reference rate (the rate published for the last day of the month before its date); null when the row has no home amount (no reference rate, or a code Taiga does not convert), and then it is in no total. |
authorized_date |
date or null |
The day the bank authorized the charge; null when the source does not report one. |
category |
string or null |
The sub-category alone, the part after :: in a write’s Parent::Sub; null when the row has no category. |
counterparty |
string or null |
The other party’s name as the source stated it, before merchant resolution; null when it stated none. |
currency |
string |
The currency code amount is in: the account’s, or the code the feed stated when it differs from the account’s (such a row has no home amount). |
date |
date |
The transaction’s date, the day the app lists it on and the day from and to select on. |
description |
string |
The transaction’s text as the bank or the import stated it. |
fx_rate |
number or null |
Home-currency units per one unit of currency, the rate amount_home is converted at; null on a row in the home currency and wherever amount_home is null. |
fx_rate_date |
date or null |
The day fx_rate was published; null wherever fx_rate is. |
hidden_from_budgets |
boolean |
Whether the row is hidden from budgets. |
id |
string |
The row’s id: the transaction’s id, or <id>-s<slot> on a split leg. |
institution |
string or null |
The account’s institution; null when none is recorded. |
merchant |
string or null |
The merchant name: the one Taiga resolved, or one set in the app, by a rule or through this API; on a split leg, the leg’s own merchant when it has one; null when there is none. |
paid_from_fund |
string or null |
The name of the savings fund the transaction was paid from; null when none. |
parent_category |
string or null |
The parent category, the part before :: in a write’s Parent::Sub; null when the row has no category. |
posted_date |
date or null |
The day the transaction posted; the date when the source stated none. |
split_note |
string or null |
On a split leg, the leg’s note; null on a row that is not split and on a leg with no note. |
split_of |
string or null |
On a split leg, the id of the transaction it is a leg of, the id a write takes; null on a row that is not split. |
split_slot |
integer or null |
On a split leg, its slot number, from 1; null on a row that is not split. |
status |
string |
posted, pending or cancelled. |
tags |
string[] |
The names of the transaction’s tags (a split leg lists its transaction’s); empty when it has none. |
type |
string or null |
The transaction type the source stated, usually credit (money in) or debit (money out); null when it stated none. |
| Status | Code | Description |
|---|---|---|
| 400 | unknown_tag |
A tag name is not one your household holds (a tag write never creates a tag; the answer’s tags lists the names) |
| 400 | split_leg_id |
The id is a split leg’s (<id>-s<slot>); write to its split_of. |
| 401 | invalid_token |
No bearer, or not a live personal token. |
| 402 | billing_read_only |
The household’s billing is inactive, so the account is read-only; the body is the app’s own (its detail.reason is the billing state). |
| 403 | read_only_token |
The token was not made able to change data. |
| 403 | demo_account |
The token’s owner is a demo account, which never writes. |
| 403 | notice_required |
Review a notice in the app first. |
| 404 | transaction_not_found |
No transaction you can see. |
| 405 | read_only |
The path only reads. |
| 405 | method_not_allowed |
The path does not serve this method; Allow names those it does. |
| 409 | precondition_failed |
The row no longer holds what your precondition says you read, and this write would change it; current is what it holds now. Nothing was written or counted. |
| 422 | — | The body or a parameter failed schema validation; the answer is FastAPI’s validation list (detail, one entry per failure). unstorable_text: a text value holds a character no field can store (NUL, or a lone surrogate); nothing was written or counted. |
| 429 | write_limit |
What the request would actually change does not fit what is left of the day’s changes (remaining is what is left, Retry-After runs to the next UTC midnight — fields sent with the values the row already holds count nothing, and a request that changes nothing is never refused) |
| 429 | rate_limited |
Too many requests, or too many failed tokens from your network. |
| 429 | too_many_in_flight |
Too many requests at once. |
| 503 | busy |
The write met a concurrent change to the same rows and was rolled back whole; nothing was written or counted. Retry after Retry-After (1 second) — every write is all or nothing and sets values, so a retry is safe. |
POST /tags
Section titled “POST /tags”Creates a household tag, or returns the existing one of that name, whoever made it. A new tag answers 201. A name that matches an existing tag, with case and spacing folded, answers 200 with that tag unchanged, and nothing is created or counted. A name is 1 to 64 characters once inner spacing is collapsed; a name that is blank after that is 400 bad_tag_name. A person’s tokens can hold 200 tags they created, and past that POST /tags is 409 tag_limit for a new name while reusing an existing name still works.
curl -X POST "$TAIGA_API/api/v1/tags" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name": "Home project"}'HTTP/1.1 201 Createdcontent-type: application/json
{ "data": [ { "id": "5", "name": "Home project" } ], "next_cursor": null, "home_currency": "USD", "as_of": "2026-11-11", "zone": "UTC"}Sending {"name": " home PROJECT "} afterwards answers 200 OK with the same body.
| Field | Type | Required | Default and limits | Description |
|---|---|---|---|---|
name |
string |
Yes | at least 1 character; at most 64 characters | The tag’s name (at most 64 characters; inner spacing collapses to one space). |
| Field | Type | Description |
|---|---|---|
id |
string |
The tag’s id. |
name |
string |
The tag’s name, what a tag write takes. |
| Status | Code | Description |
|---|---|---|
| 400 | bad_tag_name |
Blank, or holding a control, format or other non-printing character (the rule a token’s own name is held to). |
| 401 | invalid_token |
No bearer, or not a live personal token. |
| 402 | billing_read_only |
The household’s billing is inactive, so the account is read-only; the body is the app’s own (its detail.reason is the billing state). |
| 403 | read_only_token |
The token was not made able to change data. |
| 403 | demo_account |
The token’s owner is a demo account, which never writes. |
| 403 | notice_required |
Review a notice in the app first. |
| 405 | read_only |
The path only reads. |
| 405 | method_not_allowed |
The path does not serve this method; Allow names those it does. |
| 409 | tag_limit |
Your tokens have created PERSONAL_API_MAX_TAGS_CREATED tags (200) that are still theirs; a tag you edit or delete in the app frees its place. |
| 422 | — | The body or a parameter failed schema validation; the answer is FastAPI’s validation list (detail, one entry per failure). unstorable_text: a text value holds a character no field can store (NUL, or a lone surrogate); nothing was written or counted. |
| 429 | write_limit |
What the request would actually change does not fit what is left of the day’s changes (remaining is what is left, Retry-After runs to the next UTC midnight — fields sent with the values the row already holds count nothing, and a request that changes nothing is never refused) |
| 429 | rate_limited |
Too many requests, or too many failed tokens from your network. |
| 429 | too_many_in_flight |
Too many requests at once. |
| 503 | busy |
The write met a concurrent change to the same rows and was rolled back whole; nothing was written or counted. Retry after Retry-After (1 second) — every write is all or nothing and sets values, so a retry is safe. |
The token’s note: PUT, GET and DELETE /transactions/{transaction_id}/note
Section titled “The token’s note: PUT, GET and DELETE /transactions/{transaction_id}/note”A token keeps one note per transaction. The note is a comment in the transaction’s thread, posted as the token’s owner and marked in the app as written through the token. It isn’t the transaction’s own memo. A second PUT edits the same note. GET reads back only the note this token wrote: any other token, the same person’s included, reads "note": null, and no token reads a person’s comments. A note the person edits or deletes in the app is no longer the token’s. GET answers any token, read-only ones included.
A note is at most 4,000 characters after trimming (400 note_too_long); a body over 8,000 characters as sent fails the schema with a 422. A note that is only spacing is 400 empty_note, and a control character other than a line break or a tab is 400 bad_note.
curl -X PUT "$TAIGA_API/api/v1/transactions/1611777/note" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"body": "Split by the budget script: soil is garden spend."}'HTTP/1.1 200 OKcontent-type: application/json
{ "data": [ { "transaction_id": "1611777", "note": "Split by the budget script: soil is garden spend." } ], "next_cursor": null, "home_currency": "USD", "as_of": "2026-11-11", "zone": "UTC"}The same GET from a second token of the same person:
curl "$TAIGA_API/api/v1/transactions/1611777/note" \ -H "Authorization: Bearer $TAIGA_TOKEN"HTTP/1.1 200 OKcontent-type: application/json
{ "data": [ { "transaction_id": "1611777", "note": null } ], "next_cursor": null, "home_currency": "USD", "as_of": "2026-11-11", "zone": "UTC"}DELETE removes the token’s note and answers with "note": null:
curl -X DELETE "$TAIGA_API/api/v1/transactions/1611641/note" \ -H "Authorization: Bearer $TAIGA_TOKEN"HTTP/1.1 200 OKcontent-type: application/json
{ "data": [ { "transaction_id": "1611641", "note": null } ], "next_cursor": null, "home_currency": "USD", "as_of": "2026-11-11", "zone": "UTC"}PUT /transactions/{transaction_id}/note
Section titled “PUT /transactions/{transaction_id}/note”| Parameter | Type | Required | Default and limits | Description |
|---|---|---|---|---|
transaction_id |
string |
Yes | A transaction’s id from /transactions. A split leg’s id (<id>-s<slot>) is refused 400 split_leg_id; write its split_of. |
| Field | Type | Required | Default and limits | Description |
|---|---|---|---|---|
body |
string |
Yes | at least 1 character; at most 8000 characters | The note (at most 4000 characters once its outer spacing is stripped; over 8000 as sent is a 422). |
| Field | Type | Description |
|---|---|---|
note |
string or null |
The note’s text; null when this token has none there. |
transaction_id |
string |
The transaction’s id. |
| Status | Code | Description |
|---|---|---|
| 400 | split_leg_id |
The id is a split leg’s (<id>-s<slot>); write to its split_of. |
| 400 | empty_note |
The note is nothing but spacing. |
| 400 | note_too_long |
The note is longer than 4000 characters once stripped. |
| 400 | bad_note |
The note holds a control character other than a line break or tab, such as NUL. |
| 401 | invalid_token |
No bearer, or not a live personal token. |
| 402 | billing_read_only |
The household’s billing is inactive, so the account is read-only; the body is the app’s own (its detail.reason is the billing state). |
| 403 | read_only_token |
The token was not made able to change data. |
| 403 | demo_account |
The token’s owner is a demo account, which never writes. |
| 403 | notice_required |
Review a notice in the app first. |
| 404 | transaction_not_found |
No transaction you can see. |
| 405 | read_only |
The path only reads. |
| 405 | method_not_allowed |
The path does not serve this method; Allow names those it does. |
| 422 | — | The body failed schema validation (body missing, empty, or over 8000 characters as sent); the answer is FastAPI’s validation list. unstorable_text: a text value holds a character no field can store (NUL, or a lone surrogate); nothing was written or counted. |
| 429 | write_limit |
What the request would actually change does not fit what is left of the day’s changes (remaining is what is left, Retry-After runs to the next UTC midnight — fields sent with the values the row already holds count nothing, and a request that changes nothing is never refused) |
| 429 | rate_limited |
Too many requests, or too many failed tokens from your network. |
| 429 | too_many_in_flight |
Too many requests at once. |
| 503 | busy |
The write met a concurrent change to the same rows and was rolled back whole; nothing was written or counted. Retry after Retry-After (1 second) — every write is all or nothing and sets values, so a retry is safe. |
GET /transactions/{transaction_id}/note
Section titled “GET /transactions/{transaction_id}/note”| Parameter | Type | Required | Default and limits | Description |
|---|---|---|---|---|
transaction_id |
string |
Yes | A transaction’s id from /transactions. A split leg’s id (<id>-s<slot>) is refused 400 split_leg_id; write its split_of. |
| Field | Type | Description |
|---|---|---|
note |
string or null |
The note’s text; null when this token has none there. |
transaction_id |
string |
The transaction’s id. |
| Status | Code | Description |
|---|---|---|
| 400 | split_leg_id |
The id is a split leg’s (<id>-s<slot>); write to its split_of. |
| 401 | invalid_token |
No bearer, or not a live personal token. |
| 403 | notice_required |
Review a notice in the app first. |
| 404 | transaction_not_found |
No transaction you can see. |
| 405 | read_only |
The path only reads. |
| 405 | method_not_allowed |
The path does not serve this method; Allow names those it does. |
| 422 | — | The body or a parameter failed schema validation; the answer is FastAPI’s validation list (detail, one entry per failure). |
| 429 | rate_limited |
Too many requests, or too many failed tokens from your network. |
| 429 | too_many_in_flight |
Too many requests at once. |
DELETE /transactions/{transaction_id}/note
Section titled “DELETE /transactions/{transaction_id}/note”| Parameter | Type | Required | Default and limits | Description |
|---|---|---|---|---|
transaction_id |
string |
Yes | A transaction’s id from /transactions. A split leg’s id (<id>-s<slot>) is refused 400 split_leg_id; write its split_of. |
| Field | Type | Description |
|---|---|---|
note |
string or null |
The note’s text; null when this token has none there. |
transaction_id |
string |
The transaction’s id. |
| Status | Code | Description |
|---|---|---|
| 400 | split_leg_id |
The id is a split leg’s (<id>-s<slot>); write to its split_of. |
| 401 | invalid_token |
No bearer, or not a live personal token. |
| 402 | billing_read_only |
The household’s billing is inactive, so the account is read-only; the body is the app’s own (its detail.reason is the billing state). |
| 403 | read_only_token |
The token was not made able to change data. |
| 403 | demo_account |
The token’s owner is a demo account, which never writes. |
| 403 | notice_required |
Review a notice in the app first. |
| 404 | transaction_not_found |
No transaction you can see. |
| 405 | read_only |
The path only reads. |
| 405 | method_not_allowed |
The path does not serve this method; Allow names those it does. |
| 422 | — | The body or a parameter failed schema validation; the answer is FastAPI’s validation list (detail, one entry per failure). unstorable_text: a text value holds a character no field can store (NUL, or a lone surrogate); nothing was written or counted. |
| 429 | write_limit |
What the request would actually change does not fit what is left of the day’s changes (remaining is what is left, Retry-After runs to the next UTC midnight — fields sent with the values the row already holds count nothing, and a request that changes nothing is never refused) |
| 429 | rate_limited |
Too many requests, or too many failed tokens from your network. |
| 429 | too_many_in_flight |
Too many requests at once. |
| 503 | busy |
The write met a concurrent change to the same rows and was rolled back whole; nothing was written or counted. Retry after Retry-After (1 second) — every write is all or nothing and sets values, so a retry is safe. |
POST /transactions/batch
Section titled “POST /transactions/batch”Sets the category, the merchant or the tags of up to 500 transactions in one request. Each update names a parent transaction’s id and any of category, merchant and tags, with the same optional expected and expected_tags as the single writes. The ids must be distinct, 1 to 500 of them. The batch is all or nothing: one refused update refuses the whole request and nothing is written. Each change is recorded and undone exactly as the single write would be. Splits aren’t in the batch; use PUT …/splits per transaction.
curl -X POST "$TAIGA_API/api/v1/transactions/batch" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"updates": [ {"id": "1611661", "category": "Shopping::Entertainment & Recreation", "expected": {"parent_category": "Shopping", "category": "Shopping"}}, {"id": "1611676", "merchant": "Amazon Marketplace"}, {"id": "1611707", "tags": ["Home project"], "expected_tags": []}, {"id": "1611641", "category": "Housing::Home Improvement"} ]}'The answer isn’t the envelope. data lists each update’s id and whether it changed anything, and changes is the number of changes counted. The fourth update is a no-op, because 1611641 already holds that category:
HTTP/1.1 200 OKcontent-type: application/json
{ "data": [ { "id": "1611661", "changed": true }, { "id": "1611676", "changed": true }, { "id": "1611707", "changed": true }, { "id": "1611641", "changed": false } ], "changes": 3}A refusal names the ids it is about. Here the second update’s precondition is stale, so the first update, valid on its own, isn’t written either:
curl -X POST "$TAIGA_API/api/v1/transactions/batch" \ -H "Authorization: Bearer $TAIGA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"updates": [ {"id": "1611742", "category": "Housing::Home Improvement"}, {"id": "1611661", "category": "Shopping::Clothing", "expected": {"parent_category": "Shopping", "category": "Shopping"}} ]}'HTTP/1.1 409 Conflictcontent-type: application/json
{ "detail": "precondition_failed", "ids": [ "1611661" ]}A batch 409 carries ids rather than current. The other batch refusals take the same form: 404 transactions_not_found lists ids that don’t exist or that the token’s owner can’t see, as one list, and a 400 lists the ids behind duplicate_ids, split_leg_id, empty_update, unknown_category, bad_category, bad_merchant or expected_unsupported. An unknown tag is the exception: 400 unknown_tag lists the tag names, not the ids.
| Field | Type | Required | Default and limits | Description |
|---|---|---|---|---|
updates |
object[] |
Yes | at least 1 item; at most 500 items | 1 to 500 updates, each of a different transaction. |
updates[].category |
string or null |
No | at most 255 characters | Parent::Sub, one of /categories. |
updates[].expected |
object or null |
No | Write only if the row still holds what you read (409 precondition_failed with what it holds now, nothing written). A row that already holds the values you send answers 200 whatever this says. |
|
updates[].expected.category |
string or null |
No | at most 255 characters | The read’s category — the sub-category alone, not Parent::Sub. |
updates[].expected.merchant |
string or null |
No | at most 255 characters | The read’s merchant. |
updates[].expected.parent_category |
string or null |
No | at most 255 characters | The read’s parent_category. |
updates[].expected_tags |
string[] or null |
No | at most 50 items; each: at most 120 characters | As PUT /transactions/{id}/tags takes it. |
updates[].id |
string |
Yes | at most 40 characters | A transaction’s id from /transactions (not a leg’s). |
updates[].merchant |
string or null |
No | at least 1 character; at most 255 characters | The merchant name to set, stored with its outer spacing trimmed; null or omitted leaves the merchant as it is. |
updates[].tags |
string[] or null |
No | at most 50 items; each: at most 120 characters | The names of the tags the transaction holds after the write: existing tags of your household, matched with spacing and case folded; [] takes every tag off. Null or omitted leaves the tags as they are. |
| Field | Type | Description |
|---|---|---|
changed |
boolean |
Whether this update changed the transaction. |
id |
string |
The id the update sent. |
| Status | Code | Description |
|---|---|---|
| 400 | duplicate_ids |
An id is sent more than once. |
| 400 | split_leg_id |
An id is a split leg’s (send its split_of) |
| 400 | empty_update |
An update sets nothing (no category, merchant or tags) |
| 400 | bad_category |
A category is not written Parent::Sub. |
| 400 | unknown_category |
A category is not one of your household’s (/categories lists them) |
| 400 | bad_merchant |
A merchant is blank once its outer spacing is trimmed. |
| 400 | expected_unsupported |
An update sends expected for a split transaction, which reads as its legs. |
| 400 | unknown_tag |
A tag name is not one your household holds (a tag write never creates a tag; the answer’s tags lists the names). |
| 401 | invalid_token |
No bearer, or not a live personal token. |
| 402 | billing_read_only |
The household’s billing is inactive, so the account is read-only; the body is the app’s own (its detail.reason is the billing state). |
| 403 | read_only_token |
The token was not made able to change data. |
| 403 | demo_account |
The token’s owner is a demo account, which never writes. |
| 403 | notice_required |
Review a notice in the app first. |
| 404 | transactions_not_found |
The ids sent that name no transaction you can see (absent and not visible are one bucket). Nothing was written or counted. |
| 405 | read_only |
The path only reads. |
| 405 | method_not_allowed |
The path does not serve this method; Allow names those it does. |
| 409 | precondition_failed |
The ids whose row no longer holds what the update’s precondition says, where the update would change it. Nothing was written or counted. |
| 422 | — | The body or a parameter failed schema validation; the answer is FastAPI’s validation list (detail, one entry per failure). unstorable_text: a text value holds a character no field can store (NUL, or a lone surrogate); nothing was written or counted. |
| 429 | write_limit |
What the request would actually change does not fit what is left of the day’s changes (remaining is what is left, Retry-After runs to the next UTC midnight — fields sent with the values the row already holds count nothing, and a request that changes nothing is never refused) |
| 429 | rate_limited |
Too many requests, or too many failed tokens from your network. |
| 429 | too_many_in_flight |
Too many requests at once. |
| 503 | busy |
The write met a concurrent change to the same rows and was rolled back whole; nothing was written or counted. Retry after Retry-After (1 second) — every write is all or nothing and sets values, so a retry is safe. |