accounting:close_periodTriggers the fiscal year-end close for the authenticated entity. Posts the canonical
closing journal entry that sweeps revenue and expense activity into Retained Earnings
(account 3000), then transitions the last monthly period of the fiscal year to
year_end_closed status.
GAAP / industry pattern (per NetSuite, Acumatica, QuickBooks, AICPA):
Preconditions: every monthly period in the fiscal year must be in closed or
pending_approval status. Open periods block the close (HTTP 409).
Idempotent: re-running for the same (entity_id, fiscal_year) returns the
existing closing JE without posting a duplicate. DB partial UNIQUE index on
(entity_id, source_id) WHERE source_type='fiscal_year_close' provides race safety.
Idempotency key: fiscal_year_close:<entity_id>:<fiscal_year>
Balance sheet impact: after this endpoint runs, GET /v1/balance-sheet returns
retained_earnings from the booked account 3000 balance (ledger truth) plus
current_year_earnings showing un-closed post-close activity separately.
Documentation Index
Fetch the complete documentation index at: https://docs.arcuserp.com/llms.txt
Use this file to discover all available pages before exploring further.
API key issued per entity via Settings > Developers > API Keys.
Each key carries scopes (e.g. orders:read, products:write).
Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.
UUID of the last monthly period of the fiscal year
Fiscal year closed (or idempotent return of existing close JE)