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

# Export Order XLSX

> Export video timestamps, transcriptions, and translations for a single order as an XLSX spreadsheet

Returns an XLSX spreadsheet containing segment data (timecodes, source transcription, translated text) for the given order. The target language is resolved automatically from the order.

The spreadsheet contains the following columns:

| Column            | Description                                                 |
| ----------------- | ----------------------------------------------------------- |
| SR NO             | Sequential row number                                       |
| TCR               | Timecode (start timestamp)                                  |
| SPEAKER           | Speaker name                                                |
| DIALOGUES         | Source transcription text                                   |
| *Target Language* | Translated text (column header is the target language code) |

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api-integration.ollang.com/integration/orders/60b8d6f1e1b9b1d8c6c0d8e1/export-xlsx" \
    -H "X-Api-Key: <your-api-key>" \
    --output order_export.xlsx
  ```

  ```javascript JavaScript theme={null}
  const orderId = "60b8d6f1e1b9b1d8c6c0d8e1";

  const response = await fetch(
    `https://api-integration.ollang.com/integration/orders/${orderId}/export-xlsx`,
    {
      method: "GET",
      headers: {
        "X-Api-Key": "<your-api-key>",
      },
    },
  );

  const blob = await response.blob();
  const url = URL.createObjectURL(blob);
  // Download or process the XLSX file
  ```

  ```python Python theme={null}
  import requests

  order_id = "60b8d6f1e1b9b1d8c6c0d8e1"

  response = requests.get(
      f"https://api-integration.ollang.com/integration/orders/{order_id}/export-xlsx",
      headers={"X-Api-Key": "<your-api-key>"},
  )

  with open("order_export.xlsx", "wb") as f:
      f.write(response.content)
  ```
</RequestExample>

## Authorizations

This endpoint requires API key authentication. Include your API key in the request header:

* **Header name**: `X-Api-Key`
* **Header value**: Your API key from the Ollang dashboard

## Path Parameters

<ParamField path="orderId" type="string" required>
  The unique identifier of the order to export.
</ParamField>

## Response

The response is a binary XLSX file download. The response headers include:

* `Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
* `Content-Disposition: attachment; filename="{OrderName}_{targetLanguage}.xlsx"`

<ResponseExample>
  ```text 200 theme={null}
  Binary XLSX file (spreadsheet with segment data)
  ```

  ```json 401 theme={null}
  {
    "error": "Unauthorized",
    "message": "Invalid or missing API key",
    "code": "UNAUTHORIZED"
  }
  ```

  ```json 500 theme={null}
  {
    "statusCode": 500,
    "message": "No segment data found for order 60b8d6f1e1b9b1d8c6c0d8e1 with target language tr."
  }
  ```
</ResponseExample>
