Create Catalog Items
1 min
POST
https://api.upstartcommerce.com/v1/catalog/import
Header Parameters
- x-upstart-tenantstringrequiredDescription
- x-upstart-sitestringDescription
Body Parameters
- bodyCreateCatalogItem[]required
- activationDatestring<date-time>Formatdate-time
- brandNamestring
- deactivationDatestring<date-time>Formatdate-time
- dynamicPropertiesobject
- hiddenbooleanDefaultfalse
- idCatalogItemId
- ignoreInventorybooleanDefaultfalse
- manufacturerNamestring
- mediamap<string, MediaValue>
- namestringrequired
- offeredStandardWarrantyGeneralTermsAndConditions
- DrupalTermsAndConditionsUpdate
- resourceDrupalResourcerequired
- NidDrupalResource
- nIdinteger<int64>requiredFormatint64
- ResolvedDrupalResource
- nIdinteger<int64>requiredFormatint64
- idstringrequired
- versioninteger<int32>requiredFormatint32
- urlstringrequired
- resolvedAtstring<date-time>requiredFormatdate-time
- typestringDefaultDrupalTermsAndConditions
- CloudinaryAssetUpdate
- contentTypestringExampleDescription
- vendorstringExampleDescription
- urlstringDescription
- namestringExampleDescription
- idstringExampleDescription
- typestringrequiredDefaultCloudinaryAsset
- offeredWarrantyIdCatalogItemId
- offeredProtectionPlanTypeOfferedProtectionPlanType
- DmOfferedProtectionPlanType
- typestring<DenverMattress>requiredAllowedDenverMattress
- StandardOfferedProtectionPlanType
- typestring<Standard>requiredAllowedStandard
- idstringrequired
- serviceQualificationServiceQualificationDescription
- eligibleProductIdsCatalogItemId[]Description
- eligibleShippingMethodIdsShippingMethodId[]Description
- productItemsCreateSkuItem[]
- CreateProductItem
- typestringrequired
- skuIdSkuItemId
- namestring
- brandNamestring
- manufacturerNamestring
- mediamap<string, MediaValue>
- tagsstring[]
- dynamicPropertiesobject
- shippingMethodIdsShippingMethodId[]
- ignoreInventoryboolean
- dimensionsDimensionsDescription
- widthnumber<double>requiredExampleFormatdouble
- lengthnumber<double>requiredExampleFormatdouble
- heightnumber<double>requiredExampleFormatdouble
- unitstring<cm | m | in | mm>requiredAllowedcmminmm
- weightWeightDescription
- valuenumber<double>requiredFormatdoubleMinimum0
- unitstring<g | kg | lb>requiredDescriptionAllowedgkglb
- numPiecesinteger<int32>Formatint32Minimum (exclusive)0
- shippingPackagesShippingPackage[]
- dimensionsDimensionsrequiredDescription
- widthnumber<double>requiredExampleFormatdouble
- lengthnumber<double>requiredExampleFormatdouble
- heightnumber<double>requiredExampleFormatdouble
- unitstring<cm | m | in | mm>requiredAllowedcmminmm
- weightWeightrequiredDescription
- valuenumber<double>requiredFormatdoubleMinimum0
- unitstring<g | kg | lb>requiredDescriptionAllowedgkglb
- purchasablebooleanrequired
- disabledbooleanDefaultfalse
- upcstring
- feeMultiplierinteger<int32>Formatint32
- skuDimensionsDimensionsInfo[]Description
- namestringrequired
- descriptionstring
- widthnumber<double>requiredExampleFormatdouble
- lengthnumber<double>requiredExampleFormatdouble
- heightnumber<double>requiredExampleFormatdouble
- unitstring<cm | m | in | mm>requiredAllowedcmminmm
- pimVariantIdstringDefaultN/A
- CreateProtectionPlanItem
- typestringrequired
- skuIdstring
- namestringrequired
- descriptionstringrequired
- termsAndConditionsTermsAndConditionsUpdaterequired
- UrlTermsAndConditionsUpdate
- urlstringrequired
- DrupalTermsAndConditionsUpdate
- Max depth limit reached
- CloudinaryAssetUpdate
- Max depth limit reached
- dynamicPropertiesobject
- purchasablebooleanrequired
- disabledbooleanrequired
- pimVariantIdstringDefaultN/A
- CreateServiceItem
- typestringrequired
- skuIdstring
- namestringrequired
- descriptionstringrequired
- termsAndConditionsGeneralTermsAndConditions
- DrupalTermsAndConditionsUpdate
- Max depth limit reached
- CloudinaryAssetUpdate
- Max depth limit reached
- dynamicPropertiesobject
- purchasablebooleanrequired
- disabledbooleanrequired
- CreateWarrantyItem
- typestringrequired
- descriptionstringrequired
- disabledboolean
- namestringrequired
- purchasablebooleanrequired
- skuIdstring
- termsAndConditionsTermsAndConditionsUpdaterequired
- UrlTermsAndConditionsUpdate
- Max depth limit reached
- DrupalTermsAndConditionsUpdate
- Max depth limit reached
- CloudinaryAssetUpdate
- Max depth limit reached
- dynamicPropertiesobject
- pimVariantIdstringDefaultN/A
- relatedIdsCatalogItemId[]
- seoSeo
- pageTitlestring
- descriptionstring
- metaKeywordsstring[]
- shippingMethodIdsShippingMethodId[]required
- siteIdsSiteId[]required
- tagsstring[]
- taxCodestring
- typeIdCatalogItemTypeIdrequiredExampleDescription
- excludesClearanceItemsboolean
Responses
201
- CatalogItemSummary[]
- idCatalogItemIdrequired
- activationDatestring<date-time>Formatdate-time
- archivedbooleanDefaultfalse
- avgRatingnumber<double>Formatdouble
- avgGroupRatingnumber<double>Formatdouble
- excludesClearanceItemsboolean
- brandNamestring
- deactivationDatestring<date-time>Formatdate-time
- dynamicPropertiesobjectrequired
- hiddenbooleanrequiredDefaultfalse
- ignoreInventorybooleanrequiredDefaultfalse
- liveDatestring<date-time>Formatdate-time
- manufacturerNamestring
- mediamap<string, MediaValue>
- modifiedDatestring<date-time>Formatdate-time
- namestringrequired
- numReviewsinteger<int32>Formatint32
- numGroupReviewsinteger<int32>Formatint32
- offeredStandardWarrantyGeneralTermsAndConditions
- DrupalTermsAndConditionsUpdate
- resourceDrupalResourcerequired
- NidDrupalResource
- nIdinteger<int64>requiredFormatint64
- ResolvedDrupalResource
- nIdinteger<int64>requiredFormatint64
- idstringrequired
- versioninteger<int32>requiredFormatint32
- urlstringrequired
- resolvedAtstring<date-time>requiredFormatdate-time
- typestringDefaultDrupalTermsAndConditions
- CloudinaryAssetUpdate
- contentTypestringExampleDescription
- vendorstringExampleDescription
- urlstringDescription
- namestringExampleDescription
- idstringExampleDescription
- typestringrequiredDefaultCloudinaryAsset
- offeredWarrantyIdCatalogItemId
- offeredProtectionPlanTypeOfferedProtectionPlanType
- DmOfferedProtectionPlanType
- typestring<DenverMattress>requiredAllowedDenverMattress
- StandardOfferedProtectionPlanType
- typestring<Standard>requiredAllowedStandard
- idstringrequired
- productItemsSkuItemSummary[]required
- ProductItemSummary
- brandNamestring
- dimensionsDimensionsDescription
- widthnumber<double>requiredExampleFormatdouble
- lengthnumber<double>requiredExampleFormatdouble
- heightnumber<double>requiredExampleFormatdouble
- unitstring<cm | m | in | mm>requiredAllowedcmminmm
- disabledbooleanDefaultfalse
- dynamicPropertiesobject
- ignoreInventoryboolean
- manufactureNamestring
- mediamap<string, MediaValue>
- namestringDescription
- numPiecesinteger<int32>Formatint32Minimum (exclusive)0
- pricingPricing
- currencystringrequiredExamplePattern^[A-Z]{3}$
- pricenumberrequired
- purchasablebooleanrequiredDefaulttrue
- shippingMethodIdsShippingMethodId[]
- shippingPackagesShippingPackage[]required
- dimensionsDimensionsrequiredDescription
- widthnumber<double>requiredExampleFormatdouble
- lengthnumber<double>requiredExampleFormatdouble
- heightnumber<double>requiredExampleFormatdouble
- unitstring<cm | m | in | mm>requiredAllowedcmminmm
- weightWeightrequiredDescription
- valuenumber<double>requiredFormatdoubleMinimum0
- unitstring<g | kg | lb>requiredDescriptionAllowedgkglb
- skuIdSkuItemIdrequired
- tagsstring[]
- weightWeightDescription
- valuenumber<double>requiredFormatdoubleMinimum0
- unitstring<g | kg | lb>requiredDescriptionAllowedgkglb
- upcstring
- feeMultiplierinteger<int32>Formatint32
- skuDimensionsDimensionsInfo[]Description
- namestringrequired
- descriptionstring
- widthnumber<double>requiredExampleFormatdouble
- lengthnumber<double>requiredExampleFormatdouble
- heightnumber<double>requiredExampleFormatdouble
- unitstring<cm | m | in | mm>requiredAllowedcmminmm
- ProtectionPlanItemSummary
- descriptionstringrequired
- disabledbooleanrequired
- namestringrequired
- purchasablebooleanrequired
- skuIdstringrequired
- dynamicPropertiesobject
- pricingPricing
- currencystringrequiredExamplePattern^[A-Z]{3}$
- pricenumberrequired
- typestring<bundle | product | protectionPlan | service | warranty | fee>requiredDefaultprotectionPlanAllowedbundleproductprotectionPlanservicewarrantyfee
- termsAndConditionsTermsAndConditionsrequired
- UrlTermsAndConditions
- urlstringrequired
- versioninteger<int32>ExampleFormatint32
- validSincestring<date-time>Formatdate-time
- typestringrequiredDefaultUrlTermsAndConditions
- DrupalTermsAndConditions
- Max depth limit reached
- CloudinaryAssetUpdate
- Max depth limit reached
- ServiceItemSummary
- descriptionstringrequired
- disabledbooleanDefaultfalse
- dynamicPropertiesobject
- namestringrequired
- pricingPricing
- currencystringrequiredExamplePattern^[A-Z]{3}$
- pricenumberrequired
- purchasablebooleanrequiredDefaulttrue
- skuIdSkuItemIdrequired
- termsAndConditionsGeneralTermsAndConditions
- DrupalTermsAndConditionsUpdate
- Max depth limit reached
- CloudinaryAssetUpdate
- Max depth limit reached
- typestring<product | protectionPlan | service | warranty>requiredDefaultserviceAllowedproductprotectionPlanservicewarranty
- WarrantyItemSummary
- descriptionstringrequired
- disabledbooleanrequired
- namestringrequired
- purchasablebooleanrequired
- skuIdstringrequired
- termsAndConditionsTermsAndConditionsrequired
- UrlTermsAndConditions
- Max depth limit reached
- DrupalTermsAndConditions
- Max depth limit reached
- CloudinaryAssetUpdate
- Max depth limit reached
- dynamicPropertiesobject
- pricingPricing
- Max depth limit reached
- typestring<bundle | product | protectionPlan | service | warranty | fee>requiredDefaultwarrantyAllowedbundleproductprotectionPlanservicewarrantyfee
- productPopularitynumber<double>Formatdouble
- productPopularityBySitemap<string, number>Description
- relatedIdsCatalogItemId[]required
- seoSeo
- pageTitlestring
- descriptionstring
- metaKeywordsstring[]
- serviceQualificationServiceQualificationDescription
- eligibleProductIdsCatalogItemId[]Description
- eligibleShippingMethodIdsShippingMethodId[]Description
- shippingMethodIdsShippingMethodId[]required
- siteIdsSiteId[]required
- subVersioninteger<int32>Default0Formatint32
- tagsstring[]
- taxCodestring
- typestring<product | protectionPlan | service | warranty>requiredAllowedproductprotectionPlanservicewarranty
- typeIdCatalogItemTypeIdrequiredExampleDescription
- typeNamestringrequired
- versioninteger<int32>requiredDefault0Formatint32
- productLineIdsstring[]
- collectionIdsstring[]
400
- ValidationErrorResponse
- namestringrequired
- codestringrequired
- detailstring
401
- ErrorResponse
- namestringrequired
- codestringrequired
- detailstringrequired
- reasonstring
curl
curl --request POST \
--url https://api.upstartcommerce.com/v1/catalog/import \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-upstart-tenant: string' \
--data '[
{
"name": "",
"offeredStandardWarranty": {
"resource": {
"nId": ""
},
"type": "DrupalTermsAndConditions"
},
"offeredProtectionPlanType": {
"type": ""
},
"productItems": {
"type": "",
"dimensions": {
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
},
"weight": {
"value": "",
"unit": ""
},
"shippingPackages": [
{
"dimensions": {
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
},
"weight": {
"value": "",
"unit": ""
}
}
],
"purchasable": "",
"skuDimensions": [
{
"name": "",
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
}
],
"pimVariantId": "N/A"
},
"shippingMethodIds": [],
"siteIds": [],
"typeId": "FA1F5DC8-E4FB-415F-BDD8-8E6F0AD43318"
}
]'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-upstart-tenant", "string");
var raw = JSON.stringify([
{
"name": "",
"offeredStandardWarranty": {
"resource": {
"nId": ""
},
"type": "DrupalTermsAndConditions"
},
"offeredProtectionPlanType": {
"type": ""
},
"productItems": {
"type": "",
"dimensions": {
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
},
"weight": {
"value": "",
"unit": ""
},
"shippingPackages": [
{
"dimensions": {
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
},
"weight": {
"value": "",
"unit": ""
}
}
],
"purchasable": "",
"skuDimensions": [
{
"name": "",
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
}
],
"pimVariantId": "N/A"
},
"shippingMethodIds": [],
"siteIds": [],
"typeId": "FA1F5DC8-E4FB-415F-BDD8-8E6F0AD43318"
}
]);
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.upstartcommerce.com/v1/catalog/import", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.upstartcommerce.com/v1/catalog/import")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["x-upstart-tenant"] = "string"
request.body = JSON.dump([
{
"name": "",
"offeredStandardWarranty": {
"resource": {
"nId": ""
},
"type": "DrupalTermsAndConditions"
},
"offeredProtectionPlanType": {
"type": ""
},
"productItems": {
"type": "",
"dimensions": {
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
},
"weight": {
"value": "",
"unit": ""
},
"shippingPackages": [
{
"dimensions": {
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
},
"weight": {
"value": "",
"unit": ""
}
}
],
"purchasable": "",
"skuDimensions": [
{
"name": "",
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
}
],
"pimVariantId": "N/A"
},
"shippingMethodIds": [],
"siteIds": [],
"typeId": "FA1F5DC8-E4FB-415F-BDD8-8E6F0AD43318"
}
])
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.upstartcommerce.com/v1/catalog/import"
payload = json.dumps([
{
"name": "",
"offeredStandardWarranty": {
"resource": {
"nId": ""
},
"type": "DrupalTermsAndConditions"
},
"offeredProtectionPlanType": {
"type": ""
},
"productItems": {
"type": "",
"dimensions": {
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
},
"weight": {
"value": "",
"unit": ""
},
"shippingPackages": [
{
"dimensions": {
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
},
"weight": {
"value": "",
"unit": ""
}
}
],
"purchasable": "",
"skuDimensions": [
{
"name": "",
"width": 18.5,
"length": 18.5,
"height": 18.5,
"unit": ""
}
],
"pimVariantId": "N/A"
},
"shippingMethodIds": [],
"siteIds": [],
"typeId": "FA1F5DC8-E4FB-415F-BDD8-8E6F0AD43318"
}
])
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-upstart-tenant': 'string'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
201
// Success-resources created.
[
{
"id": "",
"activationDate": "",
"archived": false,
"avgRating": "",
"avgGroupRating": "",
"excludesClearanceItems": false,
"brandName": "",
"deactivationDate": "",
"dynamicProperties": {},
"hidden": false,
"ignoreInventory": false,
"liveDate": "",
"manufacturerName": "",
"media": "",
"modifiedDate": "",
"name": "",
"numReviews": "",
"numGroupReviews": "",
"offeredStandardWarranty": {},
"offeredWarrantyId": "",
"offeredProtectionPlanType": {},
"productItems": {},
"productPopularity": "",
"productPopularityBySite": "",
"relatedIds": [
""
],
"seo": {
"pageTitle": "",
"description": "",
"metaKeywords": [
""
]
},
"serviceQualification": {
"eligibleProductIds": [
""
],
"eligibleShippingMethodIds": [
""
]
},
"shippingMethodIds": [
""
],
"siteIds": [
""
],
"subVersion": "",
"tags": [
""
],
"taxCode": "",
"type": "",
"typeId": "FA1F5DC8-E4FB-415F-BDD8-8E6F0AD43318",
"typeName": "",
"version": "",
"productLineIds": [
""
],
"collectionIds": [
""
]
}
]400
// The request contained information that the server was unable to process. Appropriate errors are provided in the response body.
{
"name": "",
"code": "",
"detail": ""
}401
// The provided credentials were not valid for this endpoint. It may be that they are expired or that the user's roles are insufficient.
{
"name": "",
"code": "",
"detail": "",
"reason": ""
}