Skip to main content

bulkImportProductsGeneric

Requires permission products:import:preview.

Parses a base64 CSV with a named mapping profile and returns a dry-run preview. Writes nothing.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query BulkImportProductsGeneric($input: BulkImportProductsGenericInput!) {
bulkImportProductsGeneric(input: $input) {
createCount
currency
importId
moq
variantCount
warnings
sampleRows {
productName
variantName
cost
price
salePrice
sku
}
}
}

Variables:

{
"input": {
"file": "string",
"mappingProfile": "CUSTOM"
}
}

Response:

{
"data": {
"bulkImportProductsGeneric": {
"createCount": 0,
"currency": "string",
"importId": "string",
"moq": 0,
"variantCount": 0,
"warnings": [
"string"
],
"sampleRows": [
{
"productName": "string",
"variantName": "string",
"cost": 0,
"price": 0,
"salePrice": 0,
"sku": "string"
}
]
}
}
}
bulkImportProductsGeneric(
input: BulkImportProductsGenericInput!
): GenericProductImportPreview!

Arguments​

bulkImportProductsGeneric.input ● BulkImportProductsGenericInput! non-null input​

The details of the bulk import products generic request.

Type​

GenericProductImportPreview object​

A dry run of a generic product import: what would be written, and the organization defaults that were applied.