Skip to main content

ExportVoucherCodes Object

Export voucher codes to csv/xlsx file.

Added in Saleor 3.18.

Requires the MANAGE_DISCOUNTSpermission.

Triggers the following webhook events:

  • VOUCHER_CODE_EXPORT_COMPLETED (async): A notification for the exported file.
type ExportVoucherCodes {
exportFile: ExportFile
errors: [ExportError!]!
}

Fields

exportFile ● ExportFile

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

errors ● [ExportError!]!

Returned By

exportVoucherCodes mutation