Importing Products
The Product Import endpoint can be used to import Product data without Product Variant or Price information. The data to import is represented by ProductImport and loaded in ProductImportRequest, which is posted to import Products.
To import Product data with Product Variants and Prices in one import request, the ProductDraft Import endpoint is available. However, as the present endpoint has a smaller payload, generally a faster performance can be expected when Product Variant and Price information is not involved.
To monitor an import status, use Get ImportSummary, Get ImportOperation, and Query ImportOperations.
Representations
ProductImportRequest
The request body to import Products. Contains data for Products to be created or updated in a commercetools Project.
typeString | "product"The product import resource type. |
resourcesArray of ProductImport | The product import resources of this request. MaxItems:20 |
{"type" : "product","resources" : [ {"key" : "t-shirt","name" : {"en" : "t-shirt"},"productType" : {"typeId" : "product-type","key" : "sample"},"slug" : {"en" : "t-shirt-slug"},"description" : {"en" : "t-shirt-description"},"categories" : [ {"typeId" : "category","key" : "greatTestCat"} ],"metaTitle" : {"en" : "title"},"metaDescription" : {"en" : "description"},"metaKeywords" : {"en" : "Keywords"},"taxCategory" : {"typeId" : "tax-category","key" : "tax-category-key"},"state" : {"typeId" : "state","key" : "state-key"}} ]}
ProductImport
keyString | |
name | Maps to |
productType | The |
slug | Human-readable identifiers usually used as deep-link URL to the related product. Each slug must be unique across a Project, but a product can have the same slug for different languages. Allowed are alphabetic, numeric, underscore (_) and hyphen (-) characters. |
description | Maps to |
categoriesArray of CategoryKeyReference | Maps to |
metaTitle | |
metaDescription | |
metaKeywords | |
taxCategory | The Reference to the TaxCategory with which the Product is associated.
If referenced TaxCategory does not exist, the |
searchKeywordsSearchKeywords | |
state | The Reference to the State with which the Product is associated.
If referenced State does not exist, the |
publishBoolean | If |
Import Products
Creates a request for creating new Products or updating existing ones.
manage_products:{projectKey}regionString | The Region in which the Project is hosted. |
projectKeyString | The commercetools Project key. |
importContainerKeyString | The ImportContainer used to create the new resource |