Product Import
Get Import Fields
Returns dynamic import fields (currently account-specific attributes) used by the column mapping UI.
Download Import Template (XLSX)
Downloads the multi-sheet XLSX import template, prefilled with sample rows and tenant reference data (brands, categories).
Validate Import
Validates mapped import rows and returns a structured preview. No side effects — safe to call repeatedly.
Execute Import
Executes the import — creates new products or updates existing ones (matched by existing_product_id or id) inside a single DB transaction.