Skip to main content

Overview

Accounting period tools manage fiscal periods, including closing, reopening, and sub-ledger locking.

CRUD Tools

finance_period_create

Create a new accounting period. Parameters:
ParameterTypeRequiredDescription
period_idstringYesUnique period ID
period_namestringYesPeriod name (e.g., “January 2024”)
start_datestringYesPeriod start date
end_datestringYesPeriod end date
fiscal_yearstringYesFiscal year
is_adjustment_periodbooleanNoIs this an adjustment period

finance_period_get

Retrieve an accounting period by ID. Parameters:
ParameterTypeRequiredDescription
period_idstringYesPeriod ID

finance_period_list

List accounting periods. Parameters:
ParameterTypeRequiredDescription
fiscal_yearstringNoFilter by fiscal year
statusstringNoFilter by status (Open, Closed)
is_adjustment_periodbooleanNoFilter adjustment periods

finance_period_update

Update an accounting period. Parameters:
ParameterTypeRequiredDescription
period_idstringYesPeriod ID
period_namestringNoUpdated name

Period Management Tools

finance_period_close

Close an accounting period. Parameters:
ParameterTypeRequiredDescription
period_idstringYesPeriod ID
forcebooleanNoClose even with unposted entries
Closing a period prevents new transactions from being posted to it.

finance_period_reopen

Reopen a closed accounting period. Parameters:
ParameterTypeRequiredDescription
period_idstringYesPeriod ID
reasonstringYesReason for reopening

finance_period_get_unposted

Get unposted entries in a period. Parameters:
ParameterTypeRequiredDescription
period_idstringYesPeriod ID
document_typestringNoFilter by document type

Sub-Ledger Lock Tools

finance_period_lock_subledger

Lock a sub-ledger for a period. Parameters:
ParameterTypeRequiredDescription
period_idstringYesPeriod ID
subledgerstringYesSub-ledger: AP, AR, GL

finance_period_unlock_subledger

Unlock a sub-ledger for a period. Parameters:
ParameterTypeRequiredDescription
period_idstringYesPeriod ID
subledgerstringYesSub-ledger: AP, AR, GL
reasonstringYesReason for unlocking

finance_period_get_subledger_status

Get sub-ledger lock status for a period. Parameters:
ParameterTypeRequiredDescription
period_idstringYesPeriod ID
Response:
{
  "period_id": "period-2024-01",
  "subledger_status": {
    "AP": { "locked": true, "locked_at": "2024-02-01T00:00:00Z" },
    "AR": { "locked": true, "locked_at": "2024-02-01T00:00:00Z" },
    "GL": { "locked": false }
  }
}