Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Invoke Skill Accruals Suggest

post/api/v1/skills/accruals.suggest/invoke

Advisory β€” 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

FieldTypeDescription
client_idrequiredstring (uuid)UUID of the client to suggest month-end accruals for.
periodrequiredstringYYYY-MM month-end target (e.g. '2026-04')
lookback_monthsintegerHow many prior periods to scan for recurring patterns.
focus_areasstring[]Optional shortlist of accrual categories β€” e.g. ['wages', 'interest', 'rent', 'utilities']. Empty means scan everything.
jurisdiction"AU" | "GB" | "CA" | "US" | "NZ" | nullJurisdiction code that sets the accounting conventions applied.

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectβ€”
show nested
FieldTypeDescription
stub_fieldsstring[]β€”
warningsstring[]β€”
summarystringβ€”
suggestionsany[]β€”
citationsany[]β€”
correlation_idrequiredstringβ€”
401Authentication required
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
403Insufficient permissions
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
404Skill not found
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
429Rate limit exceeded
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
5XXInternal server error
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
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
     }'