listSkus
get
/ccadmin/v1/skus
List Skus. Gets a list of SKUs and its properties. Optionally, search for SKUs in the given catalog by performing a case-insensitive, partial-match on the display name or ID. Optionally, takes the x-ccasset-language header to get translated content in another language.
To get the list of SKUs by SKU ids, use skuIds parameter.
Request
Supported Media Types
- application/json
Query Parameters
- catalogId
-
Type:
string
ID of the catalog.- expand
Type:boolean
Boolean indicating whether to return a larger set of SKU properties. Default value is false.- includePrices
Type:boolean
Boolean flag to determine whether to include price maps for the skus in the response. Default value is true.- name
Type:string
Partial displayName or id of a SKU to use for search.- pageResults
Type:boolean
Return response with paginated pattern, to be used with query param skuIds. Default value is false.- priceListGroupId
Type:string
Price list group id for adding the prices to the SKU in the response.- showInactiveSkus
Type:boolean
Boolean flag to determine whether to include inactive SKUs as part of the result. Default value is true.- showSkuBundles
Type:boolean
Boolean flag to determine whether to include SKU bundles as part of the result. Default value is true.- showTranslations
Type:boolean
Boolean indicating if the translations property should be returned for each item in the response. Default value is false.- skuIds
Type:string
SKU IDs to list.Header Parameters- X-CCAsset-Language
-
Type:
string
The asset language of the request
Response
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : listSkus_responseNested Schema : itemsType:object
- auxiliaryMedia
-
Type:
object
auxiliaryMediaauxiliaryMedia - barcode
-
Type:
string
barcode - catalogs
-
Type:
array
catalogscatalogs - catalogsReplacementProducts
-
Type:
array
catalogsReplacementProductscatalogs replacement products - color
-
Type:
string
color - computedCatalogs
-
Type:
array
computedCatalogscomputed catalogs - configurable
-
Type:
boolean
Indicates whether a sku is configurable - creationDate
-
Type:
string
creationDate - derivedCatalogs
-
Type:
array
derivedCatalogsDerived catalogs - description
-
Type:
string
description - discountable
-
Type:
boolean
discountable - displayName
-
Type:
string
displayName - dynamicPropertyMapLong
-
Type:
object
dynamicPropertyMapLongdynamicPropertyMapLong - endDate
-
Type:
string
endDate - fractionalQuantitiesAllowed
-
Type:
boolean
fractionalQuantitiesAllowed - fulfiller
-
Type:
string
fulfiller - fullImageURLs
-
Type:
array
fullImageURLsfullImageURLs - id
-
Type:
string
id - itemAcl
-
Type:
string
item Acl - largeImage
-
Type:
object
largeImagelarge image - largeImageURLs
-
Type:
array
largeImageURLslargeImageURLs - listPrice
-
Type:
number
listPrice - listPrices
-
Type:
object
listPriceslistPrices - manufacturer_part_number
-
Type:
string
manufacturer_part_number - mediumImageURLs
-
Type:
array
mediumImageURLsmediumImageURLs - nonreturnable
-
Type:
boolean
nonreturnable - onlineOnly
-
Type:
boolean
onlineOnly - onSale
-
Type:
boolean
onSale - parentProducts
-
Type:
array
parentProductsarray of parent products - primaryFullImageURL
-
Type:
string
primaryFullImageURL - primaryLargeImageURL
-
Type:
string
primaryLargeImageURL - primaryMediumImageURL
-
Type:
string
primaryMediumImageURL - primarySmallImageURL
-
Type:
string
primarySmallImageURL - primarySourceImageURL
-
Type:
string
primarySourceImageURL - primaryThumbImageURL
-
Type:
string
primaryThumbImageURL - productListingSku
-
Type:
string
productListingSku - quantity
-
Type:
integer
quantity - repositoryId
-
Type:
string
repositoryId - salePrice
-
Type:
number
salePrice - salePriceEndDate
-
Type:
string
salePriceEndDate - salePrices
-
Type:
object
salePricessalePrices - salePriceStartDate
-
Type:
string
salePriceStartDate - shippingSurcharge
-
Type:
number
shippingSurcharge - siteIds
-
Type:
string
siteIds - size
-
Type:
string
size - smallImage
-
Type:
object
smallImageSmall image - smallImageURLs
-
Type:
array
smallImageURLssmallImageURLs - sourceImageURLs
-
Type:
array
sourceImageURLssourceImageURLs - startDate
-
Type:
string
startDate - thumbImageURLs
-
Type:
array
thumbImageURLsthumbImageURLs - thumbnailImage
-
Type:
object
thumbnailImagethumbnailImage - translations
-
Type:
object
translationstranslations - type
-
Type:
string
type - unit_of_measure
-
Type:
string
unit_of_measure - unitOfMeasure
-
Type:
string
unitOfMeasure - variant
-
Type:
array
variantProduct Variant Information. - variantOptions
-
Type:
string
variantOptions - version
-
Type:
integer
version - wholesalePrice
-
Type:
number
wholesalePrice
Nested Schema : auxiliaryMediaType:object
auxiliaryMediaNested Schema : catalogsReplacementProductsNested Schema : dynamicPropertyMapLongType:object
dynamicPropertyMapLong- sku-WomensApparel_color
-
Type:
integer
sku-WomensApparel_color - sku-WomensApparel_size
-
Type:
integer
sku-WomensApparel_size
Nested Schema : fullImageURLsNested Schema : largeImageNested Schema : largeImageURLsNested Schema : listPricesNested Schema : mediumImageURLsNested Schema : salePricesNested Schema : smallImageNested Schema : smallImageURLsNested Schema : sourceImageURLsNested Schema : thumbImageURLsNested Schema : thumbnailImageNested Schema : translationsNested Schema : itemsType:object
- repositoryId
-
Type:
string
repository Id
Nested Schema : itemsType:object
- repositoryId
-
Type:
string
repository Id
Nested Schema : itemsType:object
- repositoryId
-
Type:
string
repository Id
Nested Schema : itemsType:object
- repositoryId
-
Type:
string
repository Id
Nested Schema : itemsType:object
- active
-
Type:
boolean
active - avgCustRating
-
Type:
string
avgCustRating - childSKUs
-
Type:
array
childSKUschildSKUs - description
-
Type:
string
description - displayName
-
Type:
string
displayName - fullImageURLs
-
Type:
array
fullImageURLsfullImageURLs - id
-
Type:
string
id - largeImage
-
Type:
object
largeImagelarge image - largeImageURLs
-
Type:
array
largeImageURLslargeImageURLs - listPrice
-
Type:
number
listPrice - longDescription
-
Type:
string
longDescription - mediumImageURLs
-
Type:
array
mediumImageURLsmediumImageURLs - orderLimit
-
Type:
integer
orderLimit - primaryFullImageURL
-
Type:
string
primaryFullImageURL - primaryLargeImageURL
-
Type:
string
primaryLargeImageURL - primaryMediumImageURL
-
Type:
string
primaryMediumImageURL - primarySmallImageURL
-
Type:
string
primarySmallImageURL - primarySourceImageURL
-
Type:
string
primarySourceImageURL - primaryThumbImageURL
-
Type:
string
primaryThumbImageURL - productImages
-
Type:
array
productImagesproductImages - repositoryId
-
Type:
string
repositoryId - route
-
Type:
string
route - salePrice
-
Type:
number
salePrice - shippingSurcharge
-
Type:
number
shippingSurcharge - smallImage
-
Type:
object
smallImageSmall image - smallImageURLs
-
Type:
array
smallImageURLssmallImageURLs - sourceImageURLs
-
Type:
array
sourceImageURLssourceImageURLs - thumbImageURLs
-
Type:
array
thumbImageURLsthumbImageURLs
Nested Schema : fullImageURLsNested Schema : largeImageNested Schema : largeImageURLsNested Schema : mediumImageURLsNested Schema : smallImageNested Schema : smallImageURLsNested Schema : sourceImageURLsNested Schema : thumbImageURLsNested Schema : itemsType:object
- repositoryId
-
Type:
string
repositoryId
Nested Schema : itemsType:object
- repositoryId
-
Type:
string
repositoryId
Nested Schema : 1Nested Schema : 27Nested Schema : itemsType:object
- optionName
-
Type:
string
Name of the Dynamic attribute. - optionValue
-
Type:
string
Value of the Dynamic attribute.
Nested Schema : itemsType:object
- href
-
Type:
string
href - rel
-
Type:
string
rel
Nested Schema : itemsType:object
- order
-
Type:
string
order - property
-
Type:
string
property
Example application/json
{ "total":4, "totalResults":4, "offset":0, "limit":250, "links":[ { "rel":"self", "href":"http://localhost:9080/ccadminui/v1/skus?name=sku1000&pageResults=true" } ], "sort":[ { "property":"displayName", "order":"asc" } ], "items":[ { "productFamily":null, "dynamicPropertyMapLong":{ }, "primaryThumbImageURL":null, "bundleLinks":[ ], "largeImage":null, "smallImage":null, "listVolumePrice":null, "displayName":null, "salePrices":{ "defaultPriceGroup":null }, "primaryFullImageURL":null, "listPrices":{ "defaultPriceGroup":199.99 }, "productListingSku":null, "largeImageURLs":[ ], "productLine":null, "listVolumePrices":{ "defaultPriceGroup":null }, "primaryLargeImageURL":null, "smallImageURLs":[ ], "model":null, "thumbnailImage":null, "barcode":"200000001995", "saleVolumePrices":{ "defaultPriceGroup":null }, "salePriceEndDate":null, "saleVolumePrice":null, "salePriceStartDate":null, "images":[ ], "quantity":null, "unitOfMeasure":null, "salePrice":null, "primaryMediumImageURL":null, "fullImageURLs":[ ], "dynamicPropertyMapBigString":{ }, "active":true, "thumbImageURLs":[ ], "mediumImageURLs":[ ], "repositoryId":"sku10005", "primarySourceImageURL":null, "primarySmallImageURL":null, "sourceImageURLs":[ ], "listPrice":199.99, "configurable":false }, { "productFamily":null, "dynamicPropertyMapLong":{ }, "primaryThumbImageURL":null, "bundleLinks":[ ], "largeImage":null, "smallImage":null, "listVolumePrice":null, "displayName":null, "salePrices":{ "defaultPriceGroup":null }, "primaryFullImageURL":null, "listPrices":{ "defaultPriceGroup":199.99 }, "productListingSku":null, "largeImageURLs":[ ], "productLine":null, "listVolumePrices":{ "defaultPriceGroup":null }, "primaryLargeImageURL":null, "smallImageURLs":[ ], "model":null, "thumbnailImage":null, "barcode":"200000002008", "saleVolumePrices":{ "defaultPriceGroup":null }, "salePriceEndDate":null, "saleVolumePrice":null, "salePriceStartDate":null, "images":[ ], "quantity":null, "unitOfMeasure":null, "salePrice":null, "primaryMediumImageURL":null, "fullImageURLs":[ ], "dynamicPropertyMapBigString":{ }, "active":true, "thumbImageURLs":[ ], "mediumImageURLs":[ ], "repositoryId":"sku10007", "primarySourceImageURL":null, "primarySmallImageURL":null, "sourceImageURLs":[ ], "listPrice":199.99, "configurable":false }, { "productFamily":null, "dynamicPropertyMapLong":{ }, "primaryThumbImageURL":null, "bundleLinks":[ ], "largeImage":null, "smallImage":null, "listVolumePrice":null, "displayName":null, "salePrices":{ "defaultPriceGroup":null }, "primaryFullImageURL":null, "listPrices":{ "defaultPriceGroup":9.99 }, "productListingSku":null, "largeImageURLs":[ ], "productLine":null, "listVolumePrices":{ "defaultPriceGroup":null }, "primaryLargeImageURL":null, "smallImageURLs":[ ], "model":null, "thumbnailImage":null, "barcode":"200000002015", "saleVolumePrices":{ "defaultPriceGroup":null }, "salePriceEndDate":null, "saleVolumePrice":null, "salePriceStartDate":null, "images":[ ], "quantity":null, "unitOfMeasure":null, "salePrice":null, "primaryMediumImageURL":null, "fullImageURLs":[ ], "dynamicPropertyMapBigString":{ }, "active":true, "thumbImageURLs":[ ], "mediumImageURLs":[ ], "repositoryId":"sku10008", "primarySourceImageURL":null, "primarySmallImageURL":null, "sourceImageURLs":[ ], "listPrice":9.99, "configurable":false }, { "productFamily":null, "dynamicPropertyMapLong":{ }, "primaryThumbImageURL":null, "bundleLinks":[ ], "largeImage":null, "smallImage":null, "listVolumePrice":null, "displayName":null, "salePrices":{ "defaultPriceGroup":null }, "primaryFullImageURL":null, "listPrices":{ "defaultPriceGroup":19.99 }, "productListingSku":null, "largeImageURLs":[ ], "productLine":null, "listVolumePrices":{ "defaultPriceGroup":null }, "primaryLargeImageURL":null, "smallImageURLs":[ ], "model":null, "thumbnailImage":null, "barcode":"200000002022", "saleVolumePrices":{ "defaultPriceGroup":null }, "salePriceEndDate":null, "saleVolumePrice":null, "salePriceStartDate":null, "images":[ ], "quantity":null, "unitOfMeasure":null, "salePrice":null, "primaryMediumImageURL":null, "fullImageURLs":[ ], "dynamicPropertyMapBigString":{ }, "active":true, "thumbImageURLs":[ ], "mediumImageURLs":[ ], "repositoryId":"sku10009", "primarySourceImageURL":null, "primarySmallImageURL":null, "sourceImageURLs":[ ], "listPrice":19.99, "configurable":false } ], "___etag___":"eyJ2ZXJzaW9uIjoxLCJ1cmkiOiJza3VzIiwiaGFzaCI6Imk2VFFPUT09In0=" }
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| |------------------|------------------| |20038|Cannot build the query.| |20144|Cannot get catalog view.| |20055|The SKU view does not support queries containing parameters.| |25013|price List InternalError| |200105|Catalog not found in the repository| |200104|Catalog ID is invalid or not associated with current profile.|BodyRoot Schema : errorModelType: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 : errorsNested Schema : itemsType: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:
{ "total": 4, "totalResults": 4, "offset": 0, "limit": 250, "links": [{ "rel": "self", "href": "http://localhost:9080/ccadminui/v1/skus?name=sku1000&pageResults=true" }], "sort": [{ "property": "displayName", "order": "asc" }], "items": [ { "productFamily": null, "dynamicPropertyMapLong": {}, "primaryThumbImageURL": null, "bundleLinks": [], "largeImage": null, "smallImage": null, "listVolumePrice": null, "displayName": null, "salePrices": {"defaultPriceGroup": null}, "primaryFullImageURL": null, "listPrices": {"defaultPriceGroup": 199.99}, "productListingSku": null, "largeImageURLs": [], "productLine": null, "listVolumePrices": {"defaultPriceGroup": null}, "primaryLargeImageURL": null, "smallImageURLs": [], "model": null, "thumbnailImage": null, "barcode": "200000001995", "saleVolumePrices": {"defaultPriceGroup": null}, "salePriceEndDate": null, "saleVolumePrice": null, "salePriceStartDate": null, "images": [], "quantity": null, "unitOfMeasure": null, "salePrice": null, "primaryMediumImageURL": null, "fullImageURLs": [], "dynamicPropertyMapBigString": {}, "active": true, "thumbImageURLs": [], "mediumImageURLs": [], "repositoryId": "sku10005", "primarySourceImageURL": null, "primarySmallImageURL": null, "sourceImageURLs": [], "listPrice": 199.99, "configurable": false }, { "productFamily": null, "dynamicPropertyMapLong": {}, "primaryThumbImageURL": null, "bundleLinks": [], "largeImage": null, "smallImage": null, "listVolumePrice": null, "displayName": null, "salePrices": {"defaultPriceGroup": null}, "primaryFullImageURL": null, "listPrices": {"defaultPriceGroup": 199.99}, "productListingSku": null, "largeImageURLs": [], "productLine": null, "listVolumePrices": {"defaultPriceGroup": null}, "primaryLargeImageURL": null, "smallImageURLs": [], "model": null, "thumbnailImage": null, "barcode": "200000002008", "saleVolumePrices": {"defaultPriceGroup": null}, "salePriceEndDate": null, "saleVolumePrice": null, "salePriceStartDate": null, "images": [], "quantity": null, "unitOfMeasure": null, "salePrice": null, "primaryMediumImageURL": null, "fullImageURLs": [], "dynamicPropertyMapBigString": {}, "active": true, "thumbImageURLs": [], "mediumImageURLs": [], "repositoryId": "sku10007", "primarySourceImageURL": null, "primarySmallImageURL": null, "sourceImageURLs": [], "listPrice": 199.99, "configurable": false }, { "productFamily": null, "dynamicPropertyMapLong": {}, "primaryThumbImageURL": null, "bundleLinks": [], "largeImage": null, "smallImage": null, "listVolumePrice": null, "displayName": null, "salePrices": {"defaultPriceGroup": null}, "primaryFullImageURL": null, "listPrices": {"defaultPriceGroup": 9.99}, "productListingSku": null, "largeImageURLs": [], "productLine": null, "listVolumePrices": {"defaultPriceGroup": null}, "primaryLargeImageURL": null, "smallImageURLs": [], "model": null, "thumbnailImage": null, "barcode": "200000002015", "saleVolumePrices": {"defaultPriceGroup": null}, "salePriceEndDate": null, "saleVolumePrice": null, "salePriceStartDate": null, "images": [], "quantity": null, "unitOfMeasure": null, "salePrice": null, "primaryMediumImageURL": null, "fullImageURLs": [], "dynamicPropertyMapBigString": {}, "active": true, "thumbImageURLs": [], "mediumImageURLs": [], "repositoryId": "sku10008", "primarySourceImageURL": null, "primarySmallImageURL": null, "sourceImageURLs": [], "listPrice": 9.99, "configurable": false }, { "productFamily": null, "dynamicPropertyMapLong": {}, "primaryThumbImageURL": null, "bundleLinks": [], "largeImage": null, "smallImage": null, "listVolumePrice": null, "displayName": null, "salePrices": {"defaultPriceGroup": null}, "primaryFullImageURL": null, "listPrices": {"defaultPriceGroup": 19.99}, "productListingSku": null, "largeImageURLs": [], "productLine": null, "listVolumePrices": {"defaultPriceGroup": null}, "primaryLargeImageURL": null, "smallImageURLs": [], "model": null, "thumbnailImage": null, "barcode": "200000002022", "saleVolumePrices": {"defaultPriceGroup": null}, "salePriceEndDate": null, "saleVolumePrice": null, "salePriceStartDate": null, "images": [], "quantity": null, "unitOfMeasure": null, "salePrice": null, "primaryMediumImageURL": null, "fullImageURLs": [], "dynamicPropertyMapBigString": {}, "active": true, "thumbImageURLs": [], "mediumImageURLs": [], "repositoryId": "sku10009", "primarySourceImageURL": null, "primarySmallImageURL": null, "sourceImageURLs": [], "listPrice": 19.99, "configurable": false } ], "___etag___": "eyJ2ZXJzaW9uIjoxLCJ1cmkiOiJza3VzIiwiaGFzaCI6Imk2VFFPUT09In0=" }