listSkus
get
/ccagent/v1/skus
List Skus. Returns a paginated list of SKUs, including variant options, prices, and inventory. Optionally filtered by 'q' parameter. 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.Additionally takes x-cssite header to return the skus pertaining to the site
Request
Supported Media Types
- application/json
Query Parameters
-
catalogId: string
Catalog Id
-
preFilter: boolean
Enabling this flag would improve response time by applying filter. However for better performance results, include only required properties in filterKey, fields , incldude query parameter and avoid including fields like parentProducts which intern have huge number of fields. While using this property ensure that repositoryId,id,parentProducts.id are always included in the response.
-
q: string
Contains SCIM query language
-
skuIds: string
Comma separated multiple SKU IDS
-
storePriceListGroupId: string
Store PriceList Group id
Header Parameters
-
x-ccsite: 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 : listSkus_response
Type:
Show Source
object
-
items:
array items
items
-
limit:
integer
limit
-
links:
array links
links
-
offset:
integer
offset
-
sort:
array sort
sort
-
total:
integer
total
-
totalResults:
integer
totalResults
Nested Schema : items
Type:
Show Source
object
-
auxiliaryMedia:
object auxiliaryMedia
auxiliaryMedia
-
barcode:
string
barcode
-
catalogs:
array catalogs
catalogs
-
catalogsReplacementProducts:
array catalogsReplacementProducts
catalogs replacement products
-
color:
string
color
-
computedCatalogs:
array computedCatalogs
computed catalogs
-
configurable:
boolean
Indicates whether a sku is configurable
-
configurationMetadata:
array configurationMetadata
Array of configuration attributes associated with the SKU.
-
creationDate:
string
creationDate
-
derivedCatalogs:
array derivedCatalogs
Derived catalogs
-
derivedListPriceFrom:
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:
boolean
Indicates if the SKU is available online or not.
-
derivedSalePriceFrom:
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:
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:
string
description
-
discountable:
boolean
discountable
-
displayName:
string
displayName
-
dynamicPropertyMapLong:
object dynamicPropertyMapLong
dynamicPropertyMapLong
-
endDate:
string
endDate
-
fractionalQuantitiesAllowed:
boolean
fractionalQuantitiesAllowed
-
fulfiller:
string
fulfiller
-
fullImageURLs:
array fullImageURLs
fullImageURLs
-
id:
string
id
-
itemAcl:
string
item Acl
-
largeImage:
object largeImage
large image
-
largeImageURLs:
array largeImageURLs
largeImageURLs
-
listPrice:
number
listPrice
-
listPrices:
object listPrices
listPrices
-
manufacturer_part_number:
string
manufacturer_part_number
-
mediumImageURLs:
array mediumImageURLs
mediumImageURLs
-
nonreturnable:
boolean
nonreturnable
-
onSale:
boolean
onSale
-
parentProducts:
array parentProducts
array of parent products
-
primaryFullImageURL:
string
primaryFullImageURL
-
primaryLargeImageURL:
string
primaryLargeImageURL
-
primaryMediumImageURL:
string
primaryMediumImageURL
-
primarySmallImageURL:
string
primarySmallImageURL
-
primarySourceImageURL:
string
primarySourceImageURL
-
primaryThumbImageURL:
string
primaryThumbImageURL
-
productListingSku:
string
productListingSku
-
quantity:
integer
quantity
-
repositoryId:
string
repositoryId
-
salePrice:
number
salePrice
-
salePriceEndDate:
string
salePriceEndDate
-
salePrices:
object salePrices
salePrices
-
salePriceStartDate:
string
salePriceStartDate
-
shippingSurcharge:
number
Extra handling costs while shipping the product, in the default price group.
-
shippingSurcharges:
object shippingSurcharges
Extra handling costs for shipping the product in respective price list groups
-
siteIds:
string
siteIds
-
size:
string
size
-
smallImage:
object smallImage
Small image
-
smallImageURLs:
array smallImageURLs
smallImageURLs
-
soldAsPackage:
boolean
Indicates whether the SKU as a single package otherwise consider the SKU where sub-items can be shipped/fulfilled separately.
-
sourceImageURLs:
array sourceImageURLs
sourceImageURLs
-
startDate:
string
startDate
-
thumbImageURLs:
array thumbImageURLs
thumbImageURLs
-
thumbnailImage:
object thumbnailImage
thumbnailImage
-
translations:
object translations
translations
-
type:
string
type
-
unit_of_measure:
string
unit_of_measure
-
unitOfMeasure:
string
unitOfMeasure
-
variant:
array variant
Product Variant Information.
-
variantOptions:
string
variantOptions
-
version:
integer
version
-
wholesalePrice:
number
wholesalePrice
Nested Schema : auxiliaryMedia
Type:
object
auxiliaryMedia
Nested Schema : configurationMetadata
Type:
array
Array of configuration attributes associated with the SKU.
Show Source
Nested Schema : dynamicPropertyMapLong
Type:
object
dynamicPropertyMapLong
Show Source
-
sku-WomensApparel_color:
integer
sku-WomensApparel_color
-
sku-WomensApparel_size:
integer
sku-WomensApparel_size
Nested Schema : largeImage
Type:
object
large image
Show Source
-
repositoryId:
string
repository Id
-
url:
string
URL
Nested Schema : listPrices
Type:
object
listPrices
Show Source
-
defaultPriceGroup:
number
defaultPriceGroup
Nested Schema : salePrices
Type:
object
salePrices
Show Source
-
defaultPriceGroup:
string
defaultPriceGroup
Nested Schema : shippingSurcharges
Type:
object
Extra handling costs for shipping the product in respective price list groups
Show Source
-
plg1:
number
Extra handling costs for shipping the product in plg1
-
plg2:
number
Extra handling costs for shipping the product in plg2
Nested Schema : smallImage
Type:
object
Small image
Show Source
-
repositoryId:
string
repository Id
-
url:
string
URL
Nested Schema : thumbnailImage
Type:
object
thumbnailImage
Show Source
-
repositoryId:
string
repository Id
-
url:
string
URL
Nested Schema : items
Type:
Show Source
object
-
name:
string
The name of the configuration attribute.
-
repositoryId:
string
The repository id for existing configuration metadata items.
-
value:
string
The value of the configuration attribute.
Nested Schema : items
Type:
Show Source
object
-
active:
boolean
active
-
addOnProducts:
array addOnProducts
Array of AddOn products.
-
avgCustRating:
string
avgCustRating
-
childSKUs:
array childSKUs
childSKUs
-
derivedListPriceFrom:
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:
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:
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:
string
description
-
displayName:
string
The display name of the SKU
-
fullImageURLs:
array fullImageURLs
fullImageURLs
-
id:
string
id
-
largeImage:
object largeImage
large image
-
largeImageURLs:
array largeImageURLs
largeImageURLs
-
listPrice:
number
listPrice
-
longDescription:
string
longDescription
-
mediumImageURLs:
array mediumImageURLs
mediumImageURLs
-
onlineOnly:
boolean
online only property
-
orderLimit:
integer
orderLimit
-
primaryFullImageURL:
string
primaryFullImageURL
-
primaryLargeImageURL:
string
primaryLargeImageURL
-
primaryMediumImageURL:
string
primaryMediumImageURL
-
primarySmallImageURL:
string
primarySmallImageURL
-
primarySourceImageURL:
string
primarySourceImageURL
-
primaryThumbImageURL:
string
primaryThumbImageURL
-
productImages:
array productImages
productImages
-
repositoryId:
string
repositoryId
-
route:
string
route
-
salePrice:
number
salePrice
-
shippingSurcharge:
number
shippingSurcharge
-
smallImage:
object smallImage
Small image
-
smallImageURLs:
array smallImageURLs
smallImageURLs
-
sourceImageURLs:
array sourceImageURLs
sourceImageURLs
-
thumbImageURLs:
array thumbImageURLs
thumbImageURLs
Nested Schema : addOnProducts
Type:
array
Array of AddOn products.
Show Source
-
Array of:
object items
AddOn product.
Nested Schema : largeImage
Type:
object
large image
Show Source
-
repositoryId:
string
repository Id
-
url:
string
URL
Nested Schema : smallImage
Type:
object
Small image
Show Source
-
repositoryId:
string
repository Id
-
url:
string
URL
Nested Schema : items
Type:
object
AddOn product.
Show Source
-
configurationOptions:
array configurationOptions
Array of configuration options.
-
id:
string
Repository ID
-
repositoryId:
string
Repository ID of configurable product.
Nested Schema : items
Type:
Show Source
object
-
id:
string
Repository ID
-
product:
object product
Product Details
-
repositoryId:
string
Repository ID of configuration option.
-
sku:
object sku
Sku Details
Nested Schema : product
Type:
object
Product Details
Show Source
-
displayName:
string
Display name of product.
-
id:
string
Repository ID
-
repositoryId:
string
Repository ID of product.
-
type:
string
Type of product.
Nested Schema : sku
Type:
object
Sku Details
Show Source
-
id:
string
Repository ID
-
repositoryId:
string
Repository ID of sku.
Nested Schema : items
Type:
Show Source
object
-
optionName:
string
Name of the Dynamic attribute.
-
optionValue:
string
Value of the Dynamic attribute.
Example Response (application/json)
{
"total":1,
"totalResults":1,
"offset":0,
"limit":250,
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccagentui/v1/skus?q=barcode%20eq%20%2212345%22"
}
],
"sort":[
{
"property":"id",
"order":"asc"
}
],
"items":[
{
"dynamicPropertyMapLong":{
"sku-WomensApparel_color":13,
"sku-WomensApparel_size":0
},
"bundleLinks":[
],
"largeImage":null,
"smallImage":null,
"derivedCatalogs":[
{
"repositoryId":"cloudCatalog"
}
],
"endDate":null,
"listPrices":{
"defaultPriceGroup":55
},
"configurationMetadata":[
],
"type":"sku-WomensApparel",
"largeImageURLs":[
],
"derivedSalePriceFrom":"defaultPriceGroup",
"variantOptions":[
[
{
"optionValue":"Poppy",
"optionName":"Color"
},
{
"optionValue":"Small",
"optionName":"Size"
}
]
],
"translations":{
"1":{
"repositoryId":"xsku2535_1_en_US"
},
"27":{
"repositoryId":"xsku2535_1_vi"
}
},
"id":"xsku2535_1",
"barcode":"12345",
"wholesalePrice":null,
"salePriceEndDate":null,
"images":[
],
"unitOfMeasure":null,
"primaryMediumImageURL":null,
"skuInfos":{
},
"thumbImageURLs":[
],
"creationDate":"2016-05-09T14:54:09.000Z",
"version":4,
"parentProducts":[
{
"longDescription":"Wear this skirt anywhere with anything. Flat front allows shirts to be tucked in or overlaid nicely, side zipper and snap rivet detailing around the waist.",
"primaryThumbImageURL":"/ccstore/v1/images/?source=/file/v2/products/APP_A-lineSkirt_full.jpg&height=100&width=100",
"largeImage":null,
"smallImage":null,
"displayName":"A-Line Skirt",
"orderLimit":null,
"onlineOnly":false,
"description":"The simple perfect A line",
"primaryFullImageURL":"/ccstore/v1/images/?source=/file/v2/products/APP_A-lineSkirt_full.jpg",
"largeImageURLs":[
"/ccstore/v1/images/?source=/file/v2/products/APP_A-lineSkirt_full.jpg&height=940&width=940",
"/ccstore/v1/images/?source=/file/v2/products/APP_SportySkirt_full.jpg&height=940&width=940"
],
"primaryLargeImageURL":"/ccstore/v1/images/?source=/file/v2/products/APP_A-lineSkirt_full.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=/file/v2/products/APP_A-lineSkirt_full.jpg&height=300&width=300",
"/ccstore/v1/images/?source=/file/v2/products/APP_SportySkirt_full.jpg&height=300&width=300"
],
"derivedShippingSurchargeFrom":"defaultPriceGroup",
"derivedSalePriceFrom":"defaultPriceGroup",
"id":"xprod2535",
"childSKUs":[
{
"repositoryId":"xsku2535_1"
},
{
"repositoryId":"xsku2535_2"
},
{
"repositoryId":"xsku2535_3"
},
{
"repositoryId":"xsku2535_4"
},
{
"repositoryId":"xsku2535_5"
},
{
"repositoryId":"xsku2535_6"
}
],
"primaryMediumImageURL":"/ccstore/v1/images/?source=/file/v2/products/APP_A-lineSkirt_full.jpg&height=475&width=475",
"salePrice":null,
"fullImageURLs":[
"/ccstore/v1/images/?source=/file/v2/products/APP_A-lineSkirt_full.jpg",
"/ccstore/v1/images/?source=/file/v2/products/APP_SportySkirt_full.jpg"
],
"active":true,
"thumbImageURLs":[
"/ccstore/v1/images/?source=/file/v2/products/APP_A-lineSkirt_full.jpg&height=100&width=100",
"/ccstore/v1/images/?source=/file/v2/products/APP_SportySkirt_full.jpg&height=100&width=100"
],
"productImages":[
{
"repositoryId":"img_xprod2535_0"
},
{
"repositoryId":"img_xprod2535_1"
}
],
"route":"/product/xprod2535",
"mediumImageURLs":[
"/ccstore/v1/images/?source=/file/v2/products/APP_A-lineSkirt_full.jpg&height=475&width=475",
"/ccstore/v1/images/?source=/file/v2/products/APP_SportySkirt_full.jpg&height=475&width=475"
],
"repositoryId":"xprod2535",
"derivedListPriceFrom":"defaultPriceGroup",
"primarySourceImageURL":"/ccstore/v1/images/?source=/file/v2/products/APP_A-lineSkirt_full.jpg&height=300&width=300",
"shippingSurcharge":null,
"primarySmallImageURL":"/ccstore/v1/images/?source=/file/v2/products/APP_A-lineSkirt_full.jpg&height=300&width=300",
"sourceImageURLs":[
"/ccstore/v1/images/?source=/file/v2/products/APP_A-lineSkirt_full.jpg&height=300&width=300",
"/ccstore/v1/images/?source=/file/v2/products/APP_SportySkirt_full.jpg&height=300&width=300"
],
"minOrderLimit":1,
"avgCustRating":null,
"listPrice":null
}
],
"size":"Small",
"manufacturer_part_number":null,
"catalogs":[
],
"mediumImageURLs":[
],
"primarySourceImageURL":null,
"primarySmallImageURL":null,
"sourceImageURLs":[
],
"startDate":null,
"template":null,
"primaryThumbImageURL":null,
"replacementProducts":null,
"dynamicAttributes":{
},
"fixedReplacementProducts":[
],
"color":"Poppy",
"nonreturnable":false,
"displayName":"A-Line Skirt",
"description":null,
"primaryFullImageURL":null,
"salePrices":{
"defaultPriceGroup":null
},
"productListingSku":null,
"primaryLargeImageURL":null,
"derivedOnlineOnly":false,
"smallImageURLs":[
],
"derivedShippingSurchargeFrom":"defaultPriceGroup",
"itemAcl":null,
"shippingSurcharges":{
"defaultPriceGroup":null
},
"onSale":false,
"unit_of_measure":null,
"dynamicPropertyMapString":{
},
"siteIds":[
],
"computedCatalogs":[
],
"discountable":true,
"thumbnailImage":null,
"catalogsReplacementProducts":[
],
"salePriceStartDate":null,
"quantity":100,
"salePrice":null,
"fullImageURLs":[
],
"variantValuesOrder":{
},
"soldAsPackage":false,
"auxiliaryMedia":{
},
"derivedListPriceFrom":"defaultPriceGroup",
"repositoryId":"xsku2535_1",
"shippingSurcharge":null,
"fractionalQuantitiesAllowed":false,
"fulfiller":null,
"dynamicPropertyMapDouble":{
},
"configurable":false,
"listPrice":55
}
]
}
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|
|------------------|------------------|
|200020|Invalid query in 'q' parameter.|
|30015|SiteId passed in x-ccsite header is currently inactive|
|30014|SiteId passed in x-ccsite header is invalid or the site was deleted|
|50001|Internal Error.|
|26050|Variants Internal Error.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
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:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code