Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

exportVoucherCodes Mutation

Export voucher codes to csv/xlsx file.

Added in Saleor 3.18.

Requires one of the following permissions:MANAGE_DISCOUNTS

Triggers the following webhook events:

  • VOUCHER_CODE_EXPORT_COMPLETED (async): A notification for the exported file.

Applied directives

@webhookEventsInfo(asyncEvents: [VOUCHER_CODE_EXPORT_COMPLETED], syncEvents: [])
exportVoucherCodes(input: ExportVoucherCodesInput!): ExportVoucherCodes

Returns

ExportVoucherCodes

Show return type
type ExportVoucherCodes {
  exportFile: ExportFile
  errors: [ExportError!]!
}

Arguments

input

input · ExportVoucherCodesInput!

Fields required to export voucher codes.


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?