Skip to main content

productCsvImport

Import products from a CSV file with validation and bulk processing.

Each row in the CSV is treated as a single product. Existing products are matched by internal identifier, source identifier, SKU or supplier code based on which fields the row contains; rows that do not match are created.

Possible errors:

  • SCHEMA_VALIDATION: One or more rows or mappings failed validation.

AUTH: Role=[product.OWNER]

productCsvImport(
input: ProductCsvInput!
): CsvImportResponse!

Arguments

productCsvImport.input ● ProductCsvInput! non-null input

CSV file and column-to-field mappings.

The mappings tell the importer how each CSV column maps to a product field.

Type

CsvImportResponse object