# Search Driver Values

Operation ID: `searchDriverValues`

Group: Value Accounting › Business Drivers › Driver Values

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

`POST /value-accounting/driver-values/search`

Read-only: A read that takes its filters in the body. Changes nothing, and ignores Idempotency-Key.

Read recorded business driver values: one row per value with the period it is in force in, its combination, and the combination's members nested as {dimensionCode, id, name}, so summing value never double-counts. Read-only, cursor-paginated. filters.driverId or filters.combinationIds is required (INVALID_FILTER otherwise); add entityId and bookId for one recording context. An As-of driver's later periods hold system-carried rows (isCarried true) up to its latest write or today; includeCarried false keeps only the explicitly recorded values, and materializeDriverValues (POST value-accounting/driver-values/materialize) fills in carried rows for periods no write has reached — this read writes nothing. Sum a cumulative driver across periods; for an As-of driver take the last period. A filter matching nothing — including an id naming no driver, entity, book, period, combination or member — returns an empty items array with HTTP 200; only an unknown dimension code is refused (UNSUPPORTED_DIMENSION_CODE). Rows are ordered by period start date, then id. The audit history is not part of this read.

Reads recorded business driver values: one row per value, with the period it is in force in, the combination it belongs to and that combination's members nested as `{dimensionCode, id, name}`, so a value tagged to a department and a team is ONE row, and summing `value` never double-counts.

Name the values to read: `filters.driverId`, `filters.combinationIds`, or both — a read across every driver mixes units and is refused with `INVALID_FILTER`. Add `entityId` and `bookId` for one recording context; a driver holds a separate value set per entity and book.

An As-of driver's value carries forward: every period after a recorded value holds a system-carried row (`isCarried: true`) with the value in force, up to the period of the latest write or today. Pass `includeCarried: false` to see only what was explicitly recorded. To read an As-of driver in a period no write has reached yet, call materializeDriverValues (POST value-accounting/driver-values/materialize) for those periods first — this read does not write. For a cumulative driver every period stands alone and periods may be summed; for an As-of driver take the last period instead.

A filter matching nothing returns an empty `items` array with HTTP 200 — that includes an id naming no driver, entity, book, period, combination or member. Rows are ordered by period start date, then id, and paged with a keyset cursor.

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

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `filters` | object | no | Which values to read; members combine with AND. driverId or combinationIds must be present: omitting filters, or sending neither, raises INVALID_FILTER. Example: `{"driverId":"0f1e4b9a-6a71-4a2c-8a0d-2f9c5d3b7e10","entityId":"6d2c8f31-b4a7-4e19-9f2b-77c0a1d4e5b2","bookId":"c3a91e07-52d4-4f6b-8e1a-9b0d2c7f4a63","accountingPeriodIds":["95dd0047-0f93-429b-af80-982416f97748"],"member":{"dimensionCode":"department","id":"7b4e2d19-8c3f-4a5e-b6d7-1e0f9a2c3b84"},"includeCarried":true}`. |
| `filters.driverId` | string | no | Id (a UUID) of the business driver, as returned by the businessDrivers data-set (GET value-accounting/business-drivers). Required unless combinationIds is given. An id naming no driver yields an empty page. Matched case-insensitively. |
| `filters.entityId` | string | no | Id (a UUID) of the legal entity of the recording context, as the accountingPeriods data-set of everest.fin.accounting (GET accounting/accounting-periods) returns it in entityId. A driver holds a separate value set per entity and book; omit to read every entity. Matched case-insensitively. |
| `filters.bookId` | string | no | Id (a UUID) of the accounting book of the recording context, as the accountingPeriods data-set of everest.fin.accounting (GET accounting/accounting-periods) returns it in bookId. Omit to read every book. Matched case-insensitively. |
| `filters.accountingPeriodIds` | array<string> | no | Ids (UUIDs) of the accounting periods to read, as the accountingPeriods data-set of everest.fin.accounting (GET accounting/accounting-periods) returns them in accountingPeriodId. Omit for every period the driver holds values in. Ids naming no period match nothing. Matched case-insensitively. At most 100 ids (TOO_MANY_REFERENCES otherwise). |
| `filters.combinationIds` | array<string> | no | Ids (UUIDs) of combinations to read — the combinationId of earlier rows. Enough on its own to name the values to read. Ids naming no combination match nothing. Matched case-insensitively. At most 100 ids (TOO_MANY_REFERENCES otherwise). |
| `filters.member` | object | no | Only the combinations containing this one master-data record. Both halves are required: a UUID is unique within its dimension, not across dimensions. |
| `filters.member.dimensionCode` | string | yes | Dimension of the record: 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.member.id` | string | yes | Id (a UUID) of the master-data record — the value resolveReportingTags (POST base/reporting-tags/resolve) returns as modelUuid. An id naming no record of that dimension yields an empty page. Matched case-insensitively. |
| `filters.includeCarried` | boolean | no | True (the default) includes the system-carried rows an As-of driver holds in the periods after a recorded value — the value in force there. False returns only the explicitly recorded values, e.g. to audit what was entered. |
| `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 it did not issue raises INVALID_CURSOR rather than silently restarting at the first page. Keep filters identical across the pages of one walk. It encodes the LAST ROW of the page you received, not a position, so a value recorded or deleted before your position cannot make a later page repeat or skip a row. |
| `page.size` | number | no | Maximum number of values 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. |

```json
{}
```

## Response

`200` Success

Under `data` (searchDriverValuesOutput):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array<object> | yes | The values on this page. Empty when nothing matched — an empty page with HTTP 200, never a 404. Ordered by the start date of their period, then by id; a value recorded after your cursor position appears on a later page, one recorded before it does not, and no row is repeated or skipped. |
| `items[].id` | string | yes | Id (a UUID) of the value — the id deleteDriverValue (DELETE value-accounting/driver-values/:id) and the editValueId of recordDriverValue (POST value-accounting/driver-values) take. A system-carried row has an id too, but cannot be deleted on its own. |
| `items[].combinationId` | string | yes | Id (a UUID) of the combination the value belongs to: the persistent anchor of one full member set within one recording context, and the combinationId the end and reactivate routes take. Group by it to follow one combination across periods. |
| `items[].driverId` | string | yes | Id (a UUID) of the business driver. |
| `items[].entityId` | string | yes | Id (a UUID) of the legal entity of the recording context. |
| `items[].bookId` | string | yes | Id (a UUID) of the accounting book of the recording context. |
| `items[].accountingPeriodId` | string | yes | Id (a UUID) of the accounting period the value is in force in. |
| `items[].value` | decimal | yes | The quantity, in the driver's unit. For a cumulative driver the amount of this period alone; for an As-of driver the level in force in this period. |
| `items[].isCarried` | boolean | yes | True for a SYSTEM-CARRIED row: nobody entered it, it is the As-of value carried forward from the last recorded value before it. It cannot be deleted on its own; change or delete the recorded value it derives from. False for a recorded value. |
| `items[].calculationType` | string | yes | The driver's calculation type, 'asOf' or 'cumulative', repeated on every row because it decides how values aggregate: sum a cumulative driver across periods, take the last period of an As-of one. |
| `items[].members` | array<object> | yes | The full dimension combination, one entry per dimension the driver declares. |
| `items[].members[].dimensionCode` | string | yes | Dimension of the record, in the codes the member filter takes. |
| `items[].members[].id` | string | no | Id (a UUID) of the master-data record. Absent when the record no longer resolves in the tagging catalog — a deleted record, or a value center while the tenant's Value Center dimension is switched off. |
| `items[].members[].name` | string | no | Display name of the record as the tagging catalog shows it (a coded department reads '<code> <name>'). Absent exactly when id is. |
| `items[].lastModifiedDate` | date-time | yes | Instant the value row last changed — a recorded correction, a propagated or reverted carried value — as ISO 8601 UTC (YYYY-MM-DDTHH:mm:ss.sssZ). |
| `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 values remain beyond this page. |

```json
{
  "data": {
    "items": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "combinationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "driverId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "entityId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "bookId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "accountingPeriodId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "value": "19.99",
        "isCarried": true,
        "calculationType": "<calculationType>",
        "members": [
          {
            "dimensionCode": "<dimensionCode>",
            "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
            "name": "<name>"
          }
        ],
        "lastModifiedDate": "2026-01-15T09:30:00.000Z"
      }
    ],
    "pagination": {
      "nextCursor": "<nextCursor>",
      "hasMore": true
    }
  },
  "diagnostics": [
    {
      "code": "<code>",
      "message": "<message>",
      "severity": "error",
      "path": [
        "<path>"
      ],
      "details": "<details>"
    }
  ]
}
```

## Errors

| Code | Status |
| --- | --- |
| `INVALID_FILTER` | 400 |
| `TOO_MANY_REFERENCES` | 400 |
| `UNSUPPORTED_DIMENSION_CODE` | 400 |
| `INVALID_CURSOR` | 400 |

## Statuses

- `400` — Invalid request or business failure. Codes: INVALID_FILTER, TOO_MANY_REFERENCES, UNSUPPORTED_DIMENSION_CODE, INVALID_CURSOR
- `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
