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

# Download declaration items

> Export declaration items in CSV/XLSX format.

Export declaration items in CSV/XLSX format using query parameters.

### Query Parameters

<ParamField query="search" type="string">
  Search term to filter items before downloading.
</ParamField>

<ParamField query="type" type="string" default="xlsx">
  The format of the downloaded file.

  * Options: `xlsx`, `csv`
</ParamField>

<ParamField query="isSendMail" type="boolean" default="false">
  Whether to send the generated export file via email.
</ParamField>

<ParamField query="emailRecipients" type="string[]">
  A list of email addresses to send the file to (required if `isSendMail` is true).
</ParamField>

<ParamField query="columns" type="string[]">
  Specific columns to include in the export (e.g. `description`, `commodityCode`, `quantity`).
</ParamField>

<ResponseExample>
  ```http 200 OK theme={null}
  Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  Content-Disposition: attachment; filename="declaration_items.xlsx"
  [Binary File Data]
  ```
</ResponseExample>
