The Import/Export tool can be used through the API as well as through the user interface in the KCCP Admin. Using the APIs you can write integrations that can upload data into KCCP at blazing speed. Any bulk data load into KCCP should use the Import/Export APIs if the data resource is supported.
These APIs are used internally by the Import/Export 3.0 UI, so you can use the UI to export files which can then be modified and imported by the API. Similarly, you can create an export via API, and import it in the Import/Export 3.0 UI.
The import and export APIs use a series of API calls to coordinate the process of getting data in and out of Kibo. File upload and download is handled separately than the creation of the jobs themselves. The API calls for the jobs are asynchronous in that none of the API calls will block for the jobs to complete, you must poll for the results.
The following diagrams show the general process of the series of API calls needed for both export and import:
The format of the CSV files follows the standard conventions for CSV file formats.
By default, if you leave a product property blank, it will not clear the property in KCCP to prevent deletion of data. If you really need to clear a product property, use the ~delete~
sentinel as the value of the property to remove the property in the product in KCCP.
Note that by default, all fields of resource are not exported. So for example, there is a Description
field on the Attribute
resource, but it is not exported by default, you must include it in the fields
array. The full list of optional fields is specified in the Field List JSON.
If you ever receive errors about “End of Central directory”, this is most likely related to the file that was uploaded. It must be of zip file format, even if there is a single file. So for example, if you only want to update the Products resource, you need to take your file products.csv
, zip it, and then upload the resulting zip file.
The following is a full JSON listing of the fields, which can be used for reference for what resources are available, and for those resources, what fields are required and optional.
{
"Attributes": {
"format": "Legacy",
"resource": "Attributes",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"AttributeCode",
"AttributeName",
"DataType",
"InputType",
"IsExtra",
"IsOption",
"IsProperty",
"Namespace",
"SearchableInStorefront",
"SearchableInAdmin",
"SearchDisplayValue"
],
"optional": [
"Description"
]
}
},
"AttributeValues": {
"format": "Legacy",
"resource": "AttributeValues",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"AttributeCode",
"DataType",
"Namespace",
"Value",
"Name",
"DisplayOrder"
],
"optional": []
}
},
"ProductTypes": {
"format": "Legacy",
"resource": "ProductTypes",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ProductType",
"Standard",
"Configurable",
"Bundle",
"Component"
],
"optional": [
"GoodsType"
]
}
},
"ProductTypeAttributes": {
"format": "Legacy",
"resource": "ProductTypeAttributes",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ProductType",
"AttributeCode",
"Type",
"Order"
],
"optional": [
"IsRequiredByAdmin",
"IsHiddenProperty",
"IsMultiValueProperty"
]
}
},
"ProductTypeAttributeValues": {
"format": "Legacy",
"resource": "ProductTypeAttributeValues",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ProductType",
"AttributeCode",
"Type",
"VocabularyValue"
],
"optional": []
}
},
"Categories": {
"format": "Legacy",
"resource": "Categories",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"CatalogName",
"CategoryCode",
"CategoryName",
"CategoryType"
],
"optional": [
"CategoryId",
"ParentCategoryCode",
"Expression",
"IsDisplayed",
"IsActive",
"Sequence",
"MetaTagTitle",
"MetaTagDescription",
"PageTitle",
"CategoryDescription",
"MetaTagKeyWords",
"SEOUrl"
]
}
},
"CategoryImages": {
"format": "Legacy",
"resource": "CategoryImages",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"CatalogName",
"CategoryCode",
"ImageName"
],
"optional": [
"LocaleCode",
"AltText",
"ImageLabel",
"Order"
]
}
},
"SortDefinitions": {
"format": "Legacy",
"resource": "SortDefinitions",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"CatalogName",
"CategoryCode",
"ProductSortDefinitionId",
"Name"
],
"optional": [
"StartDate",
"EndDate",
"PrimaryAttribute",
"PrimaryDirection",
"SecondaryAttribute",
"SecondaryDirection"
]
}
},
"ProductRankings": {
"format": "Legacy",
"resource": "ProductRankings",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"CatalogName",
"CategoryCode",
"SortDefinitionId",
"ProductCode",
"Position"
],
"optional": [
"Locked"
]
}
},
"Products": {
"format": "Legacy",
"resource": "Products",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ProductCode",
"ProductType",
"ProductUsage",
"ProductName",
"Price",
"VariationPricingMethod",
"PackageWeight",
"PackageLength",
"PackageWidth",
"PackageHeight"
],
"optional": [
"SalePrice",
"Cost",
"MSRP",
"MAP",
"MAPEffectiveStartDate",
"MAPEffectiveEndDate",
"RestrictDiscount",
"RestrictDiscountStartDate",
"RestrictDiscountEndDate",
"ManufacturerPartNumber",
"UPC",
"DistributorPartNumber",
"IsTaxable",
"ManageStock",
"IsPackagedStandAlone",
"OutOfStockBehavior",
"FulfillmentTypes",
"ProductShortDescription",
"ContentFullProductDescription",
"ContentFullProductDescription2",
"ContentFullProductDescription3",
"SEOMetaTagTitle",
"SEOMetaTagDescription",
"SEOMetaTagKeywords",
"SEOFriendlyURL"
]
}
},
"ProductPropertyLocale": {
"format": "Legacy",
"resource": "ProductPropertyLocale",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ProductCode",
"AttributeName"
],
"optional": [
"Value"
]
}
},
"ProductCatalog": {
"format": "Legacy",
"resource": "ProductCatalog",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"CatalogName",
"ProductCode",
"IsActive"
],
"optional": [
"CategoryCodes",
"ProductName",
"Price",
"SalePrice",
"MSRP",
"MAP",
"MAPEffectiveStartDate",
"MAPEffectiveEndDate",
"ProductShortDescription",
"ContentFullProductDescription",
"SEOMetaTagTitle",
"SEOMetaTagDescription",
"SEOMetaTagKeywords",
"SEOFriendlyURL"
]
}
},
"ProductBundles": {
"format": "Legacy",
"resource": "ProductBundles",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ProductCode",
"Code",
"Quantity"
],
"optional": [
"Name"
]
}
},
"ProductOptions": {
"format": "Legacy",
"resource": "ProductOptions",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ProductCode",
"VariationCode",
"Enabled"
],
"optional": [
"ExtraPrice",
"FixedListPrice",
"FixedSalePrice",
"FixedMSRP",
"DeltaMSRP",
"FixedWeight",
"ExtraWeight",
"ExtraCost",
"FulfillmentTypes",
"MfgPartNo",
"UPC",
"DistPartNo"
]
}
},
"ProductExtras": {
"format": "Legacy",
"resource": "ProductExtras",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ProductCode",
"AttributeCode",
"Value"
],
"optional": [
"RequiredByShopper",
"Defaulted",
"MultiSelect",
"Quantity"
]
}
},
"ProductOptionsLocale": {
"format": "Legacy",
"resource": "ProductOptionsLocale",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ProductCode",
"VariationCode"
],
"optional": [
"Currency",
"Extra Price",
"Extra MSRP",
"Extra Credit Value",
"Fixed List Price",
"Fixed Sale Price"
]
}
},
"ProductImages": {
"format": "Legacy",
"resource": "ProductImages",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ProductCode",
"Name"
],
"optional": [
"Sequence",
"AltText",
"ImageLabel",
"VideoUrl"
]
}
},
"LocationTypes": {
"format": "Legacy",
"resource": "LocationTypes",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"LocationTypeCode",
"LocationTypeName"
],
"optional": []
}
},
"Locations": {
"format": "Legacy",
"resource": "Locations",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"LocationTypeCodes",
"LocationCode",
"Name",
"IsDisabled",
"Address1",
"AddressType",
"CityOrTown",
"CountryCode",
"PostalOrZipCode",
"StateOrProvince",
"Shipping Contact CompanyOrOrganization",
"Shipping Contact PhoneNumber",
"SupportsInventory",
"AllowFulfillmentWithNoStock",
"Latitude",
"Longitude",
"Express",
"TransferEnabled",
"IncludeInLocationExport",
"IncludeInInventoryAggregrate",
"WarehouseEnabled"
],
"optional": [
"Description",
"FulfillmentTypes",
"Address2",
"Address3",
"Address4",
"Shipping Contact Email",
"Shipping Contact FirstName",
"Shipping Contact LastNameOrSurname",
"Shipping Contact MiddleNameOrInitial",
"Fax",
"Phone",
"Notes",
"Tags",
"Hours of operation - Sunday",
"Hours of operation - Monday",
"Hours of operation - Tuesday",
"Hours of operation - Wednesday",
"Hours of operation - Thursday",
"Hours of operation - Friday",
"Hours of operation - Saturday",
"LastModifiedDate"
]
}
},
"LocationInventory": {
"format": "Legacy",
"resource": "LocationInventory",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ProductCode",
"LocationCode"
],
"optional": [
"ParentProductCode",
"StockOnHand",
"StockUpdateOption",
"StockOnBackOrder",
"StockAvailable"
]
}
},
"Images": {
"format": "Legacy",
"resource": "Images",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"ImageUrl"
],
"optional": [
"Name",
"Id",
"Tags"
]
}
},
"LocationGroup": {
"format": "Legacy",
"resource": "LocationGroup",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"LocationGroupCode",
"Name",
"LocationCodes",
"SiteIds"
],
"optional": [
"LastModifiedDate"
]
}
},
"LocationGroupConfiguration": {
"format": "Legacy",
"resource": "LocationGroupConfiguration",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"LocationGroupCode",
"SiteId",
"CustomerFailedToPickupAfterAction",
"CustomerFailedToPickupDeadline",
"SendCustomerPickupReminder",
"DefaultCarrier",
"PrintReturnLabel",
"DefaultPrinterType"
],
"optional": [
"LastModifiedDate"
]
}
},
"LocationGroupBoxTypeConfig": {
"format": "Legacy",
"resource": "LocationGroupBoxTypeConfig",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"LocationGroupCode",
"SiteId",
"Name",
"Height",
"Length",
"Width"
],
"optional": []
}
},
"LocationGroupCarrierConfig": {
"format": "Legacy",
"resource": "LocationGroupCarrierConfig",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"LocationGroupCode",
"SiteId",
"CarrierType",
"IsEnabled",
"EnableSmartPost",
"Express1DayDefault",
"Express2DayDefault",
"Express3DayDefault",
"ReturnLabelShippingMethod",
"ShippingMethods",
"StandardDefault"
],
"optional": []
}
},
"Pricelists": {
"format": "Legacy",
"resource": "Pricelists",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"PriceListName",
"PriceListCode",
"Enabled",
"ValidForAllSites",
"ValidSites"
],
"optional": [
"ParentPriceListCode",
"Description",
"FilteredInStorefront",
"IndexedSites",
"DefaultForSites",
"MappedCustomerSegments",
"Resolvable",
"ResolutionRank",
"CreatedBy"
]
}
},
"PricelistEntries": {
"format": "Legacy",
"resource": "PricelistEntries",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"PriceListCode",
"ProductCode",
"CurrencyCode",
"StartDate",
"IsVariation"
],
"optional": [
"ProductName",
"OptionSummary",
"EndDate",
"PriceListEntryMode",
"MsrpMode",
"Msrp",
"CostMode",
"Cost",
"MapMode",
"Map",
"MapStartDate",
"MapEndDate",
"DiscountsRestricted",
"DiscountsRestrictedMode",
"DiscountsRestrictedStartDate",
"DiscountsRestrictedEndDate",
"CreatedBy",
"PriceListEntryTypeCode"
]
}
},
"PricelistEntryPrices": {
"format": "Legacy",
"resource": "PricelistEntryPrices",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"PriceListCode",
"ProductCode",
"CurrencyCode",
"StartDate",
"MinimumQuantity"
],
"optional": [
"ListPriceMode",
"SalePriceMode",
"ListPrice",
"SalePrice"
]
}
},
"PricelistEntryExtras": {
"format": "Legacy",
"resource": "PricelistEntryExtras",
"deleteOmitted": false,
"configuration": {},
"fields": {
"required": [
"MasterCatalogName",
"PriceListCode",
"ProductCode",
"CurrencyCode",
"StartDate",
"AttributeFQN",
"Value",
"Price"
],
"optional": [
"DisplayValue",
"AttributeCode"
]
}
}
}