Search Value Allocations
Operation ID: searchValueAllocations
Group: Value Accounting › Value Allocations
Open in the interactive reference
POST /value-accounting/value-allocations/search
Read-only: A read that takes its filters in the body. Changes nothing, and ignores Idempotency-Key.
Search value allocations by what their lines attribute to — a master-data record (filters.record: {dimensionCode, id}), a value object or a value center — and by document type, allocation date range, draftAllocation and isOffset. 'What is allocated to department X' is filters.record: {dimensionCode: 'department', id: <the department's id>}. Read-only, cursor-paginated, and every row carries all of its lines. filters.record matches the record each line was TAGGED for — the identity every tagging flow writes, which also finds lines written while the record had no value object yet; a line tagged with a cluster value object names no single record and is found by filters.valueObjectId instead. Omitting filters returns every allocation, paged. A document type, date range or flag matching nothing returns an empty items array with HTTP 200 — but the record, value object and value center are the subject of the question: an unknown one is RECORD_NOT_FOUND / UNSUPPORTED_DIMENSION_CODE / VALUE_OBJECT_NOT_FOUND / VALUE_CENTER_NOT_FOUND. Rows carry the same fields as getValueAllocation (GET value-accounting/value-allocations/:id). The allocation does not know its document — the journal entry line holds the reference — so find a document's allocation from the document's side. POST rather than GET because a record pair does not belong in a URL.
Finds value allocations by what their lines attribute to — a master-data record, a value object or a value center — and by document type, allocation date range and the two exclusion flags: the audit question 'what is allocated to department X'.
This is the lookup the routed list cannot do: the valueAllocations data-set (GET value-accounting/value-allocations) carries no lines. filters.record takes the same {dimensionCode, id} pair the associations resource speaks and matches every allocation with a line TAGGED for that record — the identity every tagging flow writes on its lines, including lines written while the record had no value object yet, which carry no valueObjectId at all. filters.valueObjectId and filters.valueCenterId match lines that name that value object or value center. A line tagged with a cluster value object names no single record, so it is found by the value object, not by any of its records.
An empty filters is a valid request for every allocation, paged. A document type, date range or flag that matches nothing returns an empty items array with HTTP 200. The record, value object and value center are the subject of the question, so one that does not exist is refused (RECORD_NOT_FOUND, UNSUPPORTED_DIMENSION_CODE, VALUE_OBJECT_NOT_FOUND, VALUE_CENTER_NOT_FOUND) rather than answered with an empty page that would read as 'nothing is allocated to it'.
Rows carry the same fields as getValueAllocation (GET value-accounting/value-allocations/:id), every line included. The journal entry lines themselves are not here: they point at the allocation, so a document's allocation is found from the document's side.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Api-Version |
header | string · v1 | yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version v1. |
Request body
Required, application/json: searchValueAllocationsInput.
| Field | Type | Required | Description |
|---|---|---|---|
filters |
object | no | How to narrow the search. An allocation must match every member you send. Omit it — or send it with no members — to page through every allocation. Example: {"record":{"dimensionCode":"department","id":"0f1e4b9a-6a71-4a2c-8a0d-2f9c5d3b7e10"},"isOffset":false,"draftAllocation":false}. |
filters.record |
object | no | A master-data record: only allocations with at least one line tagged for it match. The same pair ensureRelationship (POST value-accounting/associations) takes. The tag identity is what every tagging flow writes on a line: for a value-object line the one record the value object represents, for a value-center line the value center itself (dimensionCode 'valueCenter'). A record that does not exist is RECORD_NOT_FOUND and an unknown dimension code UNSUPPORTED_DIMENSION_CODE; a record that exists but nothing is allocated to yields an empty page. |
filters.record.dimensionCode |
string | yes | Dimension the record belongs to. One of 'department', 'businessUnit', 'team', 'location', 'region', 'employee', 'vendor', 'customer', 'valueCenter', 'custom' ('custom' being a custom value object). An unknown code raises UNSUPPORTED_DIMENSION_CODE. |
filters.record.id |
string | yes | Id (a UUID) of the master-data record — the same value resolveReportingTags (POST base/reporting-tags/resolve) returns as modelUuid. An id that resolves to no record of that dimension raises RECORD_NOT_FOUND. Matched case-insensitively. |
filters.valueObjectId |
string | no | Id (a UUID) of a value object, from the valueObjects data-set (GET value-accounting/value-objects): only allocations with at least one line attributing to it match. An id that names no value object is VALUE_OBJECT_NOT_FOUND. Matched case-insensitively. |
filters.valueCenterId |
string | no | Id (a UUID) of a value center, from the valueCenters data-set (GET value-accounting/value-centers): only allocations with at least one line attributing to it match. An id that names no value center is VALUE_CENTER_NOT_FOUND. Matched case-insensitively. |
filters.documentType |
string | no | Kind of financial document to keep — one of the 37 kinds. Omit for every kind. One of: "VendorBill", "Invoice", "JournalEntry", "Revenue", "Expense", "BankEntry", "OutboundPayment", "Reversal", "Revaluation", "CustomerPayment", "CreditMemo", "DebitMemo", "Payroll", "VendorCredit", "CreditCardEntry", "RevaluationReversal", "Allocation", "Depreciation", "AccruedLiability", "AmortizationSchedule", "RevaluationClose", "NetZeroImpact", "FundTransfer", "SalesOrder", "DeferredRevenueReclass", "UnbilledARAdjustment", "ShortAndLongTermDeferredRevenueReclass", "ManualTaxableDocument", "IntercompanyBill", "InventoryIncrease", "InventoryDecrease", "InventoryRevaluation", "PurchaseRequest", "PurchaseOrder", "FixedAsset", "EmployeeAdvanceRequest", "TimeRecord". |
filters.allocationDate |
object | no | Inclusive window on allocationDate (the day the allocation was recorded, not the journal entry line's posting date). Either bound may be omitted. A window whose from is after its to matches nothing — an empty page, not an error. |
filters.allocationDate.from |
date | no | First day to keep, inclusive. Format YYYY-MM-DD. |
filters.allocationDate.to |
date | no | Last day to keep, inclusive. Format YYYY-MM-DD. |
filters.draftAllocation |
boolean | no | true keeps only allocations of documents still in draft, false only the others (a stored null counts as false). Omit for both. |
filters.isOffset |
boolean | no | true keeps only offset-account allocations, false only the others (a stored null counts as false). Omit for both. false together with draftAllocation false keeps exactly what value-accounting reporting counts. |
page |
object | no | Cursor and page size. Omit for the first page at the default size. Example: {"size":50}. |
page.cursor |
string | no | Opaque forward cursor from a previous response's pagination.nextCursor; omit for the first page. Do not construct or decode it — a token is bound to this endpoint, so one this endpoint did not issue (a cursor from another list, or one altered by hand) raises INVALID_CURSOR rather than silently restarting at the first page, which would make a paging loop repeat forever. Keep filters identical across the pages of one walk; changing it mid-walk re-interprets the cursor against a different result set. It encodes the LAST ROW of the page you received, not a position, so the walk resumes AT THAT ROW rather than at a count: a row created or removed before your position cannot make a later page repeat a row you already saw or skip one you have not. |
page.size |
number | no | Maximum number of allocations to return. Defaults to 50, capped at 200; a larger value is clamped rather than rejected, so the server may return fewer but never more. |
{}
Response
200 Success
Under data (searchValueAllocationsOutput):
| Field | Type | Required | Description |
|---|---|---|---|
items |
array<object> | yes | The allocations on this page, one row per allocation with all of its lines, in the same shape getValueAllocation (GET value-accounting/value-allocations/:id) returns. Empty when nothing matched — an empty page with HTTP 200, never a 404. Ordered by id ascending — a unique, immutable key. The cursor is a KEYSET cursor over that order, so an allocation created after your cursor position appears on a later page, one created before it does not, and no row is ever repeated or skipped, whatever else is written while you walk. |
items[].id |
string | yes | Id (a UUID) of the value allocation — the id getValueAllocation, updateValueAllocation and deleteValueAllocation (GET, PATCH and DELETE value-accounting/value-allocations/:id) are keyed by. |
items[].documentType |
string | yes | Kind of financial document the allocation was recorded for — one of the 37 kinds. A label, not a reference. |
items[].allocationDate |
date | yes | Day the allocation was recorded. Format YYYY-MM-DD. Not the day reporting buckets by. |
items[].draftAllocation |
boolean | yes | True while the source document is still a draft; such an allocation is excluded from all value-accounting reporting. |
items[].isOffset |
boolean | yes | True for an offset-account allocation, excluded from all value-accounting reporting. |
items[].lineCount |
number | yes | How many lines the allocation carries — the length of lines. |
items[].lastModifiedDate |
date-time | yes | Instant the allocation's own fields last changed, as ISO 8601 UTC (YYYY-MM-DDTHH:mm:ss.sssZ). The same value the list and the keyed read publish. |
items[].lines |
array<object> | yes | The allocation's lines, oldest first — the same entries getValueAllocation (GET value-accounting/value-allocations/:id) returns, ALL of the allocation's lines, not only the ones that matched the filter. |
items[].lines[].id |
string | yes | Id (a UUID) of the line itself — what updateLines and deleteLines on updateValueAllocation (PATCH value-accounting/value-allocations/:id) are keyed by. |
items[].lines[].allocationLineType |
string | yes | Whether reporting counts the line's amount as revenue, cost or neither: 'profit' → revenue (the journal line's signed amount negated, as amounts are stored debit-positive), 'cost' → cost, 'value' → excluded from every revenue, cost and margin figure, 'metric' → a NON-MONETARY quantity (the hours of a time record), excluded the same way. |
items[].lines[].allocationType |
string | yes | Origin of the attribution: 'primary' (the source document's own main value object or value center) or 'secondary' (added by tagging). Documentation — no report filters on it. |
items[].lines[].valueStatus |
string | yes | Workflow state of the attribution: 'assigned' (assigned, e.g. as overhead, not yet allocated onward), 'allocated' or 'split' (split off another line). Documentation — no report filters on it. |
items[].lines[].allocationDate |
date | yes | Day recorded on the line itself. Format YYYY-MM-DD. Documentation — reporting buckets by the journal entry line's posting date, never by this date. |
items[].lines[].valueCenterId |
string | no | Id (a UUID) of the value center the amount is attributed to, as getValueCenter (GET value-accounting/value-centers/:id) reads it. Absent — not null — on a line that attributes to a value object, or to a record with no value object yet. |
items[].lines[].valueObjectId |
string | no | Id (a UUID) of the value object the amount is attributed to, as getValueObject (GET value-accounting/value-objects/:id) reads it. Absent — not null — on a line that attributes to a value center, and on a line written for a master-data record that had no value object yet; record then says what it attributes to. |
items[].lines[].record |
object | no | The master-data record the line was tagged for, as the pair ensureRelationship (POST value-accounting/associations) and resolveReportingTags (POST base/reporting-tags/resolve) use — for a value-object line the one record that value object represents, for a value-center line the value center itself (dimensionCode 'valueCenter'). Every tagging flow writes it, and it is the only statement of attribution on a line whose record had no value object yet. Absent on a line tagged with a CLUSTER value object (it stands for several records, so no single one can be named), on a line written by hand, and when the record no longer resolves. |
items[].lines[].record.dimensionCode |
string | yes | Dimension the record belongs to: one of 'department', 'businessUnit', 'team', 'location', 'region', 'employee', 'vendor', 'customer', 'valueCenter', 'custom' (a custom value object). |
items[].lines[].record.id |
string | yes | Id (a UUID) of the master-data record, in canonical lowercase. |
items[].lines[].allocationRule |
object | no | The allocation rule that produced the line — one reference in two parts, set and cleared together. Automatic allocation rules are not implemented yet, so it is normally absent. Absent — not null — when unset. |
items[].lines[].allocationRule.path |
string | yes | Model URN naming the kind of record the rule is: 'urn:evst:everest:valueaccounting/base:model/node:ValueCenterAssociation' (a value-center rule) or 'urn:evst:everest:valueaccounting/base:model/node:ValueObjectAssociation' (a value-object rule). Published exactly as stored. |
items[].lines[].allocationRule.id |
string | no | Id (a UUID) of the rule record in the node path names. Absent when the stored rule no longer resolves to a record there — the package layer stores the pair without checking it. |
items[].lines[].splitParentId |
string | no | Id (a UUID) of the line this one was split from — it may belong to another allocation. Absent — not null — for an ordinary line. |
pagination |
object | yes | Pagination cursor for this page. |
pagination.nextCursor |
string | no | Opaque cursor to pass as page.cursor for the next page; absent on the last page. |
pagination.hasMore |
boolean | yes | True when more allocations remain beyond this page. |
{
"data": {
"items": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"documentType": "<documentType>",
"allocationDate": "2026-01-15",
"draftAllocation": true,
"isOffset": true,
"lineCount": 0,
"lastModifiedDate": "2026-01-15T09:30:00.000Z",
"lines": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"allocationLineType": "<allocationLineType>",
"allocationType": "<allocationType>",
"valueStatus": "<valueStatus>",
"allocationDate": "2026-01-15",
"valueCenterId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"valueObjectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"record": {
"dimensionCode": null,
"id": null
},
"allocationRule": {
"path": null,
"id": null
},
"splitParentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}
],
"pagination": {
"nextCursor": "<nextCursor>",
"hasMore": true
}
},
"diagnostics": [
{
"code": "<code>",
"message": "<message>",
"severity": "error",
"path": [
"<path>"
],
"details": "<details>"
}
]
}
Errors
| Code | Status |
|---|---|
INVALID_CURSOR |
400 |
UNSUPPORTED_DIMENSION_CODE |
400 |
RECORD_NOT_FOUND |
400 |
VALUE_OBJECT_NOT_FOUND |
400 |
VALUE_CENTER_NOT_FOUND |
400 |
Statuses
400— Invalid request or business failure. Codes: INVALID_CURSOR, UNSUPPORTED_DIMENSION_CODE, RECORD_NOT_FOUND, VALUE_OBJECT_NOT_FOUND, VALUE_CENTER_NOT_FOUND401— The request carries no valid access token.403— Not authorized404— Not found429— Too many requests from this client address. The response has no body and noRetry-Afterheader.500— Internal server error