Bulk Record Driver Values
Operation ID: bulkRecordDriverValues
Group: Value Accounting › Business Drivers › Driver Values
Open in the interactive reference
POST /value-accounting/driver-values/bulk
Retry-safe: A write that accepts Idempotency-Key: repeating a request with the same key replays the stored answer instead of executing twice.
Record or correct many business driver values for ONE driver, entity and book in one call; returns their ids in the order sent. WRITES. Each row of driverValues is one recording as recordDriverValue (POST value-accounting/driver-values) takes it — period, value, the full member combination as {dimensionCode, id}, optional editValueId. The rows are applied NEWEST PERIOD FIRST whatever their order, so the outcome never depends on the order sent. propagate is two-valued here: omitted means false, and no row is withheld for a propagation decision. Every declared refusal — unknown ids, an editValueId of another context or period, a moved value landing on an occupied combination, a system driver (SYSTEM_DRIVER), an inactive driver, a value that is not a number, incomplete members, a period of another calendar, a locked or future period — is checked for the WHOLE batch before the first write, so a refusal means nothing was written.
Records or corrects MANY business driver values for one driver, entity and book in one call, and returns their ids in the order you sent the rows.
Each row of driverValues is one recording exactly as recordDriverValue (POST value-accounting/driver-values) takes it — period, value, the full member combination, optionally editValueId — minus the shared driver, entity and book.
The flow applies the rows NEWEST PERIOD FIRST, whatever order you send them in, so the result never depends on your order: an earlier period's As-of value cannot overwrite the carried rows a later row of the same batch has just set.
propagate is two-valued here: a batch has no prompt, so leaving it out means false and no row is ever withheld.
Every refusal this endpoint declares is checked for the WHOLE batch before the first write, including SYSTEM_DRIVER, so a refusal means nothing was written.
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. |
Idempotency-Key |
header | string | no | An opaque caller-chosen string (1-255 characters) that makes this request safe to retry. Repeating the same key with an identical request body replays the original response instead of re-executing - but only once that original request succeeded; a failed attempt re-executes on retry. Repeating the key with a different body is answered with 422. A key still in flight is answered with 409 - as is a key whose original request was interrupted before it finished, for a few minutes afterwards, until that attempt is presumed dead. A completed response stays replayable for 24 hours. The key is scoped to the caller, not to the action: reusing it for a different action is answered with 409 or 422 rather than treated independently. On read actions this header is ignored. On write actions that cannot offer the guarantee it is answered with 400 IDEMPOTENCY_NOT_SUPPORTED rather than silently ignored. |
Request body
Required, application/json: bulkRecordDriverValuesInput.
| Field | Type | Required | Description |
|---|---|---|---|
driverId |
string | yes | Id (a UUID) of the business driver every row records against. It must be active and not a system driver. Matched case-insensitively. Example: "0f1e4b9a-6a71-4a2c-8a0d-2f9c5d3b7e10". |
entityId |
string | yes | Id (a UUID) of the legal entity every row belongs to — one recording context for the whole batch. Matched case-insensitively. Example: "6d2c8f31-b4a7-4e19-9f2b-77c0a1d4e5b2". |
bookId |
string | yes | Id (a UUID) of the accounting book every row belongs to. Matched case-insensitively. Example: "c3a91e07-52d4-4f6b-8e1a-9b0d2c7f4a63". |
driverValues |
array<object> | yes | The recordings. Their order does not matter for the outcome; the ids come back in this order. Example: [{"accountingPeriodId":"95dd0047-0f93-429b-af80-982416f97748","value":"42","members":[{"dimensionCode":"department","id":"7b4e2d19-8c3f-4a5e-b6d7-1e0f9a2c3b84"}]}]. |
driverValues[].accountingPeriodId |
string | yes | Id (a UUID) of the accounting period this row records in. Open, not in the future, of the entity and book's fiscal calendar. Matched case-insensitively. |
driverValues[].value |
decimal | yes | The quantity in the driver's unit, as a decimal number. Anything that is not a number is INVALID_VALUE. Stored with at most 12 decimal places: further digits are rounded on the write. |
driverValues[].members |
array<object> | yes | The full dimension combination: one master-data record per declared dimension, all of them — the same rules as recordDriverValue (POST value-accounting/driver-values). |
driverValues[].members[].dimensionCode |
string | yes | Dimension of the record — the ten codes of recordDriverValue (POST value-accounting/driver-values). |
driverValues[].members[].id |
string | yes | Id (a UUID) of the master-data record. Matched case-insensitively. |
driverValues[].editValueId |
string | no | Id (a UUID) of an existing value this row corrects in place, under the same rules as recordDriverValue (POST value-accounting/driver-values). Omit for a normal write. |
propagate |
boolean | no | Whether As-of corrections carry forward through the carried rows after each corrected period. Omitted means FALSE here — unlike the single record, a batch never withholds a write. Ignored by cumulative drivers. Example: true. |
{
"driverId": "0f1e4b9a-6a71-4a2c-8a0d-2f9c5d3b7e10",
"entityId": "6d2c8f31-b4a7-4e19-9f2b-77c0a1d4e5b2",
"bookId": "c3a91e07-52d4-4f6b-8e1a-9b0d2c7f4a63",
"driverValues": [
{
"accountingPeriodId": "95dd0047-0f93-429b-af80-982416f97748",
"value": "42",
"members": [
{
"dimensionCode": "department",
"id": "7b4e2d19-8c3f-4a5e-b6d7-1e0f9a2c3b84"
}
]
}
]
}
Response
200 Success
Under data (bulkRecordDriverValuesOutput):
| Field | Type | Required | Description |
|---|---|---|---|
ids |
array<string> | yes | Ids (UUIDs) of the value rows written, one per row of driverValues and in the same order — match them by index. Two rows naming the same combination and period carry the same id. |
{
"data": {
"ids": [
"<ids>"
]
},
"diagnostics": [
{
"code": "<code>",
"message": "<message>",
"severity": "error",
"path": [
"<path>"
],
"details": "<details>"
}
]
}
Response headers
Idempotency-Replayed— Present andtrueonly when this response replays a previously stored one for the same Idempotency-Key, rather than reflecting a live execution. Absent on a live response - never sent asfalse.
Errors
| Code | Status |
|---|---|
DRIVER_NOT_FOUND |
400 |
ENTITY_NOT_FOUND |
400 |
BOOK_NOT_FOUND |
400 |
PERIOD_NOT_FOUND |
400 |
UNSUPPORTED_DIMENSION_CODE |
400 |
MEMBER_NOT_FOUND |
400 |
MEMBER_NAME_REQUIRED |
400 |
VALUE_NOT_FOUND |
400 |
EDIT_VALUE_MISMATCH |
400 |
COMBO_EXISTS |
400 |
SYSTEM_DRIVER |
400 |
INVALID_VALUE |
400 |
PERIOD_CALENDAR_MISMATCH |
400 |
DRIVER_INACTIVE |
400 |
MEMBER_REQUIRED |
400 |
MEMBERS_INCOMPLETE |
400 |
MEMBER_DIMENSION_MISMATCH |
400 |
MEMBER_DUPLICATE_DIMENSION |
400 |
VALUE_CENTER_DISABLED |
400 |
PERIOD_LOCKED |
400 |
BOOK_HAS_NO_CALENDAR |
400 |
IDEMPOTENCY_KEY_CONFLICT |
409 |
IDEMPOTENCY_PAYLOAD_MISMATCH |
422 |
Statuses
400— Invalid request or business failure. Codes: DRIVER_NOT_FOUND, ENTITY_NOT_FOUND, BOOK_NOT_FOUND, PERIOD_NOT_FOUND, UNSUPPORTED_DIMENSION_CODE, MEMBER_NOT_FOUND, MEMBER_NAME_REQUIRED, VALUE_NOT_FOUND, EDIT_VALUE_MISMATCH, COMBO_EXISTS, SYSTEM_DRIVER, INVALID_VALUE, PERIOD_CALENDAR_MISMATCH, DRIVER_INACTIVE, MEMBER_REQUIRED, MEMBERS_INCOMPLETE, MEMBER_DIMENSION_MISMATCH, MEMBER_DUPLICATE_DIMENSION, VALUE_CENTER_DISABLED, PERIOD_LOCKED, BOOK_HAS_NO_CALENDAR401— The request carries no valid access token.403— Not authorized404— Not found409— The Idempotency-Key is still being processed by another request.422— The Idempotency-Key was already used with a different request payload.429— Too many requests from this client address. The response has no body and noRetry-Afterheader.500— Internal server error