Newer Version Available

This content describes an older version of this product. View Latest

B2B2C Commerce Product Import Resource

Import a product catalog for a B2B or B2C store using a .csv file.
Resource
1/commerce/management/webstores/webstoreId/product-import
Available version
52.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
JSON example
1{
2"sampleData": "B2BSampleData"
3}
Properties
Name Type Description Required or Optional Available Version
allOrNone Boolean Specifies whether to stop processing if any row was not able to import (true) or to continue processing for a partial import (false). If unspecified, the default value is false. Optional 52.0
commerce​Entitlement​PolicyId String ID of the entitlement policy to import to. Optional 52.0
contentVersionId String Content version ID of the .csv file. Required if sampleData isn’t specified 52.0
pricebookId String ID of the pricebook to import to. Optional 52.0
productCatalog​Id String ID of the product catalog to import to. Optional 52.0
sampleData String Sample .csv file to import. Values are:
  • B2BSampleData���B2B sample data set.
  • Camera—Camera store sample data set.
  • Coffee—Coffee store sample data set.
  • Hardware—Hardware store sample data set.
  • NorthernTrail—Outdoor goods store sample data set.
  • NorthernTrailLarge—Larger outdoor goods store sample data set.
  • Simple—Two-product sample data set.
Required if contentVersionId isn’t specified 52.0
strikethrough​PricebookId String ID of the strikethrough pricebook to import to. Optional 52.0
Response body for POST
Product Import