Conventions
The request and response shapes, data types and headers every /v1 endpoint shares.
The API is deliberately uniform. Learn these conventions once and every endpoint in the API Reference reads the same way.
Base URL and versioning
https://api.acreum.io/v1/<resource>Every public endpoint is mounted under /v1. The api_version returned in meta is a
date (2026-04-23) that identifies the contract revision; see
Versioning.
The success envelope
Every successful response is an object with data and meta:
{
"data": { "id": "…", "document_type": "invoice", "status": "posted" },
"meta": {
"request_id": "018f0b3d-7c2e-7a3a-9f52-2a14d86e08ad",
"api_version": "2026-04-23"
}
}datais an object for a single resource and an array for a list.meta.request_ididentifies the request on our side. It is also in theX-Request-Idresponse header.- List responses add
meta.next_cursorandmeta.limit; see Pagination. - Deletes and some actions return
204 No Contentwith no body.
The error shape
Errors are RFC 7807 problem documents (application/problem+json) with a stable code.
See Errors.
Identifiers
Every resource id is a UUID. Ids are globally unique within an organization and opaque;
do not build logic on their format. Human-facing numbers (INV-000120, LN000001) are
separate fields and are assigned by the server unless you supply one.
Data types
| Type | Format | Example |
|---|---|---|
| Money | Decimal string, two decimals, no currency symbol | "1250.00" |
| Percentage / ratio | Decimal string | "0.0300" (3%) |
| Date | YYYY-MM-DD, no time zone | "2026-10-01" |
| Timestamp | ISO 8601, UTC | "2026-10-01T14:03:11.000Z" |
| Enum | lower snake_case | "pending_approval" |
| Currency | ISO 4217 | "USD" |
Money is never a float. Send and parse amounts as strings; the server rejects values with more than two decimals where a currency amount is expected.
Dates such as document_date and due_date are calendar dates interpreted in the
organization's time zone. "Today" for overdue calculations, period boundaries and
scheduled jobs is the organization's today, not UTC. GET /v1/me returns the
organization's IANA time zone as org.time_zone.
Headers
| Header | Direction | Purpose |
|---|---|---|
Authorization: Bearer <token> | request | Required on every /v1 route. See Authentication. |
Content-Type: application/json | request | Required on requests with a body. File uploads use multipart/form-data. |
Idempotency-Key | request | Required, optional or not accepted, per operation; the API Reference says which. See Idempotency. |
X-Request-Id | both | Returned on every response. You may send one: a UUID is kept and echoed; anything else is replaced with a fresh id. |
Documents
Most accounting activity is a document: an invoice, bill, credit memo, vendor credit,
journal entry, payment, intercompany transaction and so on. Documents share one resource
(/v1/documents), one lifecycle and one set of actions:
POST /v1/documentscreates a draft (or posts immediately with"post": true).POST /v1/documents/{id}/postposts a draft, or holds it for approval when an approval rule matches.POST /v1/documents/{id}/voidvoids a document: a draft is deleted, a posted document gets a reversing journal entry. Amemois required for posted documents.- Posted documents are immutable. Editing a posted invoice through
PUTreissues it: the original is voided and a replacement with a new number is created.
Some document types cannot be created through POST /v1/documents because they have
their own origin: deposits and refunds come from banking, distributions from
/v1/distribution-declarations, depreciation from a run, and so on. The API answers
422 DOCUMENT_TYPE_NOT_CREATABLE_HERE and names the right endpoint.
Statuses: draft, pending_approval, rejected, posting_pending, posting_failed,
posted, voided, reversed, deleted.
Legal entities and scope
Every document belongs to exactly one legal entity (entity_id), and every journal
entry balances within that entity. Most list endpoints accept legal_entity_id; the
reporting endpoints also accept consolidation_group_id and ownership_kind
(owned, managed or all). Managed entities, whose books you keep for a client, are
excluded from your own consolidated results by default.
Filters and sorting
Filtering is typed per resource; there is no generic filter language. Date ranges use
from_date / to_date. Sort fields are declared per endpoint and reversed with a leading
- (sort=-document_date).
Time zones and scheduled work
The API runs scheduled engines (billing, escalations, depreciation, loan accruals, distribution staging) on the organization's calendar. When a guide says a job runs "nightly", it means early morning UTC, after the organization's business day has ended.