202 Successful Response
Schema: ReportTaskResponse
-
task_idstring required -
Unique identifier for the report generation task. Use this to poll for status via GET /reports/task/{task_id}. Also serves as the Temporal workflow ID. Format: 'report-generation-{business_id}-{report_name}-{date_params}'. Example: 'report-generation-bus123-profit_and_loss-start-2026-01-01-end-2026-12-31'.
-
statusstring required -
Initial status of the task. Typically 'queued' for new requests or 'in_progress' if a duplicate request was made while an identical report is already being generated. Values: 'queued', 'in_progress', 'failed'.
-
messagestring -
Human-readable message about the task status. Provides context such as 'Report generation queued successfully with Temporal' or error details if the request failed validation.
-
business_idstring required -
UUID of the business for which the report is being generated. Echoed from the request for confirmation.
-
report_namestring required -
Type of report being generated. Echoed from the request for confirmation. Example: 'profit_and_loss', 'master_transactions', 'cogs_report'.