Skip to main content

inventoryCsvImport

Import inventory records from a CSV file.

Processes a CSV file containing inventory data and creates multiple inventory records in batch. Provides detailed feedback on successful imports and any errors encountered during processing.

Possible errors:

  • INVENTORY_BULK_CREATE_ERROR: Failed to process the CSV file or create inventory records
  • INVENTORY_ALREADY_EXISTS_ERROR: One or more inventory records already exist
  • INVENTORY_PRODUCT_NOT_FOUND_ERROR: One or more products do not exist
  • INVENTORY_WAREHOUSE_NOT_FOUND_ERROR: One or more warehouses do not exist
  • FORBIDDEN: Insufficient permissions to import inventory records

AUTH: Role=[logistics.OWNER]

inventoryCsvImport(
input: InventoryCsvInput!
): CsvImportResponse!

Arguments

inventoryCsvImport.input ● InventoryCsvInput! non-null input

CSV file and mapping configuration for inventory import.

Contains the CSV file data and field mappings to define how CSV columns correspond to inventory properties.

Type

CsvImportResponse object