Get Value Allocation
Operation ID: getValueAllocation
Group: Value Accounting › Value Allocations
Open in the interactive reference
GET /value-accounting/value-allocations/{id}
Read-only: Reads and returns; changes nothing.
Fetch one value allocation — the link record a posted journal entry line points at — by its id, with every line: which value object or value center each line attributes the journal line's amount to, the master-data record it was tagged for (record as {dimensionCode, id}), its role (cost, profit, value or metric), its allocation rule and its split parent. Read-only. 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. Use searchValueAllocations (POST value-accounting/value-allocations/search) to find the allocations attributed to a master-data record, a value object or a value center. An id that matches nothing is rejected with NOT_FOUND rather than returning an empty body.
Fetches one value allocation by the id in the path, with every one of its lines.
A value allocation is the link record a posted journal entry line points at. It holds no amount: each line says which value object or value center the journal line's amount is attributed to and in which role — allocationLineType 'profit' counts it as revenue, 'cost' as cost, 'value' and 'metric' as neither. isOffset and draftAllocation are two independent exclusions: when either is true, no value-accounting report counts the allocation's journal lines, while the general ledger keeps them.
Each line names what it attributes to. valueObjectId / valueCenterId are the value object or value center. record is the master-data record the line was tagged for, as the pair {dimensionCode, id} the associations resource speaks — set by every tagging flow, and the line's only statement of attribution when the record had no value object yet, so read it whenever valueObjectId is absent. It is absent on a line tagged with a cluster value object (which stands for several records) and on a line written by hand. allocationRule is the rule that produced the line as {path, id}; automatic allocation rules are not implemented yet, so it is normally absent. splitParentId is the line this one was split from.
The allocation does not know its document: the journal entry line holds the reference to the allocation, not the other way round, so a document's allocation is found from the document's side. An id that matches nothing fails with NOT_FOUND rather than returning an empty body.
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. |
id |
path | string | yes | Id (a UUID) of the value allocation to fetch; bound from the :id path segment. Obtain it from the valueAllocations data-set (GET value-accounting/value-allocations) or the search. An id that matches no allocation is rejected with NOT_FOUND. Ids are matched case-insensitively and returned in canonical lowercase. |
Response
200 Success
Under data (getValueAllocationOutput):
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | yes | Id (a UUID) of the value allocation — the id that was passed in, in canonical lowercase. |
documentType |
string | yes | Kind of financial document the allocation was recorded for — one of the 37 kinds the valueAllocations data-set (GET value-accounting/value-allocations) lists, e.g. 'VendorBill', 'Invoice', 'JournalEntry', 'Payroll', 'TimeRecord'. A label written by the flow that created the allocation, not a reference: it names no document. |
allocationDate |
date | yes | Day the allocation was recorded, normally the source document's date. Format YYYY-MM-DD. Not the day reporting buckets by — that is the journal entry line's posting date and posting period. |
draftAllocation |
boolean | yes | True while the source document is still a draft: no value-accounting report counts the allocation's journal lines. The document's business — no route writes it. A stored null reads as false. |
isOffset |
boolean | yes | True for the allocation of an offset-account line: it may carry tags, but no value-accounting report counts its journal lines, while the general ledger keeps the amount. A stored null reads as false. Change it with isOffset on updateValueAllocation (PATCH value-accounting/value-allocations/:id). |
lineCount |
number | yes | How many lines the allocation carries — the length of lines, the same number the list publishes. |
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 publishes; an edit of the lines alone does not move it. |
lines |
array<object> | yes | The allocation's lines, oldest first — each one attribution of the journal line's amount. Edit them with updateLines / deleteLines on updateValueAllocation (PATCH value-accounting/value-allocations/:id); lines are created only by tagging the document. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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). |
lines[].record.id |
string | yes | Id (a UUID) of the master-data record, in canonical lowercase. |
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. |
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. |
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. |
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. |
{
"data": {
"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": "<dimensionCode>",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"allocationRule": {
"path": "<path>",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"splitParentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
},
"diagnostics": [
{
"code": "<code>",
"message": "<message>",
"severity": "error",
"path": [
"<path>"
],
"details": "<details>"
}
]
}
Errors
| Code | Status |
|---|---|
NOT_FOUND |
400 |
Statuses
400— Invalid request or business failure. Codes: 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