createSku

post

/ccadmin/v1/skus

Create Sku. Create a SKU for product based on the input request parameters. The request contains dynamic properties associated with product type. **Requires the x-ccasset-language header so translated content can be set for a specific language.**

Request

Supported Media Types
Header Parameters
Body ()
Root Schema : createSku_request
Type: object
Show Source
Example:
{
    "productFamily":null,
    "color":"Brown",
    "nonreturnable":false,
    "displayName":"SKU One",
    "listPrices":{
        "defaultPriceGroup":"20"
    },
    "salePrices":{
        "defaultPriceGroup":"10"
    },
    "configurationMetadata":[
    ],
    "productLine":null,
    "listVolumePrices":{
        "UsDollar":{
            "bulkPrice":{
                "numLevels":3,
                "levels":[
                    {
                        "price":19,
                        "levelMinimum":1,
                        "levelMaximum":5
                    },
                    {
                        "price":12.35,
                        "levelMinimum":21,
                        "levelMaximum":30
                    },
                    {
                        "price":10.25,
                        "levelMinimum":31
                    }
                ]
            }
        }
    },
    "model":null,
    "id":"sku1",
    "discountable":true,
    "barcode":null,
    "saleVolumePrices":{
        "UsDollar":{
            "bulkPrice":{
                "numLevels":3,
                "levels":[
                    {
                        "price":19,
                        "levelMinimum":1,
                        "levelMaximum":5
                    },
                    {
                        "price":12.35,
                        "levelMinimum":21,
                        "levelMaximum":30
                    },
                    {
                        "price":10.25,
                        "levelMinimum":31
                    }
                ]
            }
        }
    },
    "salePriceEndDate":"2018-03-11T18:30:00.000Z",
    "salePriceStartDate":"2017-11-11T18:30:00.000Z",
    "quantity":15,
    "productId":"xsku100234",
    "unitOfMeasure":null,
    "salePrice":"10",
    "active":true,
    "soldAsPackage":false,
    "size":"Small",
    "configurable":"false",
    "listPrice":"20"
}
Nested Schema : configurationMetadata
Type: array
Array of configuration attributes associated with the SKU.
Show Source
Nested Schema : images
Type: array
Array of images to be associated to the SKU.
Show Source
Nested Schema : listVolumePrices
Type: object
Object with price group IDs as keys and List prices as volumes.
Show Source
Nested Schema : saleVolumePrices
Type: object
Object with price group IDs as keys and Sale Prices as values.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : metadata
Type: object
Seo meta info.
Show Source
Nested Schema : PriceGroupID1
Type: object
List price of the product in price group 1
Show Source
Nested Schema : PriceGroupID2
Type: object
List price of the product in price group 2
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : PriceGroupID1
Type: object
Sale price of the product in price group 1
Show Source
Nested Schema : PriceGroupID2
Type: object
Sale price of the product in price group 2
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createSku_response
Type: object
Show Source
Nested Schema : configurationMetadata
Type: array
Array of configuration attributes associated with the SKU.
Show Source
Nested Schema : fullImageURLs
Type: array
Full Image URLs of SKU.
Show Source
Nested Schema : images
Type: array
Array of images for the SKU.
Show Source
Nested Schema : largeImageURLs
Type: array
Large Image URLs of SKU.
Show Source
Nested Schema : listVolumePrice
Type: object
List volume price of the SKU.
Show Source
Nested Schema : listVolumePrices
Type: object
Object with price group IDs as keys and list prices as values.
Show Source
Nested Schema : mediumImageURLs
Type: array
Medium Image URLs SKU.
Show Source
Nested Schema : saleVolumePrice
Type: object
Sale volume price of the SKU.
Show Source
Nested Schema : saleVolumePrices
Type: object
Object with price group IDs as keys and sale prices as values.
Show Source
Nested Schema : smallImageURLs
Type: array
Small Image URLs of SKU.
Show Source
Nested Schema : sourceImageURLs
Type: array
Source Image URLs of SKU.
Show Source
Nested Schema : thumbImageURLs
Type: array
Thumb Image URLs of SKU.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : metadata
Type: object
Seo meta info.
Show Source
Nested Schema : tags
Type: array
Tags for the image.
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : PriceGroupID1
Type: object
List price of the SKU in price group 1
Show Source
Nested Schema : PriceGroupID2
Type: object
List price of the SKU in price group 2
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : PriceGroupID1
Type: object
Sale price of the Sku in price group 1
Show Source
Nested Schema : PriceGroupID2
Type: object
Sale price of the SKU in price group 2
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "productFamily":null,
    "dynamicPropertyMapLong":{
        "sku-MensApparel_color":2
    },
    "primaryThumbImageURL":null,
    "bundleLinks":[
    ],
    "largeImage":null,
    "smallImage":null,
    "color":"Blue",
    "listVolumePrice":null,
    "nonreturnable":false,
    "displayName":"Sku One",
    "salePrices":{
        "defaultPriceGroup":null
    },
    "primaryFullImageURL":null,
    "listPrices":{
        "defaultPriceGroup":null
    },
    "configurationMetadata":[
        {
            "name":"bundleSelected",
            "repositoryId":"cmi10001",
            "value":"Better Double"
        }
    ],
    "productListingSku":null,
    "largeImageURLs":[
    ],
    "productLine":null,
    "listVolumePrices":{
        "defaultPriceGroup":null
    },
    "primaryLargeImageURL":null,
    "smallImageURLs":[
    ],
    "derivedSalePriceFrom":"UsDollar",
    "model":null,
    "thumbnailImage":null,
    "discountable":true,
    "barcode":null,
    "saleVolumePrices":{
        "defaultPriceGroup":null
    },
    "salePriceEndDate":null,
    "saleVolumePrice":null,
    "salePriceStartDate":null,
    "images":[
    ],
    "quantity":null,
    "unitOfMeasure":null,
    "salePrice":null,
    "primaryMediumImageURL":null,
    "fullImageURLs":[
    ],
    "dynamicPropertyMapBigString":{
    },
    "active":true,
    "thumbImageURLs":[
    ],
    "soldAsPackage":false,
    "mediumImageURLs":[
    ],
    "repositoryId":"sku1",
    "derivedListPriceFrom":"UsDollar",
    "primarySourceImageURL":null,
    "primarySmallImageURL":null,
    "sourceImageURLs":[
    ],
    "listPrice":30,
    "configurable":false
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top