メインコンテンツへ
BlueAI
ホーム/会計/月次ロック

月次ロック(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>"