Youniton Docs

Finance

Budgets, spending, invoices, expenses and cash flow.

#One expense with its decision and links

GET/expenses/{expenseId}
Session (app only)F-FIN-11

Path parameters

expenseIdrequiredstring (uuid)

An expense's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The expense (ETag is its version).application/json
Errors403404503One problem shape

#Approve or reject a recorded expense

POST/expenses/{expenseId}/decision
Session (app only)Idempotency-KeyIf-MatchF-FIN-11

Path parameters

expenseIdrequiredstring (uuid)

An expense's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The decided expense.application/json
Errors403404409412422428503One problem shape

#The receipts of an expense

GET/expenses/{expenseId}/receipts
Session (app only)F-FIN-11

Path parameters

expenseIdrequiredstring (uuid)

An expense's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The receipts, oldest first; download each through Files.application/json
Errors403404503One problem shape

#Attach a completed upload (target expense_receipt) as a receipt

POST/expenses/{expenseId}/receipts
Session (app only)Idempotency-KeyF-FIN-11

Path parameters

expenseIdrequiredstring (uuid)

An expense's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The receipt.application/json
Errors403404409422One problem shape

#Remove a receipt from a recorded expense

DELETE/expenses/{expenseId}/receipts/{fileId}
Session (app only)F-FIN-11

Path parameters

expenseIdrequiredstring (uuid)

An expense's id; hidden and missing are one 404.

fileIdrequiredstring (uuid)

A receipt file's id on this expense.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

204Removed; Files deletes the file.

No body.

Errors403404409One problem shape

#Reverse an approved expense with a reason; a corrected expense then names it

POST/expenses/{expenseId}/reversal
Session (app only)Idempotency-KeyIf-MatchF-FIN-11

Path parameters

expenseIdrequiredstring (uuid)

An expense's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The reversed expense.application/json
Errors403404409412422428503One problem shape

#The recorder withdraws a recorded expense

POST/expenses/{expenseId}/withdrawal
Session (app only)Idempotency-KeyIf-MatchF-FIN-11

Path parameters

expenseIdrequiredstring (uuid)

An expense's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

200The withdrawn expense.application/json
Errors403404409412428503One problem shape

#What finance the caller may see and do — flags only, never amounts

GET/finance/access
Session (app only)F-FIN-04

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The caller's finance access.application/json
Errors403404One problem shape

#The tenant Finance overview: each readable project's budget, spent so far, used and people cost, and the totals (owner, 22 Nov 2026)

GET/finance/budgets
Session (app only)F-FIN-16

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The rows by project key and the totals in EUR.application/json
Errors404503One problem shape

#The months of the cashflow with the lines behind them; EUR totals (R10–R12)

GET/finance/cashflow
Session (app only)F-FIN-16

Query parameters

fromstring

The first month. Default the starting month (else three months back), at most 60 months before to.

Pattern ^[0-9]{4}-(0[1-9]|1[0-2])$

tostring

The last month. Default two months after the current month.

Pattern ^[0-9]{4}-(0[1-9]|1[0-2])$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The months. Without view_cashflow the page is hidden (404 route.not_found).application/json
Errors400404422503One problem shape

#The starting money with its month and the VAT rates of the invoice dialog (§6)

GET/finance/cashflow/settings
Session (app only)F-FIN-16

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The cashflow settings.application/json
Errors404503One problem shape

#Set the starting money with its month, the VAT rates, or both (manage_cashflow; §6)

PUT/finance/cashflow/settings
Session (app only)F-FIN-16

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Request body application/jsonrequired

Loading the schema…

Responses

200The cashflow settings, read back.application/json
Errors403404422One problem shape

#The currency registry with the tenant's enabled and base flags

GET/finance/currencies
Session (app only)F-FIN-01

Query parameters

filter[enabled]boolean

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The currencies, ordered by code.application/json
Errors403404One problem shape

#The exchange-rate versions, newest effective date first

GET/finance/exchange-rates
Session (app only)F-FIN-01

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

filter[currency]string

Pattern ^[A-Z]{3}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200A page of 50 versions.application/json
Errors400403404One problem shape

#Record an exchange rate into the base currency from an effective date, or a correction

POST/finance/exchange-rates
Session (app only)Idempotency-KeyF-FIN-01

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The recorded version.application/json
Errors403404409422One problem shape

#The tenant's expense categories (names and kinds, no amounts)

GET/finance/expense-categories
Session (app only)F-FIN-10

Query parameters

filter[archived]boolean

Default: false

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The categories in their order, with the usage of each; the ETag is the list's version.application/json
Errors400403404One problem shape

#Replace the list of expense categories — add, rename, reorder and archive

PUT/finance/expense-categories
Session (app only)F-FIN-10

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchstring

OPTIONAL (group E1 live connect, 22 Nov 2026): the version of the list in quotes (meta.version of the read). A different version answers 412 stale-version with currentVersion, and nothing changes; absent compares nothing.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The active categories, with the usage of each; the ETag is the list's new version.application/json
Errors400403404409412422One problem shape

#The simple invoice list with the VAT rates of the dialog (R16–R18)

GET/finance/invoices
Session (app only)F-FIN-16

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The invoices, the newest due date first. Without view_cashflow the page is hidden (404 route.not_found).application/json
Errors404503One problem shape

#Add an open invoice; the VAT and the total are derived (R16)

POST/finance/invoices
Session (app only)Idempotency-KeyF-FIN-16

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The invoice, read back.application/json
Errors403404409422One problem shape

#Mark an invoice as open; the paid date is removed (R17)

POST/finance/invoices/{invoiceId}/open
Session (app only)Idempotency-KeyF-FIN-16

Path parameters

invoiceIdrequiredstring (uuid)

An invoice's id of the simple list; a missing one is 404 (invoice.not_found).

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

200The invoice, read back.application/json
Errors403404One problem shape

#Mark an invoice as paid on a date, today when no date is given (R17)

POST/finance/invoices/{invoiceId}/paid
Session (app only)Idempotency-KeyF-FIN-16

Path parameters

invoiceIdrequiredstring (uuid)

An invoice's id of the simple list; a missing one is 404 (invoice.not_found).

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/json

Loading the schema…

Responses

200The invoice, read back.application/json
Errors403404422One problem shape

#One row per project where the caller may see finance

GET/finance/portfolio
Session (app only)F-FIN-07

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

filter[teamId]string (uuid)
filter[alert]string

One of: none warning exceeded

filter[archived]boolean

Default: false

includestring

One of: forecast

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200A page of 25 projects by key.application/json
Errors400403404503One problem shape

#All spending lines, By person and the EUR totals (the Cashflow page; R08, R09, R12)

GET/finance/spendings
Session (app only)F-FIN-16

Query parameters

qstring

Only the lines whose name holds this text (any case).

Min length 1 · Max length 120

categorystring

Only the lines of this category (any case).

Min length 1 · Max length 60

projectstring

Only the lines of this project key, or global for the lines without a project.

Pattern ^([A-Za-z][A-Za-z0-9]{1,9}|global)$

activestring

true: only the lines that cost now; false: only the others.

One of: true false

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The lines as they are now. Without view_cashflow the page is hidden (404 route.not_found).application/json
Errors404503One problem shape

#Add a spending on the Cashflow page; the project is optional (R07)

POST/finance/spendings
Session (app only)Idempotency-KeyF-FIN-16

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The new line, read back.application/json
Errors403404422One problem shape

#Remove a line that has one row (R15); with=history deletes it with all its rows (R15a)

DELETE/finance/spendings/{itemId}
Session (app only)F-FIN-16

Path parameters

itemIdrequiredstring (uuid)

A spending item's id; hidden and missing are one 404 (spending.not_found).

Query parameters

withstring

history: delete the line with every row it has (R15a, owner Q39). Another value answers 400 query.invalid.

One of: history

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keystring

G262: the same durable command receipt key on a DELETE that takes it optionally. With a key, a retry answers the stored status; without a key, the request runs as before.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Responses

204The item and its rows are deleted.

No body.

Errors400403404409One problem shape

#Move a line to a category — every row, no new row (R22)

PUT/finance/spendings/{itemId}/category
Session (app only)F-FIN-16

Path parameters

itemIdrequiredstring (uuid)

A spending item's id; hidden and missing are one 404 (spending.not_found).

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Request body application/jsonrequired

Loading the schema…

Responses

200The line, read back.application/json
Errors403404422One problem shape

#A new amount from a month on, or a correction of the newest row in its own month (R03, R14)

POST/finance/spendings/{itemId}/changes
Session (app only)Idempotency-KeyF-FIN-16

Path parameters

itemIdrequiredstring (uuid)

A spending item's id; hidden and missing are one 404 (spending.not_found).

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The line, read back.application/json
Errors403404422One problem shape

#Change the amount of ONE month of a line; the line and the other months do not change (R23, OF-15); a one-time line takes any month (R10a)

PUT/finance/spendings/{itemId}/months/{month}
Session (app only)If-MatchF-FIN-16

Path parameters

itemIdrequiredstring (uuid)

A spending item's id; hidden and missing are one 404 (spending.not_found).

monthrequiredstring

The month of a one-month amount (F-FIN-16.R23), YYYY-MM.

Pattern ^[0-9]{4}-(0[1-9]|1[0-2])$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The line, read back; the ETag is its new monthsVersion.application/json
Errors400403404412422428503One problem shape

#The month uses the amount of the line again (R23, OF-15)

DELETE/finance/spendings/{itemId}/months/{month}
Session (app only)If-MatchF-FIN-16

Path parameters

itemIdrequiredstring (uuid)

A spending item's id; hidden and missing are one 404 (spending.not_found).

monthrequiredstring

The month of a one-month amount (F-FIN-16.R23), YYYY-MM.

Pattern ^[0-9]{4}-(0[1-9]|1[0-2])$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

200The line, read back; the ETag is its new monthsVersion.application/json
Errors400403404412422428503One problem shape

#Stop a repeating line from a month on (R04)

POST/finance/spendings/{itemId}/stop
Session (app only)Idempotency-KeyF-FIN-16

Path parameters

itemIdrequiredstring (uuid)

A spending item's id; hidden and missing are one 404 (spending.not_found).

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

200The line, read back.application/json
Errors403404422One problem shape

#One plan version with its totals and warnings

GET/plan-versions/{planVersionId}
Session (app only)F-FIN-05

Path parameters

planVersionIdrequiredstring (uuid)

A plan version's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The version (ETag is its version).application/json
Errors400403404503One problem shape

#Change the note of the draft

PATCH/plan-versions/{planVersionId}
Session (app only)If-MatchF-FIN-05

Path parameters

planVersionIdrequiredstring (uuid)

A plan version's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The draft with its new note (ETag is its version).application/json
Errors403404409412422428503One problem shape

#Discard the draft; it stays readable as history

DELETE/plan-versions/{planVersionId}
Session (app only)If-MatchF-FIN-05

Path parameters

planVersionIdrequiredstring (uuid)

A plan version's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

204Discarded.

No body.

Errors403404409412428One problem shape

#Approve the draft as the project's baseline; amounts freeze, the earlier baseline is superseded

POST/plan-versions/{planVersionId}/approve
Session (app only)Idempotency-KeyIf-MatchF-FIN-05

Path parameters

planVersionIdrequiredstring (uuid)

A plan version's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/json

Loading the schema…

Responses

200The approved version.application/json
Errors403404409412422428503One problem shape

#Add, change or delete up to 500 planned expense lines of a draft, all or nothing

POST/plan-versions/{planVersionId}/expense-line-changes
Session (app only)Idempotency-KeyIf-MatchF-FIN-10

Path parameters

planVersionIdrequiredstring (uuid)

A plan version's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The draft with its new totals and warnings.application/json
Errors403404409412422428One problem shape

#The planned expense lines of a plan version, by month then category

GET/plan-versions/{planVersionId}/expense-lines
Session (app only)F-FIN-10

Path parameters

planVersionIdrequiredstring (uuid)

A plan version's id; hidden and missing are one 404.

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

filter[month]string

Pattern ^[0-9]{4}-(0[1-9]|1[0-2])$

filter[categoryId]string (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200A page of 100 expense lines.application/json
Errors400403404503One problem shape

#Add, change or delete up to 500 lines of a draft, all or nothing

POST/plan-versions/{planVersionId}/line-changes
Session (app only)Idempotency-KeyIf-MatchF-FIN-05

Path parameters

planVersionIdrequiredstring (uuid)

A plan version's id; hidden and missing are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The draft with its new totals and warnings.application/json
Errors403404409412422428503One problem shape

#The lines of a plan version, by month then subject

GET/plan-versions/{planVersionId}/lines
Session (app only)F-FIN-05

Path parameters

planVersionIdrequiredstring (uuid)

A plan version's id; hidden and missing are one 404.

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

filter[month]string

Pattern ^[0-9]{4}-(0[1-9]|1[0-2])$

filter[teamId]string (uuid)
filter[subjectKind]string

One of: member role

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200A page of 100 lines.application/json
Errors400403404503One problem shape

#The project's alert rules in force and the states of its baseline

GET/projects/{projectKey}/budget-alerts
Session (app only)F-FIN-08

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The rules and states (ETag is the finance row's version); no amounts.application/json
Errors403404One problem shape

#Set the project's own alert rules, or return to the tenant default

PUT/projects/{projectKey}/budget-alerts
Session (app only)If-MatchF-FIN-08

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The rules and the re-evaluated states.application/json
Errors403404409412422428One problem shape

#Baseline, actual, provisional, estimate, remaining, forecast and variance of one project

GET/projects/{projectKey}/budget-comparison
Session (app only)F-FIN-07

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Query parameters

fromstring

Pattern ^[0-9]{4}-(0[1-9]|1[0-2])$

tostring

Pattern ^[0-9]{4}-(0[1-9]|1[0-2])$

grainstring

One of: month total · Default: "month"

bystring

One of: none member delivery_role team cost_type · Default: "none"

includestring

One of: estimates

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The comparison in the project's currency, for a holder of view_finance on the project.application/json
Errors400403404422503One problem shape

#The project's cost ledger entries, newest first

GET/projects/{projectKey}/cost-entries
Session (app only)F-FIN-06

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

filter[memberId]string (uuid)
filter[workDate][gte]string (date)
filter[workDate][lte]string (date)
filter[cause]string

One of: accepted reopened revised rate_changed role_changed exchange_changed rebuild

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200A page of 100 entries under the reader's time-visibility level, for a holder of view_finance on the project.application/json
Errors400403404503One problem shape

#Re-synchronise and re-price the project's accepted time from a date (a long-running operation)

POST/projects/{projectKey}/cost-rebuild
Session (app only)Idempotency-KeyF-FIN-06

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

202The operation; its result holds the scanned and changed counts.application/json
Errors400403404409422One problem shape

#The project's expenses, newest first

GET/projects/{projectKey}/expenses
Session (app only)F-FIN-11

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

filter[state]string

One of: recorded approved rejected withdrawn reversed

filter[categoryId]string (uuid)
filter[incurredOn][gte]string (date)
filter[incurredOn][lte]string (date)
filter[memberId]string (uuid)

The member the expenses are for (XM-874, from XM-869). Only for a reader of the member link (R10) — a holder of manage_finance on the project or of view_rates; any other reader gets 403 access.forbidden, so the filter never tells who an expense is for.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200A page of 50 expenses.application/json
Errors400403404503One problem shape

#Record an expense of the project (net of VAT), or a correction of a reversed one

POST/projects/{projectKey}/expenses
Session (app only)Idempotency-KeyF-FIN-11

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The expense (recorded, or approved when no approval is needed).application/json
Errors403404409422503One problem shape

#The project's finance profile — currency, billable flag, baseline and draft summaries, what the caller may do

GET/projects/{projectKey}/finance
Session (app only)F-FIN-03

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The profile (ETag is the finance row's version).application/json
Errors403404503One problem shape

#Change the project's currency (before the first amount) or its billable flag

PATCH/projects/{projectKey}/finance
Session (app only)If-MatchF-FIN-03

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The profile.application/json
Errors403404409412422428One problem shape

#The one budget amount of the project, spent so far, left and used (R20, R21)

GET/projects/{projectKey}/finance/budget
Session (app only)F-FIN-16

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The budget and the derived figures (the ETag is the finance row's version).application/json
Errors404503One problem shape

#Set the one budget amount of the project, or remove it with null (R20)

PUT/projects/{projectKey}/finance/budget
Session (app only)If-MatchF-FIN-16

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200The budget, read back.application/json
Errors403404409412422428503One problem shape

#The people of the project with the cost and bill rate that price their work here on a date (R15; audited)

GET/projects/{projectKey}/finance/member-rates
Session (app only)F-FIN-03

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Query parameters

asOfstring (date)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200One row per person of the project (R09), by name, at most 500; meta.truncated is true when the project has more (KDC-07).application/json
Errors400403404503One problem shape

#The active internal members who are not people of the project, by name, for "Add to this project" (R17)

GET/projects/{projectKey}/finance/people-candidates
Session (app only)F-FIN-03

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

qstring

Min length 1 · Max length 100

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200A page of 50 members by name, then id; links.next reads the next page.application/json
Errors400403404409One problem shape

#Change a person's delivery role and project rates on this project from a date, or correct the past (R18, R19; audited)

POST/projects/{projectKey}/finance/people/{memberId}/changes
Session (app only)Idempotency-KeyIf-MatchF-FIN-03

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

memberIdrequiredstring (uuid)

A member's id; a member outside the tenant and a missing one are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The person's history after the change (R16); the ETag is the new version. Warnings name a member who is not on the project.application/json
Errors400403404409412422428503One problem shape

#A dry run of a change — the roles and rates before and after, the accepted time repriced by month, the postings, timesheets, baselines and reports (R20); writes nothing

POST/projects/{projectKey}/finance/people/{memberId}/changes/preview
Session (app only)F-FIN-03

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

memberIdrequiredstring (uuid)

A member's id; a member outside the tenant and a missing one are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Request body application/jsonrequired

Loading the schema…

Responses

200What the change would do; no row, event or change audit record is written.application/json
Errors403404409422503One problem shape

#One person of the project — the role and rates today, the rate versions and role entries that price the person here, the version (R16; audited)

GET/projects/{projectKey}/finance/people/{memberId}/rate-history
Session (app only)F-FIN-03

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

memberIdrequiredstring (uuid)

A member's id; a member outside the tenant and a missing one are one 404.

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The person's history; the ETag is the person's version (R21), the If-Match of a change.application/json
Errors400403404503One problem shape

#The project's plan versions, newest first

GET/projects/{projectKey}/plan-versions
Session (app only)F-FIN-05

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Query parameters

page[cursor]string

The opaque cursor of the previous page's links.next (05-api §5).

Max length 512

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200A page of 25 versions with their totals.application/json
Errors400403404503One problem shape

#Start a draft — empty, from the baseline or from a named version

POST/projects/{projectKey}/plan-versions
Session (app only)Idempotency-KeyF-FIN-05

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The draft.application/json
Errors403404409422503One problem shape

#The lines of one project, By person and the EUR totals (the project's Finance page; R08, R19)

GET/projects/{projectKey}/spendings
Session (app only)F-FIN-16

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The project's lines as they are now.application/json
Errors404503One problem shape

#Add a spending with the project of the page (R07, R19)

POST/projects/{projectKey}/spendings
Session (app only)Idempotency-KeyF-FIN-16

Path parameters

projectKeyrequiredstring

A project key, upper-cased and resolved through the key aliases (04 §5.3); hidden and missing are one 404.

Pattern ^[A-Za-z][A-Za-z0-9]{1,9}$

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201The new line, read back.application/json
Errors403404422One problem shape

Was this helpful?