# Value Objects

Operation ID: `valueObjects`

Group: Value Accounting › Value Objects

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

`GET /value-accounting/value-objects`

Read-only: Reads and returns; changes nothing.

List the value objects this tenant holds — the value-accounting records journal lines are allocated to, each standing for one master-data record (a department, customer, employee, …) or a cluster of several — one row per value object, with structured filters. GET data-set exposing filter[field][op]= (eq/ne/gt/gte/lt/lte/in/notIn/between/like), sort=startDate or sort=-lastModifiedDate, sparse fields=, and page[size]/page[cursor] cursor pagination. filter[status][eq]=active keeps the ones in effect today. Names and object numbers are returned but cannot be filtered or sorted on here, and the mappings are summarised as mappingCount only: to find a value object by name, by number, or by the master-data record it stands for, and to read its mappings, use searchValueObjects (POST value-accounting/value-objects/search) or getValueObject (GET value-accounting/value-objects/:id).

## 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
- `startDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `endDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `status` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `categoryId` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `lastModifiedDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- Orderable: id, status, categoryId, startDate, endDate, lastModifiedDate
- Selectable: id, name, objectNumber, startDate, endDate, status, categoryId, mappingCount, lastModifiedDate
- `page[size]` — Page size
- `page[cursor]` — Opaque continuation cursor

## Response

`200` Success

Under `data`, an array of valueObjectsRow:

| 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 object — the public identifier getValueObject, updateValueObject and deleteValueObject (GET/PATCH/deleteValueObject) are keyed by. Filter target: filter[id][in]=<id1>,<id2>. |
| `name` | string | no | no | no | Display name of the value object — for a mirror of a master-data record, the record's name, kept in step by the system. Names are NOT unique. Returned only: search by name fragment with searchValueObjects (POST value-accounting/value-objects/search). |
| `objectNumber` | string | no | no | no | Business number of the value object, unique tenant-wide: the mapped record's own number or code for a 1:1 value object, a generated 'VO-n' otherwise. Returned only: look one up with filters.objectNumber on searchValueObjects (POST value-accounting/value-objects/search). |
| `startDate` | date | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | First day the value object is valid, inclusive. Format YYYY-MM-DD. |
| `endDate` | date \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | Last day the value object is valid, inclusive. Format YYYY-MM-DD. Absent when it is open-ended, the normal state. A delete that finds it in use sets it (the value object and its mappings are deactivated rather than deleted); reactivateValueObjects (POST value-accounting/value-objects/reactivate) clears it again. |
| `status` | string | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | Lifecycle state, derived from the dates on every read and never stored: 'active' (started, and no endDate or one on or after today, UTC — the end date is inclusive), 'planned' (startDate after today), 'inactive' (endDate before today) or 'canceled' (endDate before startDate). Filter target: filter[status][eq]=active. |
| `categoryId` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | Id (a UUID) of the category the value object is filed under, as listed by the categories data-set (GET value-accounting/categories). Absent when it is uncategorised. Filter target: filter[categoryId][eq]=<id>. |
| `mappingCount` | number | no | no | no | How many master-data mappings the value object carries: 1 for a value object standing for one record, more for a cluster. Every value object created today has at least one; 0 appears only on rows older than that rule. The mappings themselves, with each record's {dimensionCode, id}, are on getValueObject (GET value-accounting/value-objects/:id) and searchValueObjects (POST value-accounting/value-objects/search). Returned only. |
| `lastModifiedDate` | date-time | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | Instant the value object'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 mappings alone. |

```json
{
  "data": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "name": "<name>",
      "objectNumber": "<objectNumber>",
      "startDate": "2026-01-15",
      "endDate": "2026-01-15",
      "status": "<status>",
      "categoryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "mappingCount": 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
