getSku
get
/ccadmin/v1/skus/{id}
Get Sku. Gets a SKU and its properties. Optionally takes the x-ccasset-language header to get translated content in another language.
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
stringRequired:trueThe skuId.
Query Parameters
- includePrices
-
Type:
booleanBoolean flag to determine whether to include price maps for the skus in the response.- priceListGroupId
Type:stringPrice list group id for adding the prices to the SKU in the response.
Header Parameters
- X-CCAsset-Language
-
Type:
stringThe asset language of the request
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getSku_response
- items
-
Type:
objectitemssku details with pricing and variant information
Nested Schema : items
Type:
objectsku details with pricing and variant information
- configurable
-
Type:
booleanIndicates whether SKU is configurable - largeImage
-
Type:
objectlargeImagelarge image - listPrice
-
Type:
integerList price of the SKU. - parentProducts
-
Type:
objectparentProductsArray having parent products. - quantity
-
Type:
integerQuantity of the SKU. - repositoryId
-
Type:
stringRepository ID of the SKU. - salePrice
-
Type:
stringSale price of the SKU. - salePriceEndDate
-
Type:
integerSale price end date of the SKU. - salePriceStartDate
-
Type:
stringSale price start date of the SKU. - smallImage
-
Type:
objectsmallImageSmall image of Sku - thumbnailImage
-
Type:
stringThumbnail image of the SKU.
Nested Schema : largeImage
Nested Schema : parentProducts
Type:
objectArray having parent products.
- active
-
Type:
booleanFlag indicating whether a product is active - avgCustRating
-
Type:
stringAverage customer rating of the product. - childSKUs
-
Type:
objectchildSKUsArray having properties of child SKU. - description
-
Type:
stringDescription of the product. - displayName
-
Type:
stringDisplay name of the product. - fullImageURLs
-
Type:
arrayfullImageURLsFull image URLs of the product. - id
-
Type:
stringID of the product. - largeImage
-
Type:
objectlargeImageArray having repository ID and URL of the large image of SKU. - largeImageURLs
-
Type:
arraylargeImageURLsLarge image URLs of the product. - listPrice
-
Type:
numberList price of the product. - listVolumePrice
-
Type:
numberList volume price of the product. - longDescription
-
Type:
stringLong description of the product. - mediumImageURLs
-
Type:
arraymediumImageURLsMedium image URLs of the product. - orderLimit
-
Type:
stringOrder limit of the product. - primaryFullImageURL
-
Type:
stringPrimary full image URL of the product. - primaryLargeImageURL
-
Type:
stringPrimary large image URL of the product. - primarySmallImageURL
-
Type:
stringPrimary small image URL of the product. - primarySourceImageURL
-
Type:
stringPrimary source image URL of the product. - primaryThumbImageURL
-
Type:
stringPrimary thumb image URL of the product. - productImages
-
Type:
arrayproductImagesArray of product images. - productNumber
-
Type:
stringProduct number of the product. - repositoryId
-
Type:
stringRepository id of the product. - route
-
Type:
stringRoute of the product. - salePrice
-
Type:
integerSale price of the product. - saleVolumePrice
-
Type:
numberSale volume price of the product. - smallImage
-
Type:
objectsmallImageArray having repository ID and URL of small image of the SKU. - smallImageURLs
-
Type:
arraysmallImageURLsSmall image URLs of the product. - sourceImageURLs
-
Type:
arraysourceImageURLsSource image URLs of the product. - thumbImageURLs
-
Type:
arraythumbImageURLsThumb image URLs of the product.
Nested Schema : smallImage
Type:
objectSmall image of Sku
- repositoryId
-
Type:
stringrepository Id - url
-
Type:
stringURL
Nested Schema : childSKUs
Type:
objectArray having properties of child SKU.
- repositoryId
-
Type:
stringRepository ID of the SKU.
Nested Schema : fullImageURLs
Nested Schema : largeImage
Type:
objectArray having repository ID and URL of the large image of SKU.
- repositoryId
-
Type:
stringRepository ID of SKU. - url
-
Type:
stringURL of SKU.
Nested Schema : largeImageURLs
Nested Schema : mediumImageURLs
Nested Schema : smallImage
Type:
objectArray having repository ID and URL of small image of the SKU.
- repositoryId
-
Type:
stringRepository ID of SKU. - url
-
Type:
stringURL of SKU.
Nested Schema : smallImageURLs
Nested Schema : sourceImageURLs
Nested Schema : thumbImageURLs
Nested Schema : items
Type:
object- metadata
-
Type:
objectmetadataSeo meta info for product. - name
-
Type:
stringThe name of product image - path
-
Type:
stringThe path of the image - repositoryId
-
Type:
stringThe repository Id of the product image - tags
-
Type:
arraytagsThe array of product image tags - url
-
Type:
stringThe url of the product image
Nested Schema : metadata
Type:
objectSeo meta info for product.
- altText
-
Type:
stringThe alt text of the image - titleText
-
Type:
stringThe title text of the image
Example application/json
{
"productFamily":null,
"primaryThumbImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=100&width=100",
"dynamicPropertyMapLong":{
"sku-MensApparel_color":6,
"sku-MensApparel_size":0
},
"bundleLinks":[
{
"item":{
"displayName":"Blue T Shirt",
"repositoryId":"sku30001"
},
"quantity":1,
"repositoryId":"skul10001"
},
{
"item":{
"displayName":"Red T Shirt",
"repositoryId":"sku30002"
},
"quantity":1,
"repositoryId":"skul10002"
}
],
"largeImage":null,
"smallImage":null,
"listVolumePrice":null,
"color":"Gray",
"primaryFullImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg",
"listPrices":null,
"salePrices":null,
"productListingSku":true,
"largeImageURLs":[
"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=940&width=940"
],
"productLine":null,
"primaryLargeImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=940&width=940",
"listVolumePrices":null,
"smallImageURLs":[
"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300"
],
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/skus/sku30043"
}
],
"model":null,
"thumbnailImage":null,
"saleVolumePrices":null,
"barcode":null,
"salePriceEndDate":null,
"saleVolumePrice":null,
"salePriceStartDate":null,
"images":[
{
"path":"/products/ACC_TerryGloves_full.jpg",
"metadata":{
},
"name":"/products/ACC_TerryGloves_full.jpg",
"repositoryId":"m10002",
"url":"http://localhost:9080/file/products/ACC_TerryGloves_full.jpg",
"tags":[
]
}
],
"quantity":null,
"primaryMediumImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=475&width=475",
"salePrice":null,
"fullImageURLs":[
"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg"
],
"active":true,
"thumbImageURLs":[
"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=100&width=100"
],
"size":"Small",
"mediumImageURLs":[
"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=475&width=475"
],
"repositoryId":"sku30043",
"primarySourceImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300",
"sourceImageURLs":[
"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300"
],
"primarySmallImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300",
"listPrice":null,
"configurable":"false"
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAn optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{
"productFamily": null,
"primaryThumbImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=100&width=100",
"dynamicPropertyMapLong": {
"sku-MensApparel_color": 6,
"sku-MensApparel_size": 0
},
"bundleLinks": [
{
"item": {
"displayName": "Blue T Shirt",
"repositoryId": "sku30001"
},
"quantity": 1,
"repositoryId": "skul10001"
},
{
"item": {
"displayName": "Red T Shirt",
"repositoryId": "sku30002"
},
"quantity": 1,
"repositoryId": "skul10002"
}
],
"largeImage": null,
"smallImage": null,
"listVolumePrice": null,
"color": "Gray",
"primaryFullImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg",
"listPrices": null,
"salePrices": null,
"productListingSku": true,
"largeImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=940&width=940"],
"productLine": null,
"primaryLargeImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=940&width=940",
"listVolumePrices": null,
"smallImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300"],
"links": [{
"rel": "self",
"href": "http://localhost:9080/ccadminui/v1/skus/sku30043"
}],
"model": null,
"thumbnailImage": null,
"saleVolumePrices": null,
"barcode": null,
"salePriceEndDate": null,
"saleVolumePrice": null,
"salePriceStartDate": null,
"images": [{
"path": "/products/ACC_TerryGloves_full.jpg",
"metadata": {},
"name": "/products/ACC_TerryGloves_full.jpg",
"repositoryId": "m10002",
"url": "http://localhost:9080/file/products/ACC_TerryGloves_full.jpg",
"tags": []
}],
"quantity": null,
"primaryMediumImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=475&width=475",
"salePrice": null,
"fullImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg"],
"active": true,
"thumbImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=100&width=100"],
"size": "Small",
"mediumImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=475&width=475"],
"repositoryId": "sku30043",
"primarySourceImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300",
"sourceImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300"],
"primarySmallImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/ACC_TerryGloves_full.jpg&height=300&width=300",
"listPrice": null,
"configurable": "false"
}