Documents
A search term that reads as money (1250, 1,250.00, $1 250, -1250, at most two decimals) also matches a document whose absolute total_amount or balance_amount equals it exactly; zero is never matched as an amount. For intercompany transactions the search also covers the memo and either entity's name. ids (up to 100) returns those documents regardless of every filter, the default status exclusions and search; the org and the caller’s legal-entity scope still apply. document_number sorts a draft with no number as an empty string: first ascending, last descending. due_date sorts a document without a due date last ascending, first descending.
Required scope: documents:read
Pagination: cursor
Error codes: INVALID_CURSOR, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>document_type?stringNarrow the list to a single document type. When omitted, the list returns every document type.
"invoice""bill""credit_memo""vendor_credit""journal_entry""intercompany_transaction""transfer""deposit""refund""debt_service""debt_service_bill""debt_service_payment""loan_drawdown""loan_payoff""loan_prepayment""loan_accrual""hedge_settlement""hedge_premium""hedge_premium_amortization""hedge_termination"document_types?array<>Narrow the list to a SET of document types — any type a document can be. Repeat the parameter or comma-separate the values. Applied regardless of all_types, and in place of the activity-type subset a property_id/space_id filter otherwise implies. Mutually exclusive with document_type. Duplicates are ignored; a value with no non-blank entry is the same as omitting the parameter. An unknown type is refused with VALIDATION_FAILED.
items <= 34status?string"draft""pending_approval""rejected""posting_pending""posting_failed""posted""voided""reversed""deleted"document_date?stringdateproperty_id?stringFilter to documents tagged with this property. Exact match by default; with include_descendants=true it also matches documents tagged with any space in the property, at any depth. Mutually exclusive with space_id.
uuidspace_id?stringFilter to documents tagged with this space. Exact match by default; with include_descendants=true it also matches documents tagged with a space nested inside it (a unit within a suite). Mutually exclusive with property_id.
uuidinclude_descendants?booleanWhen combined with property_id or space_id, also returns documents tagged with anything below the named record — every space in the property, or the spaces nested inside the named space — matched at the header or line level. Ignored when neither is set.
legal_entity_id?stringFilter to a single legal entity. Used by apply-credit pickers to scope target invoices/bills to the same LE as the credit being applied.
uuidparty_id?stringFilter to a single party (customer or vendor). Pairs with legal_entity_id for the apply-credit picker so cross-party targets never appear in the dropdown.
uuidopen_only?booleanfrom_date?stringInclusive lower bound for document_date. When supplied together with to_date, supersedes the exact-match document_date param.
to_date?stringInclusive upper bound for document_date. See from_date.
overdue?booleanWhen true, returns only posted documents with due_date before the org's today (see orgs.time_zone) and balance_amount > 0. Combine with document_type=invoice.
all_types?booleanDeprecated: omitting document_type now returns every document type by default, so this flag is redundant. Kept for compatibility with existing callers; when true it overrides document_type and the trackable activity-type subset. It does not override document_types.
contract_id?stringDocuments generated from this contract. Matches on the generic source_type/source_id pair the billing engine already stamps. This is a SUPERSET of GET /v1/billing-schedules/contracts/{id}/documents: that sub-resource narrows the same underlying pair to status IN (posted, voided), while this filter also returns contract-sourced documents in other non-deleted, non-pending statuses (e.g. draft, posting_failed, reversed). Add status=posted to reproduce the sub-resource result set.
uuidis_intercompany?booleanIn-group filter, for every document type. true returns an intercompany transaction, or any document naming another legal entity of the org as counterparty; false returns every other document.
cursor?stringlimit?number1..100, default 100
1 <= value <= 100sort?stringDefault: -created_at
"-created_at""created_at""-document_date""document_date""-document_number""document_number""-due_date""due_date""-total_amount""total_amount""-status""status"search?stringCase-insensitive substring match on: document_number, party name.
ids?stringUp to 100 ids; returns those rows regardless of other filters and ignores search.
application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/documents'{ "data": [ { "balance_amount": "1234.50", "created_at": "string", "currency_code": "string", "document_date": "string", "document_number": "string", "document_type": "string", "due_date": "string", "email_last_sent_at": "2019-08-24T14:15:22Z", "email_outdated": true, "email_status": "sent", "from_entity_name": "string", "id": "string", "intercompany_from_entity_id": "string", "intercompany_to_entity_id": "string", "is_intercompany": true, "legal_entity_id": "8c040143-e03c-45a0-b1bc-85161701d839", "legal_entity_name": "string", "lock": { "reason": "reconciled" }, "memo": "string", "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1", "party_name": "string", "replaced_by_document_id": "b6631f85-a3f7-4622-ac2d-a83b391c694e", "replaced_by_document_number": "string", "replaces_document_id": "cfa439fa-1260-439d-ac63-3c998a3152f6", "replaces_document_number": "string", "reserved_amount": "1234.50", "status": "string", "to_entity_name": "string", "total_amount": "1234.50" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Required scope: documents:write
Plannable: yes. An agent can use this operation as a step in a plan.
Error codes: VALIDATION_FAILED, DOCUMENT_SOURCE_FIELDS_RESERVED, DOCUMENT_TYPE_NOT_CREATABLE_HERE, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, DIMENSION_ENTITY_MISMATCH, DIMENSION_REQUIRED, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, LEGAL_ENTITY_NOT_IN_SCOPE, DOCUMENT_PARTY_IS_LEGAL_ENTITY, DOCUMENT_COUNTERPARTY_IS_OWN_ENTITY
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
cash_account_id?stringFor deposit/refund: override the cash account used for the cash leg. Defaults to the org's cash_operating system-role account when omitted. Ignored on other document types.
counterparty_legal_entity_id?stringIntercompany tag: the OTHER group entity this document trades with. Must be an entity of the org (400 VALIDATION_FAILED) and must differ from entity_id (422 DOCUMENT_COUNTERPARTY_IS_OWN_ENTITY).
dimensions?Dimension values keyed by dimensions.code (UUIDs for data_type=entity). Three states: omit the key = unanswered; key with null = explicit "None" answer (satisfies is_required); key with a string = a value. Entity-typed values are auto-completed server-side with the row's parent chain: each ancestor lands in the sibling dimension matching its value_source (when bound to this document type); caller-supplied values (including explicit None) are never overwritten. Document (header) level.
discount_type?string"percentage""amount"discount_value?numberdocument_date?stringdocument_number?stringOmit to have a number assigned when the document is saved. The number from next-number is a preview, not a reservation. Send document_number only to use your own number.
document_type*string"invoice""bill""credit_memo""vendor_credit""expense""sales_receipt""payment_in""payment_out""journal_entry""intercompany_transaction""transfer""deposit""refund""refund_payment""straight_line_adjustment""debt_service""debt_service_bill""debt_service_payment""loan_drawdown""loan_payoff""loan_prepayment""loan_accrual""hedge_settlement""hedge_premium""hedge_premium_amortization""hedge_termination""depreciation""asset_disposal""asset_reclass""capital_contribution""investment_in_subsidiary"due_date?stringentity_id*stringID of the legal entity (entity_id from the PDF)
intercompany_from_entity_id?stringFor intercompany_transaction: from entity (income side). Must equal entity_id, and cannot change on a draft (400 VALIDATION_FAILED).
intercompany_to_entity_id?stringFor intercompany_transaction: to entity (expense side). Cannot change on a draft (400 VALIDATION_FAILED).
internal_note?stringInternal note
items?array<>Document lines.
memo?stringorg_id?stringOptional in API body. Backend resolves org_id from authenticated user.
party_id?|Party (tenant/vendor). For management contracts use counterparty_legal_entity_id. On PUT of a journal_entry an explicit null removes the party and an omitted key keeps it; every other document type ignores null.
party_note?stringNote for the counterparty
period_override_reason?stringReason for posting into a closed accounting period. Non-empty value indicates override intent and requires the accounting:periods_override scope.
length <= 500post?booleanDrives whether the document is posted to the GL. Semantics depend on the HTTP verb:
- On
POST /v1/documents: omitted defaults totrue.trueposts immediately (statusposting_pending→posted);falsecreates adraft(no journal entry until the caller invokesPOST /v1/documents/:id/post). - On
PUT /v1/documents/:id: omitted defaults tofalse— the update changes lines/header but leaves posting status alone.trueposts after update (draft → posted, or posting_pending → posted). On aposteddocument, the post flag is ignored: every PUT triggers a reversal-and-repost.
truerule_id?stringsend_notification?booleanfalsesource_id?stringDeprecatedRESERVED — do not send. Set server-side to the originating record id (contract, loan, recovery run, bank transaction, distribution declaration). Requests supplying it are rejected with 422 DOCUMENT_SOURCE_FIELDS_RESERVED.
source_type?stringDeprecatedRESERVED — do not send. Derived server-side from the authenticated principal (manual for users, api for API keys) or stamped by internal generators (contract, loan, expense_recovery_run, bank_transaction, distribution). Requests supplying it are rejected with 422 DOCUMENT_SOURCE_FIELDS_RESERVED.
total?stringOverrides the computed total. discount_value is still a number — it pairs with discount_type, so it is money in one mode and a percentage in the other and is typed with the discount engine.
application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/documents' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "document_type": "invoice", "entity_id": "string"}'{ "data": { "id": "string", "status": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Read-only preview of the next number. It does not reserve the number: the number is assigned when a document is saved.
Required scope: documents:read
access-tokenAuthorizationBearer <token>document_type*stringdocument_date*stringapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/documents/next-number?document_type=string&document_date=string'{ "data": { "document_number": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: documents:read
Error codes: VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>document_type*string"invoice""bill""credit_memo""vendor_credit""journal_entry""intercompany_transaction""transfer""deposit""refund""debt_service""debt_service_bill""debt_service_payment""loan_drawdown""loan_payoff""loan_prepayment""loan_accrual""hedge_settlement""hedge_premium""hedge_premium_amortization""hedge_termination"legal_entity_id?stringuuidrecent_days?numberEnables the recent block over the last N calendar days.
1 <= value <= 90recent_scope?stringWhich documents the recent block counts. open_or_draft = open (posted, balance > 0) plus drafts (AP "New bills"); posted_or_draft = every posted or draft doc (default); posted = posted only (AR "Collected" — a draft is not cash received).
"posted_or_draft""open_or_draft""posted_or_draft""posted"from_date?stringEnables the period block; must be provided together with to_date.
dateto_date?stringdatedate_from?stringDeprecatedDeprecated alias for from_date; must be provided together with date_to or to_date.
datedate_to?stringDeprecatedDeprecated alias for to_date.
dateapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/documents/summary?document_type=invoice'{ "data": { "drafts": { "amount": "string", "count": 0 }, "open": { "aging": { "current": "string", "d30": "string", "d60": "string", "d90": "string" }, "due_7d": { "amount": "string", "count": 0 }, "outstanding": { "amount": "string", "count": 0 }, "past_due": { "amount": "string", "count": 0 } }, "period": { "billed": "string", "count": 0, "outstanding": "string" }, "recent": { "amount": "string", "count": 0, "days": 0 } }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Newest first by default. search matches the file name. ids (up to 100) returns those attachments of this document and ignores search; an id from another document returns nothing.
Required scope: documents:read
Pagination: cursor
Error codes: DOCUMENT_NOT_FOUND, VALIDATION_FAILED, INVALID_CURSOR
access-tokenAuthorizationBearer <token>documentId*stringcursor?stringlimit?number1..100, default 100
1 <= value <= 100sort?stringDefault: -uploaded_at
"-uploaded_at""uploaded_at""file_name""-file_name"search?stringCase-insensitive substring match on: file_name.
ids?stringUp to 100 ids; returns those rows regardless of other filters and ignores search.
application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/documents/string/attachments'{ "data": [ { "content_type": "application/pdf", "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6", "file_name": "string", "file_size_bytes": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "uploaded_at": "2019-08-24T14:15:22Z", "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Required scope: documents:write
Error codes: DOCUMENT_NOT_FOUND, ATTACHMENT_TYPE_UNSUPPORTED, ATTACHMENT_TOO_LARGE, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>documentId*stringIdempotency-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 <= 255multipart/form-data- body
file*unknownPDF, PNG, JPEG, or WebP file. Max 25 MiB. Magic-byte sniffed server-side.
application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/documents/string/attachments' \ -H 'Idempotency-Key: string' \ -F 'file=null'{ "data": { "content_type": "application/pdf", "document_id": "b792e8ae-2cb4-4209-85b9-32be4c2fcdd6", "file_name": "string", "file_size_bytes": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "uploaded_at": "2019-08-24T14:15:22Z", "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: documents:write
Error codes: ATTACHMENT_NOT_FOUND, DOCUMENT_NOT_FOUND, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY
access-tokenAuthorizationBearer <token>documentId*stringattachmentId*stringIdempotency-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 <= 255Possible error codes: IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY
application/json- response
code*stringdetail*stringerrors?array<>instance*stringnext_action?stringWhat the caller does next. Sent only by codes that declare it (the PLAN_* codes).
"fix_step""re_preview""retry_later""split_plan""use_plan_mode""release_first""contact_operator"request_id*stringretryable?booleanWhether the same request can succeed unchanged later. Sent only by codes that declare it (the PLAN_* codes).
status*numbertitle*stringtype*stringcurl -X DELETE 'https://api.acreum.io/v1/documents/string/attachments/string' \ -H 'Idempotency-Key: string'{ "code": "DOCUMENT_ALREADY_POSTED", "detail": "Document doc_01 is already posted.", "errors": [ { "code": "INVALID_VALUE", "field": "amount", "message": "must be > 0" } ], "instance": "/v1/documents/doc_01/post", "next_action": "fix_step", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "retryable": true, "status": 409, "title": "Document already posted", "type": "https://docs.acreum.io/errors/DOCUMENT_ALREADY_POSTED"}Required scope: documents:read
Error codes: ATTACHMENT_NOT_FOUND, DOCUMENT_NOT_FOUND
access-tokenAuthorizationBearer <token>documentId*stringattachmentId*stringapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/documents/string/attachments/string/download'{ "data": { "expires_at": "2019-08-24T14:15:22Z", "url": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: documents:read
Error codes: DOCUMENT_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>id*stringapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/documents/string'{ "data": { "counterparty_legal_entity_id": "string", "currency_code": "string", "dimensions": [ { "code": "string", "data_type": "string", "display_value": "string", "name": "string", "value": "string" } ], "document_date": "string", "document_number": "string", "document_type": "string", "due_date": "string", "email_last_sent_at": "2019-08-24T14:15:22Z", "email_outdated": true, "email_status": "sent", "entity_id": "string", "from_entity_name": "string", "id": "string", "intercompany_from_entity_id": "string", "intercompany_to_entity_id": "string", "is_bank_matched": true, "is_intercompany": true, "is_reconciled": true, "items": [ { "account_code": "string", "account_id": "string", "account_name": "string", "counterparty_legal_entity_id": "string", "description": "string", "dimensions": [ { "code": "string", "data_type": "string", "display_value": "string", "name": "string", "value": "string" } ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "item_id": "string", "item_name": "string", "legal_entity_id": "string", "line_amount": "string", "quantity": 0, "rate": 0, "tax_amount": "1234.50", "tax_rate": "string", "tax_rate_id": "6156135d-450b-464c-b854-039a7690a62e" } ], "legal_entity_name": "string", "lock": { "reason": "reconciled" }, "matched_bank_transactions": [ { "amount": "1234.50", "bank_account_name": "string", "description": "string", "direction": "in", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "transaction_date": "2019-08-24" } ], "memo": "string", "org_id": "string", "paired_payment_reconciled": { "bank_account_name": "string", "partner_payment_id": "b745e339-6818-4414-805f-0b2a5f6771ae", "partner_payment_number": "string" }, "party_id": "string", "party_name": "string", "posting_error": "string", "reconciliation": { "completion_mode": "auto", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "statement_ending_date": "2019-08-24" }, "refundable_remaining": "450.00", "refunded_amount": "50.00", "refunds": [ { "created_at": "2019-08-24T14:15:22Z", "document_date": "2019-08-24", "document_number": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "memo": "string", "status": "string", "total_amount": "100.00" } ], "replaced_by_document_id": "b6631f85-a3f7-4622-ac2d-a83b391c694e", "replaced_by_document_number": "string", "replaces_document_id": "cfa439fa-1260-439d-ac63-3c998a3152f6", "replaces_document_number": "string", "reserved_amount": "1234.50", "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81", "source_type": "manual", "status": "string", "subtotal_amount": "string", "tax_amount": "string", "to_entity_name": "string", "total_amount": "string", "vendor_invoice_number": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}A draft is rewritten in place (header, lines, dimensions) and keeps its id; post: true also submits it. A posted invoice, bill, credit memo, vendor credit or journal entry is never edited in place: it is REISSUED — the original is voided and a replacement with a new number is created from this request, linked by replaces_document_id, and its live payment applications move onto the replacement. The response then names the replacement: id is the NEW document, status is posted, or pending_approval when an approval rule held it (the original stays posted until the replacement is approved). Other posted types, and engine-generated documents, are refused with 409 POSTED_DOCUMENT_NOT_REISSUABLE.
Required scope: documents:write
Error codes: VALIDATION_FAILED, DOCUMENT_SOURCE_FIELDS_RESERVED, DOCUMENT_TYPE_NOT_EDITABLE_HERE, POSTED_DOCUMENT_NOT_REISSUABLE, REISSUE_APPLICATIONS_DO_NOT_FIT, REISSUE_PARTY_CHANGE_WITH_APPLICATIONS, REISSUE_FIELD_IMMUTABLE, DOCUMENT_HAS_PENDING_REPLACEMENT, DOCUMENT_BALANCE_OUT_OF_RANGE, APPLICATIONS_EXCEED_TOTAL, DOCUMENT_NOT_FOUND, DOCUMENT_RECONCILED_CANNOT_EDIT, DOCUMENT_MATCHED_CANNOT_EDIT, DOCUMENT_CHANGED_WHILE_EDITING, DOCUMENT_NETTED_BY_ESCALATION, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, DIMENSION_ENTITY_MISMATCH, DIMENSION_REQUIRED, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, DOCUMENT_STATUS_FORBIDS_ACTION, DOCUMENT_NOT_SUBMITTABLE, LEGAL_ENTITY_NOT_IN_SCOPE, DOCUMENT_COST_CAPITALIZED_CANNOT_EDIT, DOCUMENT_DISPOSAL_INVOICE_CANNOT_EDIT, DOCUMENT_ASSET_TRANSFER_CANNOT_EDIT, CREDIT_HAS_ACTIVE_APPLICATIONS, TARGET_HAS_ACTIVE_APPLICATIONS, DOCUMENT_HELD_BY_PAYMENT_RUN, DOCUMENT_HELD_BY_DISTRIBUTION, DOCUMENT_HELD_BY_IC_SETTLEMENT, DOCUMENT_PARTY_IS_LEGAL_ENTITY, DOCUMENT_COUNTERPARTY_IS_OWN_ENTITY
access-tokenAuthorizationBearer <token>id*stringIdempotency-Key?stringClient-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. 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
cash_account_id?stringFor deposit/refund: override the cash account used for the cash leg. Defaults to the org's cash_operating system-role account when omitted. Ignored on other document types.
counterparty_legal_entity_id?stringIntercompany tag: the OTHER group entity this document trades with. Must be an entity of the org (400 VALIDATION_FAILED) and must differ from entity_id (422 DOCUMENT_COUNTERPARTY_IS_OWN_ENTITY).
dimensions?Dimension values keyed by dimensions.code (UUIDs for data_type=entity). Three states: omit the key = unanswered; key with null = explicit "None" answer (satisfies is_required); key with a string = a value. Entity-typed values are auto-completed server-side with the row's parent chain: each ancestor lands in the sibling dimension matching its value_source (when bound to this document type); caller-supplied values (including explicit None) are never overwritten. Document (header) level.
discount_type?string"percentage""amount"discount_value?numberdocument_date?stringdocument_number?stringOmit to have a number assigned when the document is saved. The number from next-number is a preview, not a reservation. Send document_number only to use your own number.
document_type*string"invoice""bill""credit_memo""vendor_credit""expense""sales_receipt""payment_in""payment_out""journal_entry""intercompany_transaction""transfer""deposit""refund""refund_payment""straight_line_adjustment""debt_service""debt_service_bill""debt_service_payment""loan_drawdown""loan_payoff""loan_prepayment""loan_accrual""hedge_settlement""hedge_premium""hedge_premium_amortization""hedge_termination""depreciation""asset_disposal""asset_reclass""capital_contribution""investment_in_subsidiary"due_date?stringentity_id*stringID of the legal entity (entity_id from the PDF)
intercompany_from_entity_id?stringFor intercompany_transaction: from entity (income side). Must equal entity_id, and cannot change on a draft (400 VALIDATION_FAILED).
intercompany_to_entity_id?stringFor intercompany_transaction: to entity (expense side). Cannot change on a draft (400 VALIDATION_FAILED).
internal_note?stringInternal note
items?array<>Document lines.
memo?stringorg_id?stringOptional in API body. Backend resolves org_id from authenticated user.
party_id?|Party (tenant/vendor). For management contracts use counterparty_legal_entity_id. On PUT of a journal_entry an explicit null removes the party and an omitted key keeps it; every other document type ignores null.
party_note?stringNote for the counterparty
period_override_reason?stringReason for posting into a closed accounting period. Non-empty value indicates override intent and requires the accounting:periods_override scope.
length <= 500post?booleanDrives whether the document is posted to the GL. Semantics depend on the HTTP verb:
- On
POST /v1/documents: omitted defaults totrue.trueposts immediately (statusposting_pending→posted);falsecreates adraft(no journal entry until the caller invokesPOST /v1/documents/:id/post). - On
PUT /v1/documents/:id: omitted defaults tofalse— the update changes lines/header but leaves posting status alone.trueposts after update (draft → posted, or posting_pending → posted). On aposteddocument, the post flag is ignored: every PUT triggers a reversal-and-repost.
truerule_id?stringsend_notification?booleanfalsesource_id?stringDeprecatedRESERVED — do not send. Set server-side to the originating record id (contract, loan, recovery run, bank transaction, distribution declaration). Requests supplying it are rejected with 422 DOCUMENT_SOURCE_FIELDS_RESERVED.
source_type?stringDeprecatedRESERVED — do not send. Derived server-side from the authenticated principal (manual for users, api for API keys) or stamped by internal generators (contract, loan, expense_recovery_run, bank_transaction, distribution). Requests supplying it are rejected with 422 DOCUMENT_SOURCE_FIELDS_RESERVED.
total?stringOverrides the computed total. discount_value is still a number — it pairs with discount_type, so it is money in one mode and a percentage in the other and is typed with the discount engine.
application/json- response
data*meta*curl -X PUT 'https://api.acreum.io/v1/documents/string' \ -H 'Content-Type: application/json' \ -d '{ "document_type": "invoice", "entity_id": "string"}'{ "data": { "document_number": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "replaces_document_id": "cfa439fa-1260-439d-ac63-3c998a3152f6", "status": "draft" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: documents:read
Error codes: DOCUMENT_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>id*stringapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/documents/string/email-pdf-url'{ "data": { "sent_at": "2019-08-24T14:15:22Z", "url": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Paying an in-group distribution leg also records the receiving entity's payment on its receipt, in the same transaction (paired payments): pass paired_payment_date and paired_bank_account_id to choose its date and bank account. When that side cannot be recorded the call fails with PAIRED_PAYMENT_NOT_RECORDABLE and nothing is written.
Required scope: documents:write
Error codes: DOCUMENT_NOT_FOUND, VALIDATION_FAILED, DOCUMENT_STATUS_FORBIDS_ACTION, DOCUMENT_HELD_BY_PAYMENT_RUN, PAIRED_PAYMENT_NOT_RECORDABLE, LEGAL_ENTITY_NOT_IN_SCOPE, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, PERIOD_LOCKED, PERIOD_MISSING, DIMENSION_REQUIRED
access-tokenAuthorizationBearer <token>id*stringIdempotency-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
account_id*stringCash/bank account the payment is received into (invoice) or drawn from (bill or distribution leg).
uuidamount*stringAmount to pay; must be > 0 and <= the document balance.
memo?stringOptional note; defaults to "Manually marked as paid".
paired_bank_account_id?stringOnly used when the document is an in-group distribution leg: the bank account the receiving entity's payment posts to. Defaults to that entity's default bank account.
uuidpaired_payment_date?stringOnly used when the document is an in-group distribution leg: the date of the receiving entity's payment. Defaults to payment_date.
datepayment_date*stringPayment date (YYYY-MM-DD).
application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/documents/string/mark-paid' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65", "amount": "1804.05", "payment_date": "2026-07-15"}'{ "data": { "application_id": "48ac72d0-a829-4896-a067-dcb1c2b0f30c", "bill_balance_amount": "0.00", "payment_document_id": "c0e84883-37cf-4eff-ab7a-c5ce998065ab" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Pays a single bill as a payment run of one. documents:write may START the payment; RELEASING the money keeps the owner/admin gate the batch rail has, so a shortcut is never an easier way to move money. A caller without that gate gets approved_awaiting_send, which is a resting state and not an error.
Required scope: documents:write
Error codes: PAYMENT_RUN_BANK_NOT_MOOV_LINKED, PAYMENT_RUN_BILL_NOT_ELIGIBLE, PAYMENT_RUN_SPARK_PAY_DISTRIBUTION_LEGS, PAYMENT_RUN_BILL_RESERVED, PAYMENT_RUN_ENTITY_ACCOUNT_INVALID, PAYMENT_RUN_CURRENCY_MISMATCH, PAYMENT_RUN_BANK_ACCOUNT_MISSING_CASH_ACCOUNT, PAYMENT_RUN_GENERATION_STALE_BILLS, PAYMENT_RUN_VENDORS_NOT_PAYABLE, LEGAL_ENTITY_NOT_IN_SCOPE, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>id*stringIdempotency-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
bank_account_id*stringThe Moov-linked bank account the money leaves from. Must belong to the same legal entity as the bill.
uuidapplication/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/documents/string/pay-with-spark-pay' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "bank_account_id": "9335a679-63ab-44d5-9de9-e01e0c5a1fff"}'{ "data": { "party_id": "ba7116bd-f329-4d4b-adb9-b94174cc44e1", "payment_run_id": "30719c1a-d3bb-4533-b173-916acfe066b0", "status": "sent" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}A draft is submitted through the approval engine, exactly as submit is: when no approval rule matches it is posted and the journal entry is created (status: posted); when a rule matches it is held with no journal entry (status: pending_approval) and an approval request is opened — it posts once that request is approved. A posting_pending or posting_failed document is (re)posted directly. Any other status is refused with 409 DOCUMENT_STATUS_FORBIDS_ACTION, and a document with an open approval request with 409 DOCUMENT_AWAITING_APPROVAL.
Required scope: documents:write
Plannable: yes. An agent can use this operation as a step in a plan.
Error codes: DOCUMENT_NOT_FOUND, DOCUMENT_STATUS_FORBIDS_ACTION, DOCUMENT_AWAITING_APPROVAL, LEGAL_ENTITY_NOT_IN_SCOPE, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, DOCUMENT_PARTY_IS_LEGAL_ENTITY, DOCUMENT_TYPE_NOT_POSTABLE_HERE
access-tokenAuthorizationBearer <token>id*stringIdempotency-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- response
data*meta*curl -X POST 'https://api.acreum.io/v1/documents/string/post' \ -H 'Idempotency-Key: string'{ "data": { "id": "string", "status": "posting_pending" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: documents:write
Error codes: DOCUMENT_NOT_FOUND, DOCUMENT_NOT_REOPENABLE, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>id*stringIdempotency-Key?stringClient-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. 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- response
data*meta*curl -X POST 'https://api.acreum.io/v1/documents/string/reopen'{ "data": { "id": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: documents:write
Error codes: DOCUMENT_NOT_FOUND, DOCUMENT_NOT_POSTED, VALIDATION_FAILED, EMAIL_SEND_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>id*stringIdempotency-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 <= 255multipart/form-data- body
payload*stringJSON: { to, cc?, bcc?, subject, body, send_copy }. Append payload before the pdf file part.
pdf*unknownapplication/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/documents/string/send-email' \ -H 'Idempotency-Key: string' \ -F 'payload=string' \ -F 'pdf=null'{ "data": { "sent_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 }}Required scope: documents:write
Error codes: DOCUMENT_NOT_FOUND, DOCUMENT_NOT_SUBMITTABLE, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, DOCUMENT_PARTY_IS_LEGAL_ENTITY
access-tokenAuthorizationBearer <token>id*stringIdempotency-Key?stringClient-chosen key that makes this mutation safe to retry. Optional — a request without one is processed normally, with no replay protection. 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- response
data*meta*curl -X POST 'https://api.acreum.io/v1/documents/string/submit'{ "data": { "id": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Reversing a POSTED document posts a contra journal entry; the original and the contra both stay effective and net to zero, so nothing disappears from a statement. When the original entry’s period is closed or locked the contra entry is dated into the CURRENT open period instead, leaving the closed period’s reported figures unchanged — reversal_moved_to_current_period says when that happened. Pass reverse_in_original_period (requires accounting:periods_override) to restate the original period in place instead.
Required scope: documents:write, documents:delete
Required scope (any of): documents:write, documents:delete
Error codes: DOCUMENT_NOT_FOUND, DOCUMENT_ALREADY_VOIDED, DOCUMENT_VOID_REQUIRES_MEMO, DOCUMENT_RECONCILED_CANNOT_VOID, DOCUMENT_MATCHED_CANNOT_VOID, DOCUMENT_RETIREMENT_CANNOT_VOID, DOCUMENT_DISPOSAL_INVOICE_CANNOT_VOID, DOCUMENT_RE_TAX_BILL_VOID_AT_SOURCE, DOCUMENT_ASSET_TRANSFER_CANNOT_VOID, DOCUMENT_NETTED_BY_ESCALATION, DOCUMENT_COST_CAPITALIZED_CANNOT_VOID, PERIOD_LOCKED, PERIOD_MISSING, PERIOD_OVERRIDE_FORBIDDEN, NO_OPEN_PERIOD_FOR_CORRECTION, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEDGER_ENTRY_REFUSED, ACCOUNT_LEGAL_ENTITY_MISMATCH, DOCUMENT_STATUS_FORBIDS_ACTION, LEGAL_ENTITY_NOT_IN_SCOPE, CREDIT_HAS_ACTIVE_APPLICATIONS, TARGET_HAS_ACTIVE_APPLICATIONS, DOCUMENT_REFUNDS_EXCEED_REMAINING_PAYMENTS, DOCUMENT_HELD_BY_PAYMENT_RUN, DOCUMENT_HELD_BY_DISTRIBUTION, DOCUMENT_HELD_BY_IC_SETTLEMENT, PAIRED_PAYMENT_RECONCILED, LOAN_PREPAYMENT_NOT_LATEST, LOAN_PREPAYMENT_PERIOD_ACTED, LOAN_PREPAYMENT_ACCRUED_SINCE, LOAN_ACCRUAL_NOT_LATEST, LOAN_ACCRUAL_PERIOD_BILLED, LOAN_DRAWDOWN_ACTED_SINCE, LOAN_DRAWDOWN_ONLY_FUNDING, LOAN_REGENERATION_BLOCKED_BY_CURTAILMENT, LOAN_ESCROW_CLOSED, DOCUMENT_HAS_PENDING_REPLACEMENT
access-tokenAuthorizationBearer <token>id*stringIdempotency-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
memo?stringMemo for the reversing journal entry. Required when voiding a posted document.
reverse_in_original_period?booleanPost the reversing entry into the ORIGINAL entry’s period instead of the current open one — a deliberate prior-period restatement, and only meaningful when that period is closed. Requires the accounting:periods_override scope. Default false: the reversal lands in the current open period, so a closed period’s reported figures never change.
falseapplication/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/documents/string/void' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "id": "string", "reversal_moved_to_current_period": true, "status": "string" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}