Skip to main content
POST
Generate P60

Authorizations

Authorization
string
header
required

Get token from Auth0 and paste it here

Path Parameters

organization_id
string
required
tax_year
integer
required
Required range: 1901 <= x <= 2100

Body

application/json

Trigger body. format selects the deliverable: xlsx → four-sheet summary workbook, zip → pack of per-employee PDFs. Both share ReportType.P60_GB.

Typed as plain string literals (not Literal[ReportFormat.XLSX, ReportFormat.ZIP]): a Literal of enum members reprs each member with its class name in the 422 body (Input should be <ReportFormat.XLSX: 'xlsx'> or <ReportFormat.ZIP: 'zip'>); string literals produce the clean Input should be 'xlsx' or 'zip'.

format
enum<string>
default:xlsx
Available options:
xlsx,
zip

Response

Successful Response

Returned by the POST trigger — the handle the client polls on.

report_id
string
required
status
enum<string>
required

Report lifecycle, independent of the underlying Document's status.

Available options:
pending,
generating,
ready,
failed