Billing Schedules
Required scope: billing-schedules:read
Error codes: NOT_FOUND, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>contractId*stringprojection_months?integerLength of the projection window in months, measured from the contract's billing start (not from today). Clamped by the contract end date when it falls sooner.
1 <= value <= 6012application/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/billing-schedules/contracts/string/activation-preview'{ "data": { "missing": [ { "code": "start_date_required", "message": "string" } ], "projected_events": [ { "due_date": "string", "estimated": true, "event_date": "string", "event_type": "invoice", "lines": [ { "amount": "1234.50", "description": "string", "tax_amount": "1234.50", "tax_rate": "string" } ], "total": "1234.50" } ], "ready": true, "summary": { "first_period_total": "1234.50", "periods": [ { "end_date": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "string", "label": "string", "start_date": "string", "status": "string" } ], "window_end": "string", "window_start": "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: billing-schedules:read
Pagination: cursor-optional
Error codes: NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_CURSOR, VALIDATION_FAILED
access-tokenAuthorizationBearer <token>contractId*stringcursor?stringlimit?number1..500. Omit to receive the full collection in one page.
application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/billing-schedules/contracts/string/documents'{ "data": [ { "document_date": "string", "document_number": "string", "due_date": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "string", "total_amount": "string" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Required scope: billing-schedules:read
Pagination: cursor-optional
Error codes: NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_CURSOR, VALIDATION_FAILED
access-tokenAuthorizationBearer <token>contractId*stringcursor?stringlimit?number1..500. Omit to receive the full collection in one page.
application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/billing-schedules/contracts/string/drafts'{ "data": [ { "document_date": "string", "document_number": "string", "due_date": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "string", "total_amount": "string" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Required scope: billing-schedules:read
Pagination: cursor-optional
Error codes: NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_CURSOR, VALIDATION_FAILED
access-tokenAuthorizationBearer <token>contractId*stringcursor?stringlimit?number1..500. Omit to receive the full collection in one page.
application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/billing-schedules/contracts/string/events'{ "data": [ { "adjusts_event_id": "fbba2213-8bf4-4670-85c2-b9d4661ce08d", "amount": "1234.50", "blocked_reason": "no_open_period", "error_message": "string", "event_date": "string", "event_type": "invoice", "generated_document_id": "b5c61389-6adf-4699-990d-20f08014889e", "generated_document_number": "string", "has_override": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "pending" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Required scope: billing-schedules:write
Error codes: NOT_FOUND, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>contractId*stringeventId*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 DELETE 'https://api.acreum.io/v1/billing-schedules/contracts/string/events/string/override'{ "data": { "deleted": true }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Body: { v: 2, strategy: "replace_lines", items: [...] }. Each item is a document line and may name a tax_rate_id (uuid or null); the server calculates each line's tax when the invoice is written, so there is no total_tax. v1 payloads are rejected with VALIDATION_FAILED.
Required scope: billing-schedules:write
Error codes: NOT_FOUND, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>contractId*stringeventId*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 PUT 'https://api.acreum.io/v1/billing-schedules/contracts/string/events/string/override'{ "data": { "ok": true }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}A re-bill whose own period is closed or locked is dated in the current open period; send period_override_reason (accounting:periods_override) to post into its own closed period instead. The body is optional. A 200 returns the event as the run left it, which is not always generated: it is blocked when the posting still cannot happen (no open period, a rejected document, an invoice edited by hand, a credit waiting on a taxed invoice that has not posted, a term whose tax rate is missing or deactivated — see blocked_reason), cancelled when generation failed for another reason (see error_message), and pending when the event is future-dated and was only requeued. An invoice or straight-line event whose month the lease no longer bills is refused with FINANCIAL_EVENT_MONTH_NOT_BILLED and nothing is posted.
Required scope: billing-schedules:write
Error codes: NOT_FOUND, VALIDATION_FAILED, FINANCIAL_EVENT_PERIOD_ALREADY_COVERED, FINANCIAL_EVENT_MONTH_NOT_BILLED, PERIOD_OVERRIDE_FORBIDDEN, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>contractId*stringeventId*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
period_override_reason?stringPost into the event’s own CLOSED period, with this reason recorded on the document (requires accounting:periods_override). Without it, a re-bill whose period is closed or locked is dated in the current open period.
length <= 1000application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/billing-schedules/contracts/string/events/string/retry' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "adjusts_event_id": "fbba2213-8bf4-4670-85c2-b9d4661ce08d", "amount": "1234.50", "blocked_reason": "no_open_period", "error_message": "string", "event_date": "string", "event_type": "invoice", "generated_document_id": "b5c61389-6adf-4699-990d-20f08014889e", "generated_document_number": "string", "has_override": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "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: billing-schedules:read
Error codes: NOT_FOUND, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>contractId*stringeventId*stringapplication/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/billing-schedules/contracts/string/events/string/suggestion'{ "data": { "items": [ {} ], "strategy": "replace_lines", "v": 2 }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Only a blocked event. A month that already billed is waived with a credit memo instead (spec 2026-10-10 §1.4).
Required scope: admin:billing-schedules
Error codes: NOT_FOUND, VALIDATION_FAILED, FINANCIAL_EVENT_NOT_WAIVABLE, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>contractId*stringeventId*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
reason*stringWhy this blocked month is not billed. Recorded in the audit log.
length <= 1000application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/billing-schedules/contracts/string/events/string/waive' \ -H 'Content-Type: application/json' \ -d '{ "reason": "string"}'{ "data": { "adjusts_event_id": "fbba2213-8bf4-4670-85c2-b9d4661ce08d", "amount": "1234.50", "blocked_reason": "no_open_period", "error_message": "string", "event_date": "string", "event_type": "invoice", "generated_document_id": "b5c61389-6adf-4699-990d-20f08014889e", "generated_document_number": "string", "has_override": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "status": "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: billing-schedules:write
Error codes: NOT_FOUND, VALIDATION_FAILED, IDEMPOTENCY_KEY_REQUIRED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, LEGAL_ENTITY_NOT_IN_SCOPE
access-tokenAuthorizationBearer <token>contractId*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/billing-schedules/contracts/string/initialize' \ -H 'Idempotency-Key: string'{ "data": { "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4", "events_created": [ "bf9d7cd5-f2bc-44ba-8d83-441c86d89a7c" ] }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: billing-schedules:read
Pagination: cursor-optional
Error codes: NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_CURSOR, VALIDATION_FAILED
access-tokenAuthorizationBearer <token>contractId*stringcursor?stringlimit?number1..500. Omit to receive the full collection in one page.
application/json- response
data*array<>meta*curl -X GET 'https://api.acreum.io/v1/billing-schedules/contracts/string/late-fees'{ "data": [ { "assessment_period_key": "string", "fee_invoice_balance": "string", "fee_invoice_id": "string", "fee_invoice_number": "string", "fee_invoice_total": "string", "id": "string", "source_invoice_due_date": "string", "source_invoice_exempt": true, "source_invoice_id": "string", "source_invoice_number": "string", "status": "pending", "waived_at": "string", "waived_by": "string" } ], "meta": { "api_version": "2026-04-23", "limit": 50, "next_cursor": "eyJpZCI6ICJhYmMifQ==", "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f" }}Required scope: billing-schedules:write
Error codes: NOT_FOUND, VALIDATION_FAILED, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>contractId*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/billing-schedules/contracts/string/recalculate'{ "data": { "adjustments_created": [ "6cfbbb1d-1ce1-4106-97f5-17731326ed51" ], "deleted_drafts": 0, "deleted_events": 0, "events_created": [ "bf9d7cd5-f2bc-44ba-8d83-441c86d89a7c" ], "retired_events": 0 }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: billing-schedules:read
access-tokenAuthorizationBearer <token>application/json- response
data*meta*curl -X GET 'https://api.acreum.io/v1/billing-schedules/diagnostics'{ "data": { "cron": "string", "note": "string", "pending_events": { "due_today_or_past": 0, "message": "string", "total": 0 }, "scheduler": "string", "today": "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: admin:billing-schedules
Error codes: NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>documentId*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
note?stringOptional note stored on the exemption row.
length <= 500application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/billing-schedules/invoices/string/late-fee-exemption' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "ok": true, "removed": true }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: admin:billing-schedules
Error codes: LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>documentId*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 DELETE 'https://api.acreum.io/v1/billing-schedules/invoices/string/late-fee-exemption'{ "data": { "ok": true, "removed": true }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Runs the daily late-fee assessment for the caller’s org as of as_of (default: the org’s today), over the legal entities the caller may act on. A real run refuses an as_of after the org’s today (400 VALIDATION_FAILED) or in a closed or locked period of a legal entity it would bill (one with an overdue invoice in scope; 409 LATE_FEE_AS_OF_IN_CLOSED_PERIOD); a dry run may preview either. dry_run: true lists the overdue invoices it would assess and writes nothing. A real run creates pending late_fee events (idempotent per invoice and period); process-events turns them into invoices.
Required scope: billing-schedules:write
Error codes: VALIDATION_FAILED, LATE_FEE_AS_OF_IN_CLOSED_PERIOD, 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
as_of?stringAssess as of this date. Default: the org’s today. A real run refuses a date after the org’s today (400 VALIDATION_FAILED), and a date in a closed or locked accounting period of a legal entity it would bill (409 LATE_FEE_AS_OF_IN_CLOSED_PERIOD); a dry run may preview either.
datedry_run?booleantrue lists the invoices a run would assess and writes nothing.
falseapplication/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/billing-schedules/late-fees/run' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "candidates": [ { "already_assessed": true, "assessment_period_key": "string", "contract_id": "9aafc1a8-e497-46c9-ba0b-bd5b03c353e4", "due_date": "2019-08-24", "invoice_id": "f4c4edb8-11e0-4b33-bcc1-482dc59ebb32" } ], "created_event_ids": [ "ff73f713-17ab-4f2c-a153-14145cb44ed9" ] }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: admin:billing-schedules
Error codes: NOT_FOUND, CONFLICT, VALIDATION_FAILED, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT, DOCUMENT_STATUS_FORBIDS_ACTION, LEGAL_ENTITY_NOT_IN_SCOPE, DIMENSION_REQUIRED
access-tokenAuthorizationBearer <token>eventId*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
exempt_source_invoice?booleanWhen true, also create a per-invoice exemption for the source invoice and waive any other pending late-fee events on it (stops future assessments).
falsenote?stringOptional note stored as the waive credit-memo memo (charged fees) and on the exemption when exempt_source_invoice is set.
length <= 500application/json- response
data*meta*curl -X POST 'https://api.acreum.io/v1/billing-schedules/late-fees/string/waive' \ -H 'Content-Type: application/json' \ -d '{}'{ "data": { "credit_memo_id": "string", "status": "waived" }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: billing-schedules:write
Error codes: INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>Idempotency-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/billing-schedules/process-events'{ "data": { "processed": 0 }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}Required scope: billing-schedules:write
Error codes: INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT
access-tokenAuthorizationBearer <token>Idempotency-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/billing-schedules/run'{ "data": { "processed": 0, "results": [ {} ] }, "meta": { "api_version": "2026-04-23", "cursor": { "has_more": true, "next": "eyJpZCI6ICJhYmMifQ==" }, "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f", "total_count": 1234 }}