# Prepare an Audit Working Paper

> Prepares an audit working paper such as a lead schedule, substantive test, planning memo or going-concern assessment. You must supply client_id and…

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_id string · uuid Required

UUID of the client the working paper is prepared for.

workpaper_type enum · default lead_schedule

Kind of working paper to prepare; defaults to a lead schedule.

lead_schedule substantive_test planning_memo going_concern subsequent_events revenue_testing expense_testing debt_confirmation related_party

period string Required

Audit period the working paper covers, as a free-text label such as 2026-06.

materiality number or string

Materiality threshold as an amount in the engagement currency.

sample_size integer · default 25

Number of items to select when the working paper includes sample testing.

framework enum · default ISA

Auditing standards framework the working paper follows, such as ISA_UK.

ASA ISA PCAOB GAAS ISA_UK

Returns

Skill executed successfully

skill string Required

Example prepare_audit_workpaper

output object Required

output.artifact_id string · uuid

output.download_url string · default

output.summary string · default

output.citations array of values

output.warnings array of strings

output.stub_fields array of strings

output.workpaper_type string · default

output.sections array of strings

output.findings array of values

output.sample_results object

correlation_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.UNKNOWN Internal server error

[Previous ← Test Internal Controls](https://heyarchie.com/en-gb/developers/api-reference/audit/test-internal-controls/)

```
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>"
  }
}
```

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