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:
string
Required:true
The skuId.
Query Parameters
- includePrices
-
Type:
boolean
Boolean flag to determine whether to include price maps for the skus in the response.- priceListGroupId
Type:string
Price list group id for adding the prices to the SKU in the response.
Header Parameters
- X-CCAsset-Language
-
Type:
string
The 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:
object
itemssku details with pricing and variant information
Nested Schema : items
Type:
object
sku details with pricing and variant information
- configurable
-
Type:
boolean
Indicates whether SKU is configurable - largeImage
-
Type:
object
largeImagelarge image - listPrice
-
Type:
integer
List price of the SKU. - parentProducts
-
Type:
object
parentProductsArray having parent products. - quantity
-
Type:
integer
Quantity of the SKU. - repositoryId
-
Type:
string
Repository ID of the SKU. - salePrice
-
Type:
string
Sale price of the SKU. - salePriceEndDate
-
Type:
integer
Sale price end date of the SKU. - salePriceStartDate
-
Type:
string
Sale price start date of the SKU. - smallImage
-
Type:
object
smallImageSmall image of Sku - thumbnailImage
-
Type:
string
Thumbnail image of the SKU.
Nested Schema : largeImage
Nested Schema : parentProducts
Type:
object
Array having parent products.
- active
-
Type:
boolean
Flag indicating whether a product is active - avgCustRating
-
Type:
string
Average customer rating of the product. - childSKUs
-
Type:
object
childSKUsArray having properties of child SKU. - description
-
Type:
string
Description of the product. - displayName
-
Type:
string
Display name of the product. - fullImageURLs
-
Type:
array
fullImageURLsFull image URLs of the product. - id
-
Type:
string
ID of the product. - largeImage
-
Type:
object
largeImageArray having repository ID and URL of the large image of SKU. - largeImageURLs
-
Type:
array
largeImageURLsLarge image URLs of the product. - listPrice
-
Type:
number
List price of the product. - listVolumePrice
-
Type:
number
List volume price of the product. - longDescription
-
Type:
string
Long description of the product. - mediumImageURLs
-
Type:
array
mediumImageURLsMedium image URLs of the product. - orderLimit
-
Type:
string
Order limit of the product. - primaryFullImageURL
-
Type:
string
Primary full image URL of the product. - primaryLargeImageURL
-
Type:
string
Primary large image URL of the product. - primarySmallImageURL
-
Type:
string
Primary small image URL of the product. - primarySourceImageURL
-
Type:
string
Primary source image URL of the product. - primaryThumbImageURL
-
Type:
string
Primary thumb image URL of the product. - productImages
-
Type:
array
productImagesArray of product images. - productNumber
-
Type:
string
Product number of the product. - repositoryId
-
Type:
string
Repository id of the product. - route
-
Type:
string
Route of the product. - salePrice
-
Type:
integer
Sale price of the product. - saleVolumePrice
-
Type:
number
Sale volume price of the product. - smallImage
-
Type:
object
smallImageArray having repository ID and URL of small image of the SKU. - smallImageURLs
-
Type:
array
smallImageURLsSmall image URLs of the product. - sourceImageURLs
-
Type:
array
sourceImageURLsSource image URLs of the product. - thumbImageURLs
-
Type:
array
thumbImageURLsThumb image URLs of the product.
Nested Schema : smallImage
Type:
object
Small image of Sku
- repositoryId
-
Type:
string
repository Id - url
-
Type:
string
URL
Nested Schema : childSKUs
Type:
object
Array having properties of child SKU.
- repositoryId
-
Type:
string
Repository ID of the SKU.
Nested Schema : fullImageURLs
Nested Schema : largeImage
Type:
object
Array having repository ID and URL of the large image of SKU.
- repositoryId
-
Type:
string
Repository ID of SKU. - url
-
Type:
string
URL of SKU.
Nested Schema : largeImageURLs
Nested Schema : mediumImageURLs
Nested Schema : smallImage
Type:
object
Array having repository ID and URL of small image of the SKU.
- repositoryId
-
Type:
string
Repository ID of SKU. - url
-
Type:
string
URL of SKU.
Nested Schema : smallImageURLs
Nested Schema : sourceImageURLs
Nested Schema : thumbImageURLs
Nested Schema : items
Type:
object
- metadata
-
Type:
object
metadataSeo meta info for product. - name
-
Type:
string
The name of product image - path
-
Type:
string
The path of the image - repositoryId
-
Type:
string
The repository Id of the product image - tags
-
Type:
array
tagsThe array of product image tags - url
-
Type:
string
The url of the product image
Nested Schema : metadata
Type:
object
Seo meta info for product.
- altText
-
Type:
string
The alt text of the image - titleText
-
Type:
string
The 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:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAn optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The 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" }