Distribution Batches
Lists the batches of the org, newest submission first, filtered by status (comma separated). Each row carries submitted_by_name, the submitter's display name, else their email (null when neither is on file). A caller restricted to a subset of legal entities sees only batches whose every item is on an entity it may act on. Each row carries approval_request as the card does: the open request if there is one, else the latest, else null; actionable is for the caller.
Required scope: distributions:read
Pagination: cursor
Error codes: INVALID_CURSOR, VALIDATION_FAILED
access-tokenAuthorizationBearer <token>status?array<>Comma-separated statuses, e.g. pending_approval,executing.
cursor?stringlimit?number1..200, default 50
application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/distribution-batches'{ "data": [ { "approval_request": { "actionable": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "pending" }, "basis": "pro_rata", "cancel_reason": "string", "cancelled_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "executed_at": "2019-08-24T14:15:22Z", "executed_total": "1234.50", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "item_count": 0, "status": "pending_approval", "submitted_at": "2019-08-24T14:15:22Z", "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5", "submitted_by_name": "string", "total_amount": "1234.50", "updated_at": "2019-08-24T14:15:22Z" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Groups 1 to 500 distinct approved scheduled distributions, of any entities and due dates, into one batch and sends it to approval as one decision. The whole call is refused on the first refused item: one that is not approved, already in a batch, or not executable (an undetermined depth or no cap table). With no approval rule matching the batch, execution starts at once; otherwise the batch is pending_approval until its request is decided. Only a user can submit: an API key gets 403. A caller restricted to a subset of legal entities gets 403 when any item is outside its scope.
Required scope: distributions:write
Error codes: VALIDATION_FAILED, SCHEDULED_DISTRIBUTION_NOT_FOUND, DISTRIBUTION_BATCH_ITEM_NOT_APPROVED, DISTRIBUTION_BATCH_ITEM_ALREADY_BATCHED, DISTRIBUTION_BATCH_ITEM_NOT_EXECUTABLE, DISTRIBUTION_BATCH_SUBMITTER_NOT_A_USER, LEGAL_ENTITY_NOT_IN_SCOPE, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>Idempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- body
item_ids*array<>The approved scheduled distributions to submit as one batch: 1 to 500, all distinct, any entities and due dates. The whole call is refused on the first refused item.
1 <= items <= 500application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/distribution-batches' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "item_ids": [ "92e615b6-88cf-4958-8b77-df6fc58c9ee2" ]}'{ "data": { "basis": "pro_rata", "cancel_reason": "string", "cancelled_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "executed_at": "2019-08-24T14:15:22Z", "executed_total": "1234.50", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "item_count": 0, "status": "pending_approval", "submitted_at": "2019-08-24T14:15:22Z", "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5", "total_amount": "1234.50", "updated_at": "2019-08-24T14:15:22Z" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Returns the batch with what an approver needs to decide it: counts (items, flagged, modified, cash shortfalls), the due_dates range, the entities involved, every item (entity, due date, depth, status, adjusted amount, flags, error, and the declaration it executed), submitted_by_name, and the batch approval request: the open one if there is one, else the latest, else null, with actionable saying whether the caller can decide it now. A caller restricted to a subset of legal entities gets 403 when any item is outside its scope.
Required scope: distributions:read
Error codes: VALIDATION_FAILED, DISTRIBUTION_BATCH_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>id*stringuuidapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/distribution-batches/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "data": { "approval_request": { "actionable": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "pending" }, "basis": "pro_rata", "cancel_reason": "string", "cancelled_at": "2019-08-24T14:15:22Z", "counts": { "flagged": 0, "items": 0, "modified": 0, "shortfalls": 0 }, "created_at": "2019-08-24T14:15:22Z", "due_dates": { "from": "2019-08-24", "to": "2019-08-24" }, "entities": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" } ], "executed_at": "2019-08-24T14:15:22Z", "executed_total": "1234.50", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "item_count": 0, "items": [ { "adjusted_amount": "1234.50", "declaration_id": "21039631-2f8b-436e-827a-233d5d923d78", "depth": 0, "due_date": "2019-08-24", "error_code": "string", "error_detail": "string", "flags": [ "prior_period_open" ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839", "legal_entity_name": "string", "status": "scheduled" } ], "status": "pending_approval", "submitted_at": "2019-08-24T14:15:22Z", "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5", "submitted_by_name": "string", "total_amount": "1234.50", "updated_at": "2019-08-24T14:15:22Z" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Cancels a batch that has not started executing (pending_approval or approved): its open approval request is withdrawn and every item returns to approved, out of the batch. A batch that is executing or later cannot be cancelled (409 DISTRIBUTION_BATCH_INVALID_STATUS), nor can one whose request was already decided. A caller restricted to a subset of legal entities gets 403 when any item is outside its scope.
Required scope: distributions:write
Error codes: VALIDATION_FAILED, DISTRIBUTION_BATCH_NOT_FOUND, DISTRIBUTION_BATCH_INVALID_STATUS, LEGAL_ENTITY_NOT_IN_SCOPE, CONFLICT, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>id*stringuuidIdempotency-Key*stringClient-chosen key that makes this mutation safe to retry. Required — a request without one is rejected with IDEMPOTENCY_KEY_REQUIRED. Reusing a key with the same body replays the original response for ~24 hours; reusing it with a different body returns IDEMPOTENCY_CONFLICT.
^[A-Za-z0-9_-]{1,255}$length <= 255application/json- body
reason?stringWhy the batch is cancelled, as free text. Surrounding whitespace is trimmed; a blank value is rejected.
length <= 200application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/distribution-batches/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "basis": "pro_rata", "cancel_reason": "string", "cancelled_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "executed_at": "2019-08-24T14:15:22Z", "executed_total": "1234.50", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "item_count": 0, "status": "pending_approval", "submitted_at": "2019-08-24T14:15:22Z", "submitted_by": "6703ac2f-9eb5-40e9-9fde-511b2dbf4be5", "total_amount": "1234.50", "updated_at": "2019-08-24T14:15:22Z" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}