Skip to main content

discountCsvImport

Import discount records from a CSV file with comprehensive validation and mapping.

Processes CSV data to create multiple discount records efficiently. Supports field mapping, validation, and error reporting for bulk discount management operations.

Possible errors:

  • CSV_IMPORT_ERROR: Failed to process CSV file
  • DISCOUNT_VALIDATION_ERROR: Invalid discount data in CSV
  • DISCOUNT_CREATE_ERROR: Failed to create discount records
  • UNAUTHENTICATED: Invalid or missing authentication
  • FORBIDDEN: Insufficient permissions to import discounts

AUTH: Role=[pricing.OWNER]

discountCsvImport(
input: DiscountCsvInput!
): CsvImportResponse!

Arguments

discountCsvImport.input ● DiscountCsvInput! non-null input

CSV import configuration including file data and field mappings.

Contains the CSV file and mapping instructions for converting CSV columns to discount fields with proper validation.

Type

CsvImportResponse object