> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/discounts/llms.txt)
> Source: https://docs.saleor.io/api-reference/discounts/objects/export-voucher-codes

# ExportVoucherCodes Object

Export voucher codes to csv/xlsx file.

Added in Saleor 3.18.

Requires the MANAGE\_DISCOUNTS permission.

Triggers the following webhook events:

-   VOUCHER\_CODE\_EXPORT\_COMPLETED (async): A notification for the exported file.

```graphql
type ExportVoucherCodes {
  exportFile: ExportFile
  errors: [ExportError!]!
}
```

<a id="fields"></a>

### Fields

<a id="export-file"></a>

#### [`exportFile`](#export-file) ● [`ExportFile`](/api-reference/miscellaneous/objects/export-file.md)

The newly created export file job which is responsible for export data.

<a id="errors"></a>

#### [`errors`](#errors) ● [`[ExportError!]!`](/api-reference/miscellaneous/objects/export-error.md)

<a id="returned-by"></a>

### Returned By

[`exportVoucherCodes`](/api-reference/deprecated/discounts/mutations/export-voucher-codes.md) mutation
