Behavior: Exports journal entries for the specified date range. When background is true (default), the export is queued as a batch action for asynchronous processing. When background is false, the export runs synchronously and returns the Excel file directly. If no data is available, returns 204 No Content.
Authorization: Requires an authenticated user via the class-level [Authorize] attribute.
Side Effects: When background is true, queues a batch export job. When background is false, generates an Excel file in memory.
Error Scenarios: Returns 400 if the export date is invalid or the export process fails. Returns 204 if no journal data exists for the specified date range.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
200The journal export was completed and the file is returned (synchronous mode only).
204The export was queued as a background job or no data exists for the specified date range.
401Unauthorized. The caller must provide a valid Bearer token.
