会計年度(Fiscal Years)
会計年度の作成・一覧取得・締め処理を行います。
|
エンドポイント
| GET | /api/v1/accounting/fiscal-years | 会計年度一覧を取得 |
| POST | /api/v1/accounting/fiscal-years | 会計年度を作成 |
| POST | /api/v1/accounting/fiscal-years/{id}/close | 会計年度を締める |
GET
/api/v1/accounting/fiscal-years会計年度一覧を取得
認証が必要です— セッション Cookie または Bearer トークンを含めてください
クエリパラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
limit | integer | 任意 | 取得件数(デフォルト: 20, 最大: 100) |
offset | integer | 任意 | 取得開始位置(デフォルト: 0) |
コード例
curl "https://api.blueai.jp/api/v1/accounting/fiscal-years" \
-H "Cookie: better-auth.session_token=<token>"POST
/api/v1/accounting/fiscal-years会計年度を作成
認証が必要です— セッション Cookie または Bearer トークンを含めてください
リクエストボディ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
name | string | 必須 | 会計年度名(例: 2026年度) |
start_date | string | 必須 | 開始日(YYYY-MM-DD) |
end_date | string | 必須 | 終了日(YYYY-MM-DD) |
コード例
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}/close会計年度を締める
会計年度を締めて、以降の仕訳入力を禁止します。
認証が必要です— セッション Cookie または Bearer トークンを含めてください
パスパラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | 任意 | 会計年度 ID |
コード例
curl -X POST "https://api.blueai.jp/api/v1/accounting/fiscal-years/fy_123e4567e89b12d3a456426614174000/close" \
-H "Cookie: better-auth.session_token=<token>"