# closeAccountingPeriod

## Overview

Closes an OPEN accounting period so no further entries can post to it (OPEN → CLOSED).
A closed period can be reopened via `openAccountingPeriod`. Thin wrapper over the
native `closePeriod`.

## Modules Commands Used

- [financial-accounting] closePeriod

## Exception Handling

| Error Code | Description |
| --- | --- |
| FINANCIAL_ACCOUNTING_ACCOUNTING_PERIOD_NOT_FOUND | The accounting period does not exist |
| FINANCIAL_ACCOUNTING_INVALID_STATUS_TRANSITION | Only an OPEN period can be closed |
