Get month-end package

GET /api/v1/month-end-packages/{package_id}

Get a single month-end package by id (poll for build progress).

Operation ID: get_package_api_v1_month_end_packages__package_id__get · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

package_id string required

Responses

200 Successful Response

id string required

Month-end package UUID

business_id string required

Owning business UUID

accounting_period_id string

Linked accounting period UUID, if any

period_start string · date-time required

Start of the covered period

period_end string · date-time required

End of the covered period

status MonthEndPackageStatusEnum requiredMonthEndPackageStatusEnum

Build status: queued, in_progress, ready, or failed

report_format MonthEndPackageFormatEnum requiredMonthEndPackageFormatEnum

Per-report format inside the zip

selected_reports array · string

Report keys included in the package

workflow_id string

Temporal workflow id driving the build

file_size_bytes integer

Final zip size in bytes (set when ready)

filename string

Suggested attachment filename for the zip download

error_message string

Failure reason when status == 'failed'

requested_by_user_id string

User who requested the package

started_at string · date-time

When the build started

ready_at string · date-time

When the package became downloadable

created_at string · date-time required

Creation timestamp

updated_at string · date-time required

Last update timestamp

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object