Approvals
Manage journal entry approval requests, approvals, and rejections.
|
Endpoints
| POST | /api/v1/accounting/journals/{id}/submit | Submit for approval |
| POST | /api/v1/accounting/journals/{id}/approve | Approve or reject |
| GET | /api/v1/accounting/journals/{id}/approvals | List approval history |
POST
/api/v1/accounting/journals/{id}/submitSubmit for approval
Authentication required— Include session cookie or Bearer token
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Optional | Journal entry ID |
Code Examples
curl -X POST "https://api.blueai.jp/api/v1/accounting/journals/je_123e4567e89b12d3a456426614174000/submit" \
-H "Cookie: better-auth.session_token=<token>"POST
/api/v1/accounting/journals/{id}/approveApprove or reject
Authentication required— Include session cookie or Bearer token
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Optional | Journal entry ID |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
action | string | Required | Action (approve / reject) |
comment | string | Optional | Comment |
Code Examples
curl -X POST "https://api.blueai.jp/api/v1/accounting/journals/je_123e4567e89b12d3a456426614174000/approve" \
-H "Cookie: better-auth.session_token=<token>"GET
/api/v1/accounting/journals/{id}/approvalsList approval history
Authentication required— Include session cookie or Bearer token
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Optional | Journal entry ID |
Code Examples
curl "https://api.blueai.jp/api/v1/accounting/journals/je_123e4567e89b12d3a456426614174000/approvals" \
-H "Cookie: better-auth.session_token=<token>"