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- barcode
-
Type:
numberThe barcode - configurable
-
Type:
booleanWhether the sku is configurable or not - fractionalQuantitiesAllowed
-
Type:
booleanWhether fractional quantities are allowed - fullImageURLs
-
Type:
arrayfullImageURLsAdditional Properties Allowed:The array of full image URLs - images
-
Type:
arrayimagesAdditional Properties Allowed:Image URLs of SKU. - largeImage
-
Type:
stringlarge image path of the SKU - largeImageURLs
-
Type:
arraylargeImageURLsAdditional Properties Allowed:Large Image URLs of SKU. - listPrice
-
Type:
numberThe list price - listPrices
-
Type:
objectlistPricesAdditional Properties Allowed:list prices of the product in respective price list groups - listVolumePrice
-
Type:
numberlist volume price of the product - listVolumePrices
-
Type:
objectlistVolumePricesAdditional Properties Allowed:list volume prices of the product in respective price list groups - mediumImageURLs
-
Type:
arraymediumImageURLsAdditional Properties Allowed:medium image urls path - model
-
Type:
stringThe model property of SKU. - nonreturnable
-
Type:
stringIndicates whether the SKU is returnable or not. - parentProducts
-
Type:
arrayparentProductsAdditional Properties Allowed:The list of parent products for the SKU. - primaryFullImageURL
-
Type:
stringPrimary Full Image URL of SKU. - primaryLargeImageURL
-
Type:
stringPrimary Large Image URL of SKU. - primaryMediumImageURL
-
Type:
stringprimary medium image url path - primarySmallImageURL
-
Type:
stringPrimary Small Image URL of SKU. - primarySourceImageURL
-
Type:
stringprimary source image url path - primaryThumbImageURL
-
Type:
stringPrimary Source Image URL of SKU. - productFamily
-
Type:
stringproduct family property of the SKU - productLine
-
Type:
stringproduct line of the SKU - productListingSku
-
Type:
objectproductListingSkuAdditional Properties Allowed:product listing SKU property of the SKU - productVariantOptions
-
Type:
arrayproductVariantOptionsAdditional Properties Allowed:The selected options for the SKU. - quantity
-
Type:
integerquantity of the SKU - repositoryId
-
Type:
stringrepository id of the child SKU - salePrice
-
Type:
numbersale price of the SKU. - salePriceEndDate
-
Type:
stringsale price end date of the SKU - salePrices
-
Type:
objectsalePricesAdditional Properties Allowed:sale prices of the product in respective price list groups - salePriceStartDate
-
Type:
stringsale price start date of the SKU - saleVolumePrice
-
Type:
numberThe sale volume price - saleVolumePrices
-
Type:
objectsaleVolumePricesAdditional Properties Allowed:Sale volume prices of the product in respective price list groups - smallImage
-
Type:
arraysmallImageAdditional Properties Allowed:The array of small image URLs - smallImageURLs
-
Type:
arraysmallImageURLsAdditional Properties Allowed:small image url paths - sourceImageURLs
-
Type:
arraysourceImageURLsAdditional Properties Allowed:Source Image URLs of SKU. - thumbImageURLs
-
Type:
arraythumbImageURLsAdditional Properties Allowed:Thumb Image URLs of SKU - thumbnailImage
-
Type:
stringThe thumbanil image of the SKU - unitOfMeasure
-
Type:
stringunit of measure of the SKU - variantValuesOrder
-
Type:
objectvariantValuesOrderAdditional Properties Allowed:Object having various variant property as key and ordered values array as the value.
Nested Schema : fullImageURLsNested Schema : imagesNested Schema : largeImageURLsNested Schema : listPricesType:objectlist prices of the product in respective price list groups- plg1
-
Type:
numberlist price of the product in plg1 - plg2
-
Type:
numberlist price of the product in plg2
Nested Schema : listVolumePricesType:objectlist volume prices of the product in respective price list groups- plg1
-
Type:
numberlist volume price of the product in plg1 - plg2
-
Type:
numberlist volume price of the product in plg2
Nested Schema : mediumImageURLsNested Schema : parentProductsNested Schema : productListingSkuType:objectproduct listing SKU property of the SKUNested Schema : productVariantOptionsNested Schema : salePricesType:objectsale prices of the product in respective price list groups- plg1
-
Type:
numbersale price of the product in plg1 - plg2
-
Type:
numbersale price of the product in plg2
Nested Schema : saleVolumePricesType:objectSale volume prices of the product in respective price list groups- plg1
-
Type:
numberSale volume price of the product in plg1 - plg2
-
Type:
numberSale volume price of the product in plg2
Nested Schema : smallImageNested Schema : smallImageURLsNested Schema : sourceImageURLsNested Schema : thumbImageURLsNested Schema : variantValuesOrderType:objectObject having various variant property as key and ordered values array as the value.Nested Schema : itemsType:object- active
-
Type:
booleanThe active property of the product - avgCustRating
-
Type:
numberaverage customer rating for the product - brand
-
Type:
stringbrand of the product - configurable
-
Type:
booleanwhether the product is configurable or not - CountryOfOrigin
-
Type:
stringthe country of origin of the product - defaultProductListingSku
-
Type:
objectdefaultProductListingSkuAdditional Properties Allowed:default SKU for the product - description
-
Type:
stringdescription of the product - displayName
-
Type:
stringThe display name of the product - fractionalQuantitiesAllowed
-
Type:
booleanWhether fractional quantities are allowed - fullImageURLs
-
Type:
arrayfullImageURLsAdditional Properties Allowed:full image url paths - height
-
Type:
numberheight of the product - id
-
Type:
stringid of the product - largeImageURLs
-
Type:
arraylargeImageURLsAdditional Properties Allowed:The array of large image URLs - length
-
Type:
numberlength of the product - listPrice
-
Type:
numberlist price of the product - listPrices
-
Type:
objectlistPricesAdditional Properties Allowed:list prices of the product in respective price list groups - listVolumePrice
-
Type:
numberlist volume price of the product - listVolumePrices
-
Type:
objectlistVolumePricesAdditional Properties Allowed:list volume prices of the product in respective price list groups - longDescription
-
Type:
stringlong description of the product - mediumImageURLs
-
Type:
arraymediumImageURLsAdditional Properties Allowed:Medium Image URLs SKU. - nonreturnable
-
Type:
booleanIndicates whether the product is returnable or not. - notForIndividualSale
-
Type:
booleanWhether the product is not for individual sale - orderLimit
-
Type:
stringthe order limit of the product - parentCategory
-
Type:
stringparent category of the product - primaryFullImageURL
-
Type:
stringprimary full image url path - primaryImageAltText
-
Type:
stringAlternate text for the primary image of the product - primaryImageTitle
-
Type:
stringprimary image title of the product - primaryLargeImageURL
-
Type:
stringprimary large image url path - primaryMediumImageURL
-
Type:
stringPrimary Medium Image URL ID of SKU. - primarySmallImageURL
-
Type:
stringPrimary Small Image URL of product - primarySourceImageURL
-
Type:
stringprimary source image url path - primaryThumbImageURL
-
Type:
stringprimary thumb image url path - relatedProducts
-
Type:
stringrelated products - repositoryId
-
Type:
stringrepository id of the product - route
-
Type:
stringroute of the product - salePrice
-
Type:
numberThe sale price of the product - salePrices
-
Type:
objectsalePricesAdditional Properties Allowed:sale prices of the product in respective price list groups - saleVolumePrice
-
Type:
numberThe sale volume price - saleVolumePrices
-
Type:
objectsaleVolumePricesAdditional Properties Allowed:Sale volume prices of the product in respective price list groups - seoUrlSlugDerived
-
Type:
stringDerived from seoUrlSlug of the product if available, else derived from display name of the product. - shippingSurcharge
-
Type:
numberExtra handling costs for shipping the product. - shippingSurcharges
-
Type:
objectshippingSurchargesAdditional Properties Allowed:Extra handling costs for shipping the product in respective price list groups - smallImageURLs
-
Type:
arraysmallImageURLsAdditional Properties Allowed:The urls of the small image. - sourceImageURLs
-
Type:
arraysourceImageURLsAdditional Properties Allowed:source image urls of the product - thumbImageURLs
-
Type:
arraythumbImageURLsAdditional Properties Allowed:Thumb Image URLs of product - type
-
Type:
stringtype of the product - unitOfMeasure
-
Type:
stringunit of measure of the product - weight
-
Type:
numberweight - width
-
Type:
numberwidth of the product
Nested Schema : defaultProductListingSkuType:objectdefault SKU for the productNested Schema : fullImageURLsNested Schema : largeImageURLsNested Schema : listPricesType:objectlist prices of the product in respective price list groups- plg1
-
Type:
numberlist price of the product in plg1 - plg2
-
Type:
numberlist price of the product in plg2
Nested Schema : listVolumePricesType:objectlist volume prices of the product in respective price list groups- plg1
-
Type:
numberlist volume price of the product in plg1 - plg2
-
Type:
numberlist volume price of the product in plg2
Nested Schema : mediumImageURLsNested Schema : salePricesType:objectsale prices of the product in respective price list groups- plg1
-
Type:
numbersale price of the product in plg1 - plg2
-
Type:
numbersale price of the product in plg2
Nested Schema : saleVolumePricesType:objectSale volume prices of the product in respective price list groups- plg1
-
Type:
numberSale volume price of the product in plg1 - plg2
-
Type:
numberSale volume price of the product in plg2
Nested Schema : shippingSurchargesType:objectExtra handling costs for shipping the product in respective price list groups- plg1
-
Type:
numberExtra handling costs for shipping the product in plg1 - plg2
-
Type:
numberExtra handling costs for shipping the product in plg2
Nested Schema : smallImageURLsNested Schema : sourceImageURLsNested Schema : thumbImageURLsNested Schema : itemsType:object- optionName
-
Type:
stringThe name of the option. - optionValue
-
Type:
stringThe value of the option.
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:
arrayerrorsAdditional Properties Allowed:An 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" } ] ] }