Importing Products
Create and update Products without Product Variant or Embedded Price data.
The data to import is represented by ProductImport and included in a ProductImportRequest, which is imported using Import Products.
If you need to import Products with Product Variant and Embedded Price data, use ProductDraft Import. For more information, see Choosing the right Product import endpoint.
When importing Product data to update an existing Product, you must include existing values for fields (for example categories
and taxCategory
) or they will be removed when the Product is imported.
Representations
ProductImportRequest
The request body to import Products. Contains data for Products to be created or updated in a Project.
type | "product" The Product import resource type. |
resources Array 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
key String | User-defined unique identifier. If a Product with this 2 MaxLength: 256 Pattern: ^[A-Za-z0-9_-]+$ |
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 |
categories Array 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 |
searchKeywords SearchKeywords | |
state | The Reference to the State with which the Product is associated.
If referenced State does not exist, the |
publish Boolean | Determines the published status and current/staged projection of the Product. For more information, see Managing the published state of Products. Default:false |
priceMode ProductPriceModeEnum | Determines the type of Prices the API uses. See ProductPriceMode for more details. If not provided, the existing |
Import Products
Creates a request for creating new Products or updating existing ones.
manage_products:{projectKey}
region String | The Region in which the Project is hosted. |
projectKey String | The Project key. |
importContainerKey String | The ImportContainer used to create the new resource |
application/json
application/json