Talk with Archie
API reference › Transactions
Skills › Transactions

Suggest Month-End Accruals

POST/api/v1/skills/accruals.suggest/invoke
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.
Body parameters
client_idstring · uuidRequired
UUID of the client to suggest month-end accruals for.
periodstringRequired
YYYY-MM month-end target (e.g. '2026-04')
lookback_monthsinteger · default 12
How many prior periods to scan for recurring patterns.
focus_areasarray of strings
Optional shortlist of accrual categories — e.g. ['wages', 'interest', 'rent', 'utilities']. Empty means scan everything.
jurisdictionenum
Jurisdiction code that sets the accounting conventions applied.
AUGBCAUSNZ
Returns

Skill executed successfully

skillstringRequired
Example accruals_suggest
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.summarystring · default
output.suggestionsarray of values
output.citationsarray of values
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALIDAuthentication required
403PERMISSION.CAPABILITY_DENIEDInsufficient permissions
404SKILL.NOT_FOUNDSkill not found
422VALIDATION.INVALID_FORMATValidation error
429RATE_LIMIT.USERRate limit exceeded
5XXINTERNAL.UNKNOWNInternal server error
curl https://uk.heyarchie.com/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
     }'
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "accruals.suggest",
    client_id="00000000-0000-0000-0000-000000000000",
    period="string",
    lookback_months=0,
    focus_areas=["string"],
    jurisdiction=None,
)
print(result)
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("accruals.suggest", {
  "client_id": "00000000-0000-0000-0000-000000000000",
  "period": "string",
  "lookback_months": 0,
  "focus_areas": [
    "string"
  ],
  "jurisdiction": null
});
console.log(result);
Response
{
  "skill": "accruals_suggest",
  "output": {
    "suggestions": [
      {
        "account": "Accrued Wages",
        "account_code": "2110",
        "amount": 8400,
        "confidence": "high",
        "evidence": "Wages were accrued in each of the prior three months and none is booked yet.",
        "narration": "Accrue wages for the last two working days of September 2026"
      }
    ],
    "summary": "One accrual is suggested for September 2026."
  },
  "correlation_id": "<string>"
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}

Every response also carries X-Request-ID. Quote it if you write to us about a call.