Talk with Archie
API reference › Audit
Skills › Audit

Prepare an Audit Working Paper

POST/api/v1/skills/reports.audit-workpaper.prepare/invoke
Prepares an audit working paper such as a lead schedule, substantive test, planning memo or going-concern assessment. You must supply client_id and period, and can set the working paper type, materiality, sample size and auditing framework. It returns the paper as a downloadable artefact with its sections, findings and sample results.
Body parameters
client_idstring · uuidRequired
UUID of the client the working paper is prepared for.
workpaper_typeenum · default lead_schedule
Kind of working paper to prepare; defaults to a lead schedule.
lead_schedulesubstantive_testplanning_memogoing_concernsubsequent_eventsrevenue_testingexpense_testingdebt_confirmationrelated_party
periodstringRequired
Audit period the working paper covers, as a free-text label such as 2026-06.
materialitynumber or string
Materiality threshold as an amount in the engagement currency.
sample_sizeinteger · default 25
Number of items to select when the working paper includes sample testing.
frameworkenum · default ISA
Auditing standards framework the working paper follows, such as ISA_UK.
ASAISAPCAOBGAASISA_UK
Returns

Skill executed successfully

skillstringRequired
Example prepare_audit_workpaper
outputobjectRequired
output.artifact_idstring · uuid
output.download_urlstring · default
output.summarystring · default
output.citationsarray of values
output.warningsarray of strings
output.stub_fieldsarray of strings
output.workpaper_typestring · default
output.sectionsarray of strings
output.findingsarray of values
output.sample_resultsobject
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/reports.audit-workpaper.prepare/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "client_id": "00000000-0000-0000-0000-000000000000",
       "workpaper_type": "lead_schedule",
       "period": "string",
       "materiality": null,
       "sample_size": 0,
       "framework": "ASA"
     }'
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "reports.audit-workpaper.prepare",
    client_id="00000000-0000-0000-0000-000000000000",
    workpaper_type="lead_schedule",
    period="string",
    materiality=None,
    sample_size=0,
    framework="ASA",
)
print(result)
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("reports.audit-workpaper.prepare", {
  "client_id": "00000000-0000-0000-0000-000000000000",
  "workpaper_type": "lead_schedule",
  "period": "string",
  "materiality": null,
  "sample_size": 0,
  "framework": "ASA"
});
console.log(result);
Response
{
  "skill": "prepare_audit_workpaper",
  "output": {
    "findings": [
      {
        "area": "Revenue cut-off",
        "description": "One invoice of GBP 4,200 was recorded in the wrong month.",
        "recommendation": "Correct the posting date and re-check cut-off.",
        "severity": "low"
      }
    ],
    "sample_results": {
      "currency": "GBP",
      "exceptions": 1,
      "items_tested": 25
    },
    "sections": [
      "Objective",
      "Population and sample",
      "Results",
      "Conclusion"
    ],
    "summary": "Revenue testing working paper for Northwind Trading Ltd, June 2026.",
    "workpaper_type": "revenue_testing"
  },
  "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.