> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apps.lute.co.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Report

> Trigger asynchronous generation of themed Excel (XLSX) or CSV reports.

# Generate Report

Initiates a background job to build an Excel (XLSX) report. The generated file is stored securely for 7 days.

### Path Parameters

**type** `string` *required*

Report type: `orders`, `shipments`, `ndr`, `cod`, `courier`, or `returns`.

### Request Body

**from** `string` *required*

Start date (`YYYY-MM-DD`).

**to** `string` *required*

End date (`YYYY-MM-DD`).

**format** `string` (default: xlsx)

`xlsx` or `csv`.

***

### Response Example

```json theme={null}
{
  "success": true,
  "data": {
    "runId": "run_98492019",
    "type": "shipments",
    "status": "queued",
    "message": "Report generation started. You will receive an in-app notification when ready."
  },
  "meta": {
    "timestamp": "2026-11-22T16:36:15.000Z",
    "request_id": "req_44102931"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.