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

# Export Order

> Export order data as CSV or JSON

Download order data in CSV or JSON format.

## Path Parameters

<ParamField path="id" type="string" required>
  Order ID
</ParamField>

## Query Parameters

<ParamField query="format" type="string" default="json">
  Export format: `json` or `csv`
</ParamField>

## Headers

<ParamField header="Authorization" type="string" required>
  Bearer token: `Bearer <access_token>`
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  # Export as JSON
  curl -X GET "https://api.finscreener.in/api/orders/order_123/export?format=json" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

  # Export as CSV
  curl -X GET "https://api.finscreener.in/api/orders/order_123/export?format=csv" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
    -o order_data.csv
  ```
</RequestExample>

<ResponseExample>
  ```json JSON Format theme={null}
  {
    "order_id": "order_123",
    "data": [
      {
        "CIN": "U72200MH2004PTC148441",
        "companyName": "TCS LIMITED",
        "City": "Mumbai",
        "State": "Maharashtra",
        "directors": [...],
        "gst": [...]
      }
    ]
  }
  ```
</ResponseExample>
