createSkus
put
/ccadmin/v1/skus
Create Skus. Create skus for product based on the input request parameters. **Requires the x-ccasset-language header so translated content can be set for a specific language.**
Request
Supported Media Types
- application/json
Header Parameters
-
X-CC-Workset: string
The ID of the workset that this change will appear in. If this header is missing, the change will be made in the default workset.
-
X-CCAsset-Language(required): string
The asset language of the request
Root Schema : createSkus_request
Type:
Show Source
object
-
includePrices:
boolean
Boolean flag to determine whether to include price maps for the skus in the response.
-
priceListGroupId:
string
Price List Group ID for listing the prices to the SKU in the response. Does not affect the price set in the input.
-
productId(required):
string
ID of the product for which the SKUs will be created.
-
variants(required):
array variants
Array of SKUs to be created. Individual SKU IDs must be specified. Variant properties must be included, as appropriate. listPrice can be included optionally.
Example:
{
"productId":"xprod12345",
"variants":[
{
"color":"red",
"id":"sku1",
"listPrice":"200"
},
{
"color":"blue",
"id":"sku2"
}
]
}
Nested Schema : variants
Type:
array
Array of SKUs to be created. Individual SKU IDs must be specified. Variant properties must be included, as appropriate. listPrice can be included optionally.
Show Source
Nested Schema : items
Type:
Show Source
object
-
configurationMetadata:
array configurationMetadata
Array of configuration attributes associated with the SKU.
-
id(required):
string
The ID for the SKU to be created. Required.
-
listPrice:
List price for the default Price List Group. Optional.
Nested Schema : configurationMetadata
Type:
array
Array of configuration attributes associated with the SKU.
Show Source
Nested Schema : items
Type:
Show Source
object
-
name:
string
The name of the configuration attribute.
-
value:
string
The value of the configuration attribute.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : createSkus_response
Type:
Show Source
object
-
items:
array items
the list of created skus
Nested Schema : items
Type:
Show Source
object
-
active:
boolean
Indicates whether SKU is active or inactive. Inactive SKUs will not appear on the storefront. This property value defaults to true.
-
barcode:
string
Barcode property of the sku
-
bundleLinks:
array bundleLinks
Array of bundle links associated with the SKU.
-
configurable:
boolean
Indicates whether the SKU is configurable or not
-
configurationMetadata:
array configurationMetadata
Array of configuration attributes associated with the SKU.
-
derivedListPriceFrom:
string
Determines from which price list group, list price is derived. It can be either current price list group or one of it's ancestors
-
derivedSalePriceFrom:
string
Determines from which price list group, sale price is derived. It can be either current price list group or one of it's ancestors
-
derivedShippingSurchargeFrom:
string
Determines from which price list group, shipping surcharge is derived. It can be either current price list group or one of it's ancestors
-
discountable:
boolean
Indicates whether the promotions should be applied to this SKU or not. If the value is true then promotion discounts can be applied to this SKU; else no promotions can be applied to this SKU. Default value is true
-
displayName:
string
Display name of the SKU.
-
fullImageURLs:
array fullImageURLs
Full Image URLs of SKU.
-
images:
array images
Array of images for the SKU.
-
largeImage:
integer
Large image of the SKU.
-
largeImageURLs:
array largeImageURLs
Large Image URLs of SKU.
-
listPrice:
number
List price of the SKU.
-
listVolumePrice:
object listVolumePrice
list volume price of the SKU
-
listVolumePrices:
object listVolumePrices
Object with price group IDs as keys and list prices as values
-
mediumImageURLs:
array mediumImageURLs
Medium Image URLs SKU.
-
model:
string
Model property of the SKU
-
nonreturnable:
boolean
Determines SKU product is returnable or not.
-
primaryFullImageURL:
string
Primary full image URL.
-
primaryLargeImageURL:
string
Primary Large Image URL of SKU.
-
primaryMediumImageURL:
string
Primary Medium Image URL ID of SKU.
-
primarySmallImageURL:
string
Primary Small Image URL of SKU.
-
primarySourceImageURL:
string
Primary Source Image URL of SKU.
-
primaryThumbImageURL:
string
Primary Source Image URL of SKU.
-
productFamily:
string
Product Family property of the SKU
-
productLine:
string
Product line property of the SKU
-
productListingSku:
boolean
This is true if this sku is the listing sku for a particular variant
-
quantity:
integer
Quantity of the SKU.
-
repositoryId:
string
Repository ID of the SKU.
-
salePrice:
string
Sale price of the SKU.
-
salePriceEndDate:
integer
Sale price end date of the SKU.
-
salePriceStartDate:
string
Sale price start date of the SKU.
-
saleVolumePrice:
object saleVolumePrice
Sale volume price of the SKU
-
saleVolumePrices:
object saleVolumePrices
Object with price group IDs as keys and sale prices as values
-
shippingSurcharge:
number
Extra handling costs while shipping the product, in the default price group.
-
shippingSurcharges:
object shippingSurcharges
Extra handling costs for shipping the product in respective price list groups
-
smallImage:
integer
Small image of the SKU.
-
smallImageURLs:
array smallImageURLs
Small Image URLs of SKU.
-
soldAsPackage:
boolean
Indicates whether the SKU as a single package otherwise consider the SKU where sub-items can be shipped/fulfilled separately.
-
sourceImageURLs:
array sourceImageURLs
Source Image URLs of SKU.
-
thumbImageURLs:
array thumbImageURLs
Thumb Image URLs of SKU.
-
thumbnailImage:
string
Thumbnail image of the SKU.
-
unitOfMeasure:
string
Unit Of Measure property of the SKU.
Nested Schema : configurationMetadata
Type:
array
Array of configuration attributes associated with the SKU.
Show Source
Nested Schema : listVolumePrice
Type:
object
list volume price of the SKU
Show Source
-
pricingScheme:
object pricingScheme
Pricing scheme can be either tieredPrice or bulkPrice
Nested Schema : listVolumePrices
Type:
object
Object with price group IDs as keys and list prices as values
Show Source
-
PriceGroupID1:
object PriceGroupID1
List price of the SKU in price group 1
-
PriceGroupID2:
object PriceGroupID2
List price of the SKU in price group 2
Nested Schema : saleVolumePrice
Type:
object
Sale volume price of the SKU
Show Source
-
pricingScheme:
object pricingScheme
Pricing scheme can be either tieredPrice or bulkPrice
Nested Schema : saleVolumePrices
Type:
object
Object with price group IDs as keys and sale prices as values
Show Source
-
PriceGroupID1:
object PriceGroupID1
Sale price of the SKU in price group 1
-
PriceGroupID2:
object PriceGroupID2
Sale price of the SKU in price group 2
Nested Schema : shippingSurcharges
Type:
object
Extra handling costs for shipping the product in respective price list groups
Show Source
-
plg1:
number
Extra handling costs for shipping the product in plg1
-
plg2:
number
Extra handling costs for shipping the product in plg2
Nested Schema : items
Type:
Show Source
object
-
item:
object item
The SKU that will be included into this bundle link
-
quantity:
integer
The quantity of the item
-
repositoryId:
string
The id of the bundle link
Nested Schema : item
Type:
object
The SKU that will be included into this bundle link
Show Source
-
displayName:
string
The name of the SKU included in the bundle link
-
repositoryId:
string
The id of the SKU included in the bundle link
Nested Schema : items
Type:
Show Source
object
-
name:
string
The name of the configuration attribute.
-
repositoryId:
string
The repository id for existing configuration metadata items.
-
value:
string
The value of the configuration attribute.
Nested Schema : items
Type:
Show Source
object
-
metadata:
object metadata
Seo meta info.
-
name:
string
Name of the image to be updated.
-
path:
string
Path of the image to be updated.
-
repositoryId:
string
Repository ID of the image.
-
tags:
array tags
Tags for the image.
-
url:
string
The complete url of the image.
Nested Schema : metadata
Type:
object
Seo meta info.
Show Source
-
altText:
string
Alt text for image.
-
titleText:
string
Title text for image.
Nested Schema : pricingScheme
Type:
object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
-
levels:
array levels
Price levels array for volume price
-
numLevels:
number
Number of levels in the volume price
Nested Schema : items
Type:
Show Source
object
-
levelMaximum:
number
minimum quantity for price level
-
levelMinimum:
number
minimum quantity for price level
-
price:
number
price value for price level
Nested Schema : PriceGroupID1
Type:
object
List price of the SKU in price group 1
Show Source
-
pricingScheme:
object pricingScheme
Pricing scheme can be either tieredPrice or bulkPrice
Nested Schema : PriceGroupID2
Type:
object
List price of the SKU in price group 2
Show Source
-
pricingScheme:
object pricingScheme
Pricing scheme can be either tieredPrice or bulkPrice
Nested Schema : pricingScheme
Type:
object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
-
levels:
array levels
Price levels array for volume price
-
numLevels:
number
Number of levels in the volume price
Nested Schema : items
Type:
Show Source
object
-
levelMaximum:
number
minimum quantity for price level
-
levelMinimum:
number
minimum quantity for price level
-
price:
number
price value for price level
Nested Schema : pricingScheme
Type:
object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
-
levels:
array levels
Price levels array for volume price
-
numLevels:
number
Number of levels in the volume price
Nested Schema : items
Type:
Show Source
object
-
levelMaximum:
number
minimum quantity for price level
-
levelMinimum:
number
minimum quantity for price level
-
price:
number
price value for price level
Nested Schema : pricingScheme
Type:
object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
-
levels:
array levels
Price levels array for volume price
-
numLevels:
number
Number of levels in the volume price
Nested Schema : items
Type:
Show Source
object
-
levelMaximum:
number
minimum quantity for price level
-
levelMinimum:
number
minimum quantity for price level
-
price:
number
price value for price level
Nested Schema : PriceGroupID1
Type:
object
Sale price of the SKU in price group 1
Show Source
-
pricingScheme:
object pricingScheme
Pricing scheme can be either tieredPrice or bulkPrice
Nested Schema : PriceGroupID2
Type:
object
Sale price of the SKU in price group 2
Show Source
-
pricingScheme:
object pricingScheme
Pricing scheme can be either tieredPrice or bulkPrice
Nested Schema : pricingScheme
Type:
object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
-
levels:
array levels
Price levels array for volume price
-
numLevels:
number
Number of levels in the volume price
Nested Schema : items
Type:
Show Source
object
-
levelMaximum:
number
minimum quantity for price level
-
levelMinimum:
number
minimum quantity for price level
-
price:
number
price value for price level
Nested Schema : pricingScheme
Type:
object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
-
levels:
array levels
Price levels array for volume price
-
numLevels:
number
Number of levels in the volume price
Nested Schema : items
Type:
Show Source
object
-
levelMaximum:
number
minimum quantity for price level
-
levelMinimum:
number
minimum quantity for price level
-
price:
number
price value for price level
Example Response (application/json)
[
{
"productFamily":null,
"dynamicPropertyMapLong":{
"sku-MensApparel_color":2
},
"primaryThumbImageURL":null,
"largeImage":null,
"smallImage":null,
"color":"red",
"nonreturnable":false,
"listPrices":{
"UsDollar":"200"
},
"salePrices":null,
"primaryFullImageURL":null,
"configurationMetadata":[
],
"productListingSku":null,
"largeImageURLs":[
],
"productLine":null,
"primaryLargeImageURL":null,
"smallImageURLs":[
],
"derivedShippingSurchargeFrom":"UsDollar",
"derivedSalePriceFrom":"UsDollar",
"shippingSurcharges":{
"defaultPriceGroup":null
},
"model":null,
"thumbnailImage":null,
"discountable":true,
"barcode":null,
"salePriceEndDate":null,
"salePriceStartDate":null,
"images":[
],
"quantity":null,
"salePrice":null,
"primaryMediumImageURL":null,
"fullImageURLs":[
],
"active":true,
"thumbImageURLs":[
],
"soldAsPackage":false,
"mediumImageURLs":[
],
"repositoryId":"sku1",
"derivedListPriceFrom":"UsDollar",
"primarySourceImageURL":null,
"shippingSurcharge":null,
"primarySmallImageURL":null,
"sourceImageURLs":[
],
"listPrice":"200",
"configurable":"false"
},
{
"productFamily":null,
"dynamicPropertyMapLong":{
"sku-MensApparel_color":3
},
"primaryThumbImageURL":null,
"largeImage":null,
"smallImage":null,
"listVolumePrice":null,
"color":"Blue",
"nonreturnable":false,
"listPrices":null,
"salePrices":null,
"primaryFullImageURL":null,
"configurationMetadata":[
],
"productListingSku":null,
"largeImageURLs":[
],
"productLine":null,
"listVolumePrices":null,
"primaryLargeImageURL":null,
"smallImageURLs":[
],
"derivedShippingSurchargeFrom":"UsDollar",
"derivedSalePriceFrom":"UsDollar",
"shippingSurcharges":{
"defaultPriceGroup":null
},
"model":null,
"thumbnailImage":null,
"discountable":true,
"saleVolumePrices":null,
"barcode":null,
"salePriceEndDate":null,
"saleVolumePrice":null,
"salePriceStartDate":null,
"images":[
],
"quantity":null,
"salePrice":null,
"primaryMediumImageURL":null,
"fullImageURLs":[
],
"active":true,
"thumbImageURLs":[
],
"soldAsPackage":false,
"mediumImageURLs":[
],
"repositoryId":"sku2",
"derivedListPriceFrom":"UsDollar",
"primarySourceImageURL":null,
"shippingSurcharge":null,
"primarySmallImageURL":null,
"sourceImageURLs":[
],
"listPrice":null,
"configurable":"false"
}
]
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code