Invoke Skill Accruals Suggest
post
/api/v1/skills/accruals.suggest/invokeAdvisory β LLM-driven; verify against authoritative sources before relying. Suggest month-end accruals for a client by scanning the trial balance, variance against prior periods, and recurring patterns. Read-only β produces structured suggestions for review; the user records it with qbo_create_journal_entry (QBO) or stages it with xero_stage_journal (Xero, posted once approved).
Suggests month-end accruals for a client, so an accountant can spot costs that are missing before closing the period. It needs the client_id and a period in YYYY-MM form, and accepts a look-back window, focus areas and a jurisdiction. It returns a summary and a list of suggested accruals with evidence and confidence, which are for review only because nothing is posted.
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
client_idrequired | string (uuid) | UUID of the client to suggest month-end accruals for. |
periodrequired | string | YYYY-MM month-end target (e.g. '2026-04') |
lookback_months | integer | How many prior periods to scan for recurring patterns. |
focus_areas | string[] | Optional shortlist of accrual categories β e.g. ['wages', 'interest', 'rent', 'utilities']. Empty means scan everything. |
jurisdiction | "AU" | "GB" | "CA" | "US" | "NZ" | null | Jurisdiction code that sets the accounting conventions applied. |
Responses
200Skill executed successfully
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | ||||||||||||||||||
outputrequired | object | βshow nested
| ||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
curl https://api.dev.arch.ie/api/v1/skills/accruals.suggest/invoke \
-X POST \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"client_id": "00000000-0000-0000-0000-000000000000",
"period": "string",
"lookback_months": 0,
"focus_areas": [
"string"
],
"jurisdiction": null
}'