Acreum Docs
Organization structure

Year-end close

POST
/v1/legal-entities/{id}/year-end-close

Required scope: accounting:write

Error codes: VALIDATION_FAILED, YEAR_END_ALREADY_CLOSED, YEAR_END_PERIODS_OPEN, YEAR_END_NO_PL_ACTIVITY, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
fiscal_year*number

Fiscal year to close. Resolved against the LE/org fiscal_year_start_month — for FYSM=1 this is the calendar year; for FYSM=4 this names the year that started Apr 1.

Range1900 <= value <= 2200

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/legal-entities/string/year-end-close' \  -H 'Content-Type: application/json' \  -d '{  "fiscal_year": 2026}'
{  "data": {    "end_date": "string",    "fiscal_year": 0,    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "locked_period_count": 0,    "retained_earnings_amount": "string",    "retained_earnings_side": "debit",    "start_date": "string"  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}
POST
/v1/legal-entities/{id}/year-end-close/reverse

Required scope: accounting:periods_override

Error codes: VALIDATION_FAILED, YEAR_END_NOT_FOUND, LEGAL_ENTITY_NOT_IN_SCOPE, INVALID_IDEMPOTENCY_KEY, IDEMPOTENCY_CONFLICT

Authorization

access-token
headerAuthorizationBearer <token>

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Client-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.

Match^[A-Za-z0-9_-]{1,255}$
Lengthlength <= 255

Request Body

application/json
  1. body
fiscal_year*number
Range1900 <= value <= 2200
reason*string

Why the close is being reversed. Recorded on audit_log and surfaced on the closing-date exceptions report.

Length1 <= length <= 500

Response Body

application/json
  1. response
data*
meta*
curl -X POST 'https://api.acreum.io/v1/legal-entities/string/year-end-close/reverse' \  -H 'Content-Type: application/json' \  -d '{  "fiscal_year": 2026,  "reason": "string"}'
{  "data": {    "fiscal_year": 0,    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "restored_period_count": 0  },  "meta": {    "api_version": "2026-04-23",    "cursor": {      "has_more": true,      "next": "eyJpZCI6ICJhYmMifQ=="    },    "request_id": "018f0b3d-2b1e-7c8a-9d4b-1a2b3c4d5e6f",    "total_count": 1234  }}