# Value Allocations

Operation ID: `valueAllocations`

Group: Value Accounting › Value Allocations

[Open in the interactive reference](https://lensing.ai/api-docs/lensing/v1/endpoints/valueAllocations)

`GET /value-accounting/value-allocations`

Read-only: Reads and returns; changes nothing.

List the tenant's value allocations — the link records a posted journal entry line points at to say which value objects and value centers its amount is attributed to — one row per allocation, with structured filters. GET data-set exposing filter[field][op]= (eq/ne/gt/gte/lt/lte/in/notIn/between/like), sort=allocationDate or sort=-lastModifiedDate, sparse fields=, and page[size]/page[cursor] cursor pagination. filter[draftAllocation][eq]=false together with filter[isOffset][eq]=false keeps exactly the allocations value-accounting reporting counts. The lines are summarised as lineCount only: to read what an allocation attributes, use getValueAllocation (GET value-accounting/value-allocations/:id); to find the allocations attributed to a value object, a value center or a master-data record, use searchValueAllocations (POST value-accounting/value-allocations/search). There is no journal-line, account or amount column — the money lives on the journal entry line, which points at the allocation, never the other way round. Allocations are created by tagging a financial document, never through these routes.

## 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`. |

## Query surface

- `id` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `documentType` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `allocationDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `draftAllocation` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `isOffset` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `lastModifiedDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- Orderable: id, documentType, allocationDate, draftAllocation, isOffset, lastModifiedDate
- Selectable: id, documentType, allocationDate, draftAllocation, isOffset, lineCount, lastModifiedDate
- `page[size]` — Page size
- `page[cursor]` — Opaque continuation cursor

## Response

`200` Success

Under `data`, an array of valueAllocationsRow:

| Field | Type | Required | Filter | Sort | Description |
| --- | --- | --- | --- | --- | --- |
| `id` | string | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | Stable, platform-assigned id (a UUID) of the value allocation — the public identifier getValueAllocation, updateValueAllocation and deleteValueAllocation (GET/PATCH/deleteValueAllocation) are keyed by. Filter target: filter[id][in]=<id1>,<id2>. |
| `documentType` | string | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | Kind of financial document the allocation was recorded for. 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' (37 kinds). A label written by the flow that created the allocation, not a reference: it names no document. Filter target: filter[documentType][eq]=VendorBill. |
| `allocationDate` | date | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | Day the allocation was recorded, normally the source document's own date. Format YYYY-MM-DD. NOT the day value-accounting reporting buckets by: reports bucket by the journal entry line's posting date and posting period. Filter target: filter[allocationDate][between]=2026-01-01,2026-03-31. |
| `draftAllocation` | boolean | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | True while the source document is still a draft. A draft allocation's journal lines are excluded from all value-accounting reporting; the flag is the document's business and no route writes it. False for a posted document (a stored null reads as false). Filter target: filter[draftAllocation][eq]=false. |
| `isOffset` | boolean | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | True for the allocation of an OFFSET-account line: it may carry tags, but every journal line of it is deliberately excluded from all value-accounting reporting while the general ledger keeps the amount. False for a normal allocation (a stored null reads as false). Change it with isOffset on updateValueAllocation (PATCH value-accounting/value-allocations/:id). Filter target: filter[isOffset][eq]=false. |
| `lineCount` | number | no | no | no | How many lines the allocation carries — each line one attribution of the journal line's amount to a value object or value center. 0 is possible for an allocation whose lines were all removed; it then attributes nothing. The lines themselves are on getValueAllocation (GET value-accounting/value-allocations/:id). Returned only. |
| `lastModifiedDate` | date-time | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | Instant the allocation's own fields last changed, as ISO 8601 UTC (YYYY-MM-DDTHH:mm:ss.sssZ). Filter and sort on this to sync incrementally: filter[lastModifiedDate][gte]=2026-09-01T00:00:00.000Z with sort=lastModifiedDate. An update that changes nothing does not move it, and neither does an edit of the lines alone. |

```json
{
  "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"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "<nextCursor>"
  }
}
```

## Statuses

- `400` — Invalid request or business failure
- `401` — The request carries no valid access token.
- `403` — Not authorized
- `404` — Not found
- `429` — Too many requests from this client address. The response has no body and no `Retry-After` header.
- `500` — Internal server error
