Skip to main content

exportVoucherCodes Mutation

DEPRECATED

Export functionality is deprecated and will be removed. All data can be fetched via the GraphQL API and parsed into the desired format by apps or external tools.

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.
exportVoucherCodes(
input: ExportVoucherCodesInput!
): ExportVoucherCodes @deprecated
Details
type ExportVoucherCodes {
exportFile: ExportFile
errors: [ExportError!]!
}

Arguments​

input ● ExportVoucherCodesInput!​

Fields required to export voucher codes.

Type​

ExportVoucherCodes​

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.