月次ロック(Period Locks)
月次単位で仕訳入力をロック・解除します。
|
エンドポイント
| GET | /api/v1/accounting/period-locks | 月次ロック一覧を取得 |
| POST | /api/v1/accounting/period-locks | 月次ロックを作成 |
| DELETE | /api/v1/accounting/period-locks/{id} | 月次ロックを解除 |
GET
/api/v1/accounting/period-locks月次ロック一覧を取得
認証が必要です— セッション Cookie または Bearer トークンを含めてください
クエリパラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
fiscal_year_id | string | 任意 | 会計年度 ID で絞り込み |
limit | integer | 任意 | 取得件数(デフォルト: 20, 最大: 100) |
offset | integer | 任意 | 取得開始位置(デフォルト: 0) |
コード例
curl "https://api.blueai.jp/api/v1/accounting/period-locks" \
-H "Cookie: better-auth.session_token=<token>"POST
/api/v1/accounting/period-locks月次ロックを作成
認証が必要です— セッション Cookie または Bearer トークンを含めてください
リクエストボディ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
fiscal_year_id | string | 必須 | 会計年度 ID |
year_month | string | 必須 | ロック対象月(YYYY-MM) |
コード例
curl -X POST "https://api.blueai.jp/api/v1/accounting/period-locks" \
-H "Cookie: better-auth.session_token=<token>"DELETE
/api/v1/accounting/period-locks/{id}月次ロックを解除
認証が必要です— セッション Cookie または Bearer トークンを含めてください
パスパラメータ
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
id | string | 任意 | 月次ロック ID |
コード例
curl -X DELETE "https://api.blueai.jp/api/v1/accounting/period-locks/plock_123e4567e89b12d3a456426614174000" \
-H "Cookie: better-auth.session_token=<token>"