getSku
get
/ccagent/v1/skus/{id}
Get Sku. Returns sku details with pricing and variant information. Unlike the getSku endpoint of Admin, this endpoint returns pricing and variants details of Sku. Takes X-CCAgentContext header which is a JSON object with 'shopperProfileId' as a property. If 'shopperProfileId' is not provided, it is considered as an anonymous profile.Additonally takes x-ccsite header to return the sku's of that site'
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
stringRequired:trueSku Id.
Query Parameters
- catalogId
-
Type:
stringID of catalog. If a catalogId is not passed, the catalog associated with the shopperProfileId passed in the X-CCAgentContext header is used. If no shopperProfileId is passed in the header, default catalog associated with the site is used.- showNotForIndividualSale
Type:booleanRequired:trueTo retrieve not for indivisal Sale items. If showNotForIndividualSale is not passed the sku will return if it exists- skuId
Type:stringRequired:trueSku Id.Header Parameters- x-ccsite
-
Type:
stringthe site id on which the orders is laced
Response
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : getSku_response- items
-
Type:
objectitemssku details with pricing and variant information
Nested Schema : itemsType: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 : largeImageNested Schema : parentProductsType: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 : smallImageType:objectSmall image of Sku- repositoryId
-
Type:
stringrepository Id - url
-
Type:
stringURL
Nested Schema : childSKUsType:objectArray having properties of child SKU.- repositoryId
-
Type:
stringRepository ID of the SKU.
Nested Schema : fullImageURLsNested Schema : largeImageType: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 : largeImageURLsNested Schema : mediumImageURLsNested Schema : smallImageType: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 : smallImageURLsNested Schema : sourceImageURLsNested Schema : thumbImageURLsNested Schema : itemsType: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 : metadataType:objectSeo meta info for product.- altText
-
Type:
stringThe alt text of the image - titleText
-
Type:
stringThe title text of the image
Example application/json
{ "links":[ { "rel":"self", "href":"http://localhost:9080/ccagent/v1/variants/camcordersku_1_3" } ], "autoWrap":true, "items":[ { "template":null, "dynamicPropertyMapLong":{ "sku-camcorder_zoom":0, "sku-camcorder_color":2 }, "replacementProducts":null, "bundleLinks":[ ], "largeImage":null, "dynamicAttributes":{ }, "smallImage":null, "fixedReplacementProducts":[ ], "color":"Neon", "endDate":null, "derivedCatalogs":[ ], "nonreturnable":false, "displayName":null, "onlineOnly":false, "description":null, "type":"sku-camcorder", "itemAcl":null, "translations":{ }, "unit_of_measure":null, "onSale":false, "dynamicPropertyMapString":{ }, "siteIds":[ ], "id":"camcordersku_1_3", "thumbnailImage":null, "computedCatalogs":[ ], "discountable":true, "wholesalePrice":null, "salePriceEndDate":null, "catalogsReplacementProducts":[ ], "salePriceStartDate":null, "quantity":null, "salePrice":597, "skuInfos":{ }, "zoom":"2x optical/130x digital", "creationDate":"2015-03-30T06:53:04.000Z", "version":1, "parentProducts":[ { "longDescription":"Record footage in 720p resolution with this Samsung F980BN\n HMX-F90BN/XAA flash memory camcorder, which features a CMOS sensor to help you capture high-definition\n videos. The 2. LCD display provides a clear view for shooting or reviewing images.\n ", "primaryThumbImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=100&width=100", "largeImage":null, "smallImage":null, "listVolumePrice":{ "bulkPrice":{ "numLevels":2, "levels":[ { "price":21, "levelMinimum":1, "levelMaximum":10 }, { "price":10, "levelMinimum":11 } ] } }, "displayName":"Samsung - F90BN HD Flash Memory Camcorder", "orderLimit":null, "description":null, "primaryFullImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg", "largeImageURLs":[ "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=940&width=940" ], "primaryLargeImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=940&width=940", "smallImageURLs":[ "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=300&width=300" ], "id":"camcorder_1", "childSKUs":[ { "repositoryId":"camcordersku_1_1" }, { "repositoryId":"camcordersku_1_2" }, { "repositoryId":"camcordersku_1_3" }, { "repositoryId":"camcordersku_1_4" } ], "saleVolumePrice":{ "tieredPrice":{ "numLevels":2, "levels":[ { "price":18, "levelMinimum":1, "levelMaximum":10 }, { "price":8, "levelMinimum":11 } ] } }, "salePrice":null, "primaryMediumImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=475&width=475", "fullImageURLs":[ "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg" ], "active":true, "thumbImageURLs":[ "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=100&width=100" ], "productImages":[ { "repositoryId":"camcorderImg" } ], "route":"/product/camcorder_1", "mediumImageURLs":[ "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=475&width=475" ], "repositoryId":"camcorder_1", "primarySourceImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=300&width=300", "primarySmallImageURL":"/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=300&width=300", "sourceImageURLs":[ "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=300&width=300" ], "avgCustRating":null, "listPrice":null } ], "auxiliaryMedia":{ }, "manufacturer_part_number":null, "catalogs":[ ], "repositoryId":"camcordersku_1_3", "fulfiller":null, "dynamicPropertyMapDouble":{ }, "startDate":null, "listPrice":699.99 }, [ { "optionValue":"Neon", "optionName":"color" }, { "optionValue":"2x optical/130x digital", "optionName":"zoom" } ] ] }Default ResponseThe error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |30015|SiteId passed in x-ccsite header is currently inactive| |30014|SiteId passed in x-ccsite header is invalid or the site was deleted| |20033|Illegal to use catalog ID when custom catalogs are not in use.| |26069|Internal Error.| |26050|Variants Internal Error.| |26061|Cannot Find Null Sku.| |26060|Cannot Find Sku.|BodyRoot Schema : errorModelType: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 : errorsNested Schema : itemsType: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:
{ "links": [{ "rel": "self", "href": "http://localhost:9080/ccagent/v1/variants/camcordersku_1_3" }], "autoWrap": true, "items": [ { "template": null, "dynamicPropertyMapLong": { "sku-camcorder_zoom": 0, "sku-camcorder_color": 2 }, "replacementProducts": null, "bundleLinks": [], "largeImage": null, "dynamicAttributes": {}, "smallImage": null, "fixedReplacementProducts": [], "color": "Neon", "endDate": null, "derivedCatalogs": [], "nonreturnable": false, "displayName": null, "onlineOnly": false, "description": null, "type": "sku-camcorder", "itemAcl": null, "translations": {}, "unit_of_measure": null, "onSale": false, "dynamicPropertyMapString": {}, "siteIds": [], "id": "camcordersku_1_3", "thumbnailImage": null, "computedCatalogs": [], "discountable": true, "wholesalePrice": null, "salePriceEndDate": null, "catalogsReplacementProducts": [], "salePriceStartDate": null, "quantity": null, "salePrice": 597, "skuInfos": {}, "zoom": "2x optical/130x digital", "creationDate": "2015-03-30T06:53:04.000Z", "version": 1, "parentProducts": [{ "longDescription": "Record footage in 720p resolution with this Samsung F980BN\n HMX-F90BN/XAA flash memory camcorder, which features a CMOS sensor to help you capture high-definition\n videos. The 2. LCD display provides a clear view for shooting or reviewing images.\n ", "primaryThumbImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=100&width=100", "largeImage": null, "smallImage": null, "listVolumePrice": {"bulkPrice": { "numLevels": 2, "levels": [ { "price": 21, "levelMinimum": 1, "levelMaximum": 10 }, { "price": 10, "levelMinimum": 11 } ] }}, "displayName": "Samsung - F90BN HD Flash Memory Camcorder", "orderLimit": null, "description": null, "primaryFullImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg", "largeImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=940&width=940"], "primaryLargeImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=940&width=940", "smallImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=300&width=300"], "id": "camcorder_1", "childSKUs": [ {"repositoryId": "camcordersku_1_1"}, {"repositoryId": "camcordersku_1_2"}, {"repositoryId": "camcordersku_1_3"}, {"repositoryId": "camcordersku_1_4"} ], "saleVolumePrice": {"tieredPrice": { "numLevels": 2, "levels": [ { "price": 18, "levelMinimum": 1, "levelMaximum": 10 }, { "price": 8, "levelMinimum": 11 } ] }}, "salePrice": null, "primaryMediumImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=475&width=475", "fullImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg"], "active": true, "thumbImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=100&width=100"], "productImages": [{"repositoryId": "camcorderImg"}], "route": "/product/camcorder_1", "mediumImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=475&width=475"], "repositoryId": "camcorder_1", "primarySourceImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=300&width=300", "primarySmallImageURL": "/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=300&width=300", "sourceImageURLs": ["/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=300&width=300"], "avgCustRating": null, "listPrice": null }], "auxiliaryMedia": {}, "manufacturer_part_number": null, "catalogs": [], "repositoryId": "camcordersku_1_3", "fulfiller": null, "dynamicPropertyMapDouble": {}, "startDate": null, "listPrice": 699.99 }, [ { "optionValue": "Neon", "optionName": "color" }, { "optionValue": "2x optical/130x digital", "optionName": "zoom" } ] ] }