Fiscal Years
Create, list, and close fiscal years.
|
Endpoints
| GET | /api/v1/accounting/fiscal-years | List fiscal years |
| POST | /api/v1/accounting/fiscal-years | Create a fiscal year |
| POST | /api/v1/accounting/fiscal-years/{id}/close | Close a fiscal year |
GET
/api/v1/accounting/fiscal-yearsList fiscal years
Authentication required— Include session cookie or Bearer token
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | Optional | Number of items to return (default: 20, max: 100) |
offset | integer | Optional | Offset for pagination (default: 0) |
Code Examples
curl "https://api.blueai.jp/api/v1/accounting/fiscal-years" \
-H "Cookie: better-auth.session_token=<token>"POST
/api/v1/accounting/fiscal-yearsCreate a fiscal year
Authentication required— Include session cookie or Bearer token
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Required | Fiscal year name (e.g., FY2026) |
start_date | string | Required | Start date (YYYY-MM-DD) |
end_date | string | Required | End date (YYYY-MM-DD) |
Code Examples
curl -X POST "https://api.blueai.jp/api/v1/accounting/fiscal-years" \
-H "Cookie: better-auth.session_token=<token>"POST
/api/v1/accounting/fiscal-years/{id}/closeClose a fiscal year
Close a fiscal year, preventing further journal entries.
Authentication required— Include session cookie or Bearer token
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Optional | Fiscal year ID |
Code Examples
curl -X POST "https://api.blueai.jp/api/v1/accounting/fiscal-years/fy_123e4567e89b12d3a456426614174000/close" \
-H "Cookie: better-auth.session_token=<token>"