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: string
Sku Id.
Query Parameters
-
catalogId(optional): string
ID 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: boolean
To retrieve not for indivisal Sale items. If showNotForIndividualSale is not passed the sku will return if it exists
-
skuId: string
Sku Id.
Header Parameters
-
x-ccsite(optional): string
the site id on which the orders is laced
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getSku_response
Type:
Show Source
object
-
barcode(optional):
number
The barcode
-
configurable(optional):
boolean
Whether the sku is configurable or not
-
configurationMetadata(optional):
array configurationMetadata
Array of configuration attributes associated with the SKU.
-
derivedListPriceFrom(optional):
string
Determines from which price list group, list price is derived. It can be either current price list group or one of it's ancestors
-
derivedOnlineOnly(optional):
boolean
Indicates if the SKU is available online or not.
-
derivedSalePriceFrom(optional):
string
Determines from which price list group, sale price is derived. It can be either current price list group or one of it's ancestors
-
displayName(optional):
string
The display name of the SKU
-
fractionalQuantitiesAllowed(optional):
boolean
Whether fractional quantities are allowed
-
fullImageURLs(optional):
array fullImageURLs
The array of full image URLs
-
images(optional):
array images
Image URLs of SKU.
-
largeImage(optional):
string
large image path of the SKU
-
largeImageURLs(optional):
array largeImageURLs
Large Image URLs of SKU.
-
listPrice(optional):
number
The list price
-
listPrices(optional):
object listPrices
list prices of the product in respective price list groups
-
listVolumePrice(optional):
number
list volume price of the product
-
listVolumePrices(optional):
object listVolumePrices
list volume prices of the product in respective price list groups
-
mediumImageURLs(optional):
array mediumImageURLs
medium image urls path
-
model(optional):
string
The model property of SKU.
-
nonreturnable(optional):
string
Indicates whether the SKU is returnable or not.
-
parentProducts(optional):
array parentProducts
The list of parent products for the SKU.
-
primaryFullImageURL(optional):
string
Primary Full Image URL of SKU.
-
primaryLargeImageURL(optional):
string
Primary Large Image URL of SKU.
-
primaryMediumImageURL(optional):
string
primary medium image url path
-
primarySmallImageURL(optional):
string
Primary Small Image URL of SKU.
-
primarySourceImageURL(optional):
string
primary source image url path
-
primaryThumbImageURL(optional):
string
Primary Source Image URL of SKU.
-
productFamily(optional):
string
product family property of the SKU
-
productLine(optional):
string
product line of the SKU
-
productListingSku(optional):
object productListingSku
product listing SKU property of the SKU
-
productVariantOptions(optional):
array productVariantOptions
The selected options for the SKU.
-
quantity(optional):
integer
quantity of the SKU
-
repositoryId(optional):
string
repository id of the child SKU
-
salePrice(optional):
number
sale price of the SKU.
-
salePriceEndDate(optional):
string
sale price end date of the SKU
-
salePrices(optional):
object salePrices
sale prices of the product in respective price list groups
-
salePriceStartDate(optional):
string
sale price start date of the SKU
-
saleVolumePrice(optional):
number
The sale volume price
-
saleVolumePrices(optional):
object saleVolumePrices
Sale volume prices of the product in respective price list groups
-
smallImage(optional):
array smallImage
The array of small image URLs
-
smallImageURLs(optional):
array smallImageURLs
small image url paths
-
sourceImageURLs(optional):
array sourceImageURLs
Source Image URLs of SKU.
-
thumbImageURLs(optional):
array thumbImageURLs
Thumb Image URLs of SKU
-
thumbnailImage(optional):
string
The thumbanil image of the SKU
-
unitOfMeasure(optional):
string
unit of measure of the SKU
-
variantValuesOrder(optional):
object variantValuesOrder
Object having various variant property as key and ordered values array as the value.
Nested Schema : configurationMetadata
Type:
array
Array of configuration attributes associated with the SKU.
Show Source
Nested Schema : listPrices
Type:
object
list prices of the product in respective price list groups
Show Source
-
plg1(optional):
number
list price of the product in plg1
-
plg2(optional):
number
list price of the product in plg2
Nested Schema : listVolumePrices
Type:
object
list volume prices of the product in respective price list groups
Show Source
-
plg1(optional):
number
list volume price of the product in plg1
-
plg2(optional):
number
list volume price of the product in plg2
Nested Schema : productListingSku
Type:
object
product listing SKU property of the SKU
Nested Schema : salePrices
Type:
object
sale prices of the product in respective price list groups
Show Source
-
plg1(optional):
number
sale price of the product in plg1
-
plg2(optional):
number
sale price of the product in plg2
Nested Schema : saleVolumePrices
Type:
object
Sale volume prices of the product in respective price list groups
Show Source
-
plg1(optional):
number
Sale volume price of the product in plg1
-
plg2(optional):
number
Sale volume price of the product in plg2
Nested Schema : variantValuesOrder
Type:
object
Object having various variant property as key and ordered values array as the value.
Show Source
Nested Schema : items
Type:
Show Source
object
-
name(optional):
string
The name of the configuration attribute.
-
repositoryId(optional):
string
The repository id for existing configuration metadata items.
-
value(optional):
string
The value of the configuration attribute.
Nested Schema : items
Type:
Show Source
object
-
active(optional):
boolean
The active property of the product
-
avgCustRating(optional):
number
average customer rating for the product
-
brand(optional):
string
brand of the product
-
configurable(optional):
boolean
whether the product is configurable or not
-
CountryOfOrigin(optional):
string
the country of origin of the product
-
defaultProductListingSku(optional):
object defaultProductListingSku
default SKU for the product
-
derivedListPriceFrom(optional):
string
Determines from which price list group, list price is derived. It can be either current price list group or one of it's ancestors
-
derivedSalePriceFrom(optional):
string
Determines from which price list group, sale price is derived. It can be either current price list group or one of it's ancestors
-
derivedShippingSurchargeFrom(optional):
string
Determines from which price list group, shipping surcharge is derived. It can be either current price list group or one of it's ancestors
-
description(optional):
string
description of the product
-
displayName(optional):
string
The display name of the product
-
fractionalQuantitiesAllowed(optional):
boolean
Whether fractional quantities are allowed
-
fullImageURLs(optional):
array fullImageURLs
full image url paths
-
height(optional):
number
height of the product
-
id(optional):
string
id of the product
-
largeImageURLs(optional):
array largeImageURLs
The array of large image URLs
-
length(optional):
number
length of the product
-
listPrice(optional):
number
list price of the product
-
listPrices(optional):
object listPrices
list prices of the product in respective price list groups
-
listVolumePrice(optional):
number
list volume price of the product
-
listVolumePrices(optional):
object listVolumePrices
list volume prices of the product in respective price list groups
-
longDescription(optional):
string
long description of the product
-
mediumImageURLs(optional):
array mediumImageURLs
Medium Image URLs SKU.
-
nonreturnable(optional):
boolean
Indicates whether the product is returnable or not.
-
notForIndividualSale(optional):
boolean
Whether the product is not for individual sale
-
onlineOnly(optional):
boolean
online only property
-
orderLimit(optional):
string
the order limit of the product
-
parentCategory(optional):
string
parent category of the product
-
primaryFullImageURL(optional):
string
primary full image url path
-
primaryImageAltText(optional):
string
Alternate text for the primary image of the product
-
primaryImageTitle(optional):
string
primary image title of the product
-
primaryLargeImageURL(optional):
string
primary large image url path
-
primaryMediumImageURL(optional):
string
Primary Medium Image URL ID of SKU.
-
primarySmallImageURL(optional):
string
Primary Small Image URL of product
-
primarySourceImageURL(optional):
string
primary source image url path
-
primaryThumbImageURL(optional):
string
primary thumb image url path
- relatedProducts(optional): string
-
repositoryId(optional):
string
repository id of the product
-
route(optional):
string
route of the product
-
salePrice(optional):
number
The sale price of the product
-
salePrices(optional):
object salePrices
sale prices of the product in respective price list groups
-
saleVolumePrice(optional):
number
The sale volume price
-
saleVolumePrices(optional):
object saleVolumePrices
Sale volume prices of the product in respective price list groups
-
seoUrlSlugDerived(optional):
string
Derived from seoUrlSlug of the product if available, else derived from display name of the product.
-
shippingSurcharge(optional):
number
Extra handling costs for shipping the product.
-
shippingSurcharges(optional):
object shippingSurcharges
Extra handling costs for shipping the product in respective price list groups
-
smallImageURLs(optional):
array smallImageURLs
The urls of the small image.
-
sourceImageURLs(optional):
array sourceImageURLs
source image urls of the product
-
thumbImageURLs(optional):
array thumbImageURLs
Thumb Image URLs of product
-
type(optional):
string
type of the product
-
unitOfMeasure(optional):
string
unit of measure of the product
-
weight(optional):
number
weight
-
width(optional):
number
width of the product
Nested Schema : defaultProductListingSku
Type:
object
default SKU for the product
Nested Schema : listPrices
Type:
object
list prices of the product in respective price list groups
Show Source
-
plg1(optional):
number
list price of the product in plg1
-
plg2(optional):
number
list price of the product in plg2
Nested Schema : listVolumePrices
Type:
object
list volume prices of the product in respective price list groups
Show Source
-
plg1(optional):
number
list volume price of the product in plg1
-
plg2(optional):
number
list volume price of the product in plg2
Nested Schema : salePrices
Type:
object
sale prices of the product in respective price list groups
Show Source
-
plg1(optional):
number
sale price of the product in plg1
-
plg2(optional):
number
sale price of the product in plg2
Nested Schema : saleVolumePrices
Type:
object
Sale volume prices of the product in respective price list groups
Show Source
-
plg1(optional):
number
Sale volume price of the product in plg1
-
plg2(optional):
number
Sale volume price of the product in plg2
Nested Schema : shippingSurcharges
Type:
object
Extra handling costs for shipping the product in respective price list groups
Show Source
-
plg1(optional):
number
Extra handling costs for shipping the product in plg1
-
plg2(optional):
number
Extra handling costs for shipping the product in plg2
Nested Schema : items
Type:
Show Source
object
-
optionName(optional):
string
The name of the option.
-
optionValue(optional):
string
The value of the option.
Example Response (application/json)
{
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccagent/v1/variants/camcordersku_1_3"
}
],
"autoWrap":true,
"items":[
{
"dynamicPropertyMapLong":{
"sku-camcorder_zoom":0,
"sku-camcorder_color":2
},
"bundleLinks":[
],
"largeImage":null,
"smallImage":null,
"endDate":null,
"derivedCatalogs":[
],
"configurationMetadata":[
],
"type":"sku-camcorder",
"derivedSalePriceFrom":"defaultPriceGroup",
"translations":{
},
"id":"camcordersku_1_3",
"wholesalePrice":null,
"salePriceEndDate":null,
"skuInfos":{
},
"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,
"onlineOnly":false,
"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",
"addOnProducts":[
{
"repositoryId":"cp10004",
"configurationOptions":[
{
"product":{
"displayName":"OM-D E-M10 Digital Compact System Camera",
"repositoryId":"camera_1",
"id":"camera_1",
"type":"camera"
},
"repositoryId":"co10009",
"id":"co10009",
"sku":{
"repositoryId":"camerasku_1_1",
"id":"camerasku_1_1"
}
},
{
"product":{
"displayName":"OM-D E-M10 Digital Compact System Camera",
"repositoryId":"camera_1",
"id":"camera_1",
"type":"camera"
},
"repositoryId":"co10010",
"id":"co10010",
"sku":{
"repositoryId":"camerasku_1_2",
"id":"camerasku_1_2"
}
}
],
"id":"cp10004"
},
{
"repositoryId":"cp10005",
"configurationOptions":[
{
"product":{
"displayName":"Movie Gift Card",
"repositoryId":"giftCard_1",
"id":"giftCard_1",
"type":"giftCard"
},
"repositoryId":"co10011",
"id":"co10011",
"sku":{
"repositoryId":"giftCardsku_1",
"id":"giftCardsku_1"
}
}
],
"id":"cp10005"
}
],
"smallImageURLs":[
"/ccstore/v1/images/?source=http://localhost:9080/file/products/Samsung_F90BN_LARGE.jpg&height=300&width=300"
],
"derivedShippingSurchargeFrom":"defaultPriceGroup",
"derivedSalePriceFrom":"defaultPriceGroup",
"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",
"derivedListPriceFrom":"defaultPriceGroup",
"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
}
],
"manufacturer_part_number":null,
"catalogs":[
],
"startDate":null,
"template":null,
"replacementProducts":null,
"dynamicAttributes":{
},
"fixedReplacementProducts":[
],
"color":"Neon",
"nonreturnable":false,
"displayName":"Camcorder",
"description":null,
"derivedOnlineOnly":false,
"itemAcl":null,
"unit_of_measure":null,
"onSale":false,
"dynamicPropertyMapString":{
},
"siteIds":[
],
"thumbnailImage":null,
"computedCatalogs":[
],
"discountable":true,
"catalogsReplacementProducts":[
],
"salePriceStartDate":null,
"quantity":null,
"salePrice":597,
"zoom":"2x optical/130x digital",
"soldAsPackage":false,
"auxiliaryMedia":{
},
"repositoryId":"camcordersku_1_3",
"derivedListPriceFrom":"defaultPriceGroup",
"fulfiller":null,
"dynamicPropertyMapDouble":{
},
"listPrice":699.99
},
[
{
"optionValue":"Neon",
"optionName":"color"
},
{
"optionValue":"2x optical/130x digital",
"optionName":"zoom"
}
]
]
}
Default Response
The 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.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code