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
-
Type:
string
Catalog Id- q
Type:string
Contains SCIM query language- skuIds
Type:string
Comma separated multiple SKU IDS- storePriceListGroupId
Type:string
Store PriceList Group idHeader Parameters- x-ccsite
-
Type:
string
the site id on which the orders is laced
Response
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : listSkus_response- items
-
Type:
array
itemsAdditional Properties Allowed:The data for the sku.
Nested Schema : itemsNested Schema : itemsType:object
- barcode
-
Type:
number
The barcode - configurable
-
Type:
boolean
Whether the sku is configurable or not - fractionalQuantitiesAllowed
-
Type:
boolean
Whether fractional quantities are allowed - fullImageURLs
-
Type:
array
fullImageURLsAdditional Properties Allowed:The array of full image URLs - images
-
Type:
array
imagesAdditional Properties Allowed:Image URLs of SKU. - largeImage
-
Type:
string
large image path of the SKU - largeImageURLs
-
Type:
array
largeImageURLsAdditional Properties Allowed:Large Image URLs of SKU. - listPrice
-
Type:
number
The list price - listPrices
-
Type:
object
listPricesAdditional Properties Allowed:list prices of the product in respective price list groups - listVolumePrice
-
Type:
number
list volume price of the product - listVolumePrices
-
Type:
object
listVolumePricesAdditional Properties Allowed:list volume prices of the product in respective price list groups - mediumImageURLs
-
Type:
array
mediumImageURLsAdditional Properties Allowed:medium image urls path - model
-
Type:
string
The model property of SKU. - nonreturnable
-
Type:
string
Indicates whether the SKU is returnable or not. - parentProducts
-
Type:
array
parentProductsAdditional Properties Allowed:The list of parent products for the SKU. - primaryFullImageURL
-
Type:
string
Primary Full Image URL of SKU. - primaryLargeImageURL
-
Type:
string
Primary Large Image URL of SKU. - primaryMediumImageURL
-
Type:
string
primary medium image url path - primarySmallImageURL
-
Type:
string
Primary Small Image URL of SKU. - primarySourceImageURL
-
Type:
string
primary source image url path - primaryThumbImageURL
-
Type:
string
Primary Source Image URL of SKU. - productFamily
-
Type:
string
product family property of the SKU - productLine
-
Type:
string
product line of the SKU - productListingSku
-
Type:
object
productListingSkuAdditional Properties Allowed:product listing SKU property of the SKU - productVariantOptions
-
Type:
array
productVariantOptionsAdditional Properties Allowed:The selected options for the SKU. - quantity
-
Type:
integer
quantity of the SKU - repositoryId
-
Type:
string
repository id of the child SKU - salePrice
-
Type:
number
sale price of the SKU. - salePriceEndDate
-
Type:
string
sale price end date of the SKU - salePrices
-
Type:
object
salePricesAdditional Properties Allowed:sale prices of the product in respective price list groups - salePriceStartDate
-
Type:
string
sale price start date of the SKU - saleVolumePrice
-
Type:
number
The sale volume price - saleVolumePrices
-
Type:
object
saleVolumePricesAdditional Properties Allowed:Sale volume prices of the product in respective price list groups - smallImage
-
Type:
array
smallImageAdditional Properties Allowed:The array of small image URLs - smallImageURLs
-
Type:
array
smallImageURLsAdditional Properties Allowed:small image url paths - sourceImageURLs
-
Type:
array
sourceImageURLsAdditional Properties Allowed:Source Image URLs of SKU. - thumbImageURLs
-
Type:
array
thumbImageURLsAdditional Properties Allowed:Thumb Image URLs of SKU - thumbnailImage
-
Type:
string
The thumbanil image of the SKU - unitOfMeasure
-
Type:
string
unit of measure of the SKU - variantValuesOrder
-
Type:
object
variantValuesOrderAdditional 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:object
list prices of the product in respective price list groups- plg1
-
Type:
number
list price of the product in plg1 - plg2
-
Type:
number
list price of the product in plg2
Nested Schema : listVolumePricesType:object
list volume prices of the product in respective price list groups- plg1
-
Type:
number
list volume price of the product in plg1 - plg2
-
Type:
number
list volume price of the product in plg2
Nested Schema : mediumImageURLsNested Schema : parentProductsNested Schema : productListingSkuType:object
product listing SKU property of the SKUNested Schema : productVariantOptionsNested Schema : salePricesType:object
sale prices of the product in respective price list groups- plg1
-
Type:
number
sale price of the product in plg1 - plg2
-
Type:
number
sale price of the product in plg2
Nested Schema : saleVolumePricesType:object
Sale volume prices of the product in respective price list groups- plg1
-
Type:
number
Sale volume price of the product in plg1 - plg2
-
Type:
number
Sale volume price of the product in plg2
Nested Schema : smallImageNested Schema : smallImageURLsNested Schema : sourceImageURLsNested Schema : thumbImageURLsNested Schema : variantValuesOrderType:object
Object having various variant property as key and ordered values array as the value.Nested Schema : itemsType:object
- active
-
Type:
boolean
The active property of the product - avgCustRating
-
Type:
number
average customer rating for the product - brand
-
Type:
string
brand of the product - configurable
-
Type:
boolean
whether the product is configurable or not - CountryOfOrigin
-
Type:
string
the country of origin of the product - defaultProductListingSku
-
Type:
object
defaultProductListingSkuAdditional Properties Allowed:default SKU for the product - description
-
Type:
string
description of the product - displayName
-
Type:
string
The display name of the product - fractionalQuantitiesAllowed
-
Type:
boolean
Whether fractional quantities are allowed - fullImageURLs
-
Type:
array
fullImageURLsAdditional Properties Allowed:full image url paths - height
-
Type:
number
height of the product - id
-
Type:
string
id of the product - largeImageURLs
-
Type:
array
largeImageURLsAdditional Properties Allowed:The array of large image URLs - length
-
Type:
number
length of the product - listPrice
-
Type:
number
list price of the product - listPrices
-
Type:
object
listPricesAdditional Properties Allowed:list prices of the product in respective price list groups - listVolumePrice
-
Type:
number
list volume price of the product - listVolumePrices
-
Type:
object
listVolumePricesAdditional Properties Allowed:list volume prices of the product in respective price list groups - longDescription
-
Type:
string
long description of the product - mediumImageURLs
-
Type:
array
mediumImageURLsAdditional Properties Allowed:Medium Image URLs SKU. - nonreturnable
-
Type:
boolean
Indicates whether the product is returnable or not. - notForIndividualSale
-
Type:
boolean
Whether the product is not for individual sale - orderLimit
-
Type:
string
the order limit of the product - parentCategory
-
Type:
string
parent category of the product - primaryFullImageURL
-
Type:
string
primary full image url path - primaryImageAltText
-
Type:
string
Alternate text for the primary image of the product - primaryImageTitle
-
Type:
string
primary image title of the product - primaryLargeImageURL
-
Type:
string
primary large image url path - primaryMediumImageURL
-
Type:
string
Primary Medium Image URL ID of SKU. - primarySmallImageURL
-
Type:
string
Primary Small Image URL of product - primarySourceImageURL
-
Type:
string
primary source image url path - primaryThumbImageURL
-
Type:
string
primary thumb image url path - relatedProducts
-
Type:
string
related products - repositoryId
-
Type:
string
repository id of the product - route
-
Type:
string
route of the product - salePrice
-
Type:
number
The sale price of the product - salePrices
-
Type:
object
salePricesAdditional Properties Allowed:sale prices of the product in respective price list groups - saleVolumePrice
-
Type:
number
The sale volume price - saleVolumePrices
-
Type:
object
saleVolumePricesAdditional Properties Allowed:Sale volume prices of the product in respective price list groups - seoUrlSlugDerived
-
Type:
string
Derived from seoUrlSlug of the product if available, else derived from display name of the product. - shippingSurcharge
-
Type:
number
Extra handling costs for shipping the product. - shippingSurcharges
-
Type:
object
shippingSurchargesAdditional Properties Allowed:Extra handling costs for shipping the product in respective price list groups - smallImageURLs
-
Type:
array
smallImageURLsAdditional Properties Allowed:The urls of the small image. - sourceImageURLs
-
Type:
array
sourceImageURLsAdditional Properties Allowed:source image urls of the product - thumbImageURLs
-
Type:
array
thumbImageURLsAdditional Properties Allowed:Thumb Image URLs of product - type
-
Type:
string
type of the product - unitOfMeasure
-
Type:
string
unit of measure of the product - weight
-
Type:
number
weight - width
-
Type:
number
width of the product
Nested Schema : defaultProductListingSkuType:object
default SKU for the productNested Schema : fullImageURLsNested Schema : largeImageURLsNested Schema : listPricesType:object
list prices of the product in respective price list groups- plg1
-
Type:
number
list price of the product in plg1 - plg2
-
Type:
number
list price of the product in plg2
Nested Schema : listVolumePricesType:object
list volume prices of the product in respective price list groups- plg1
-
Type:
number
list volume price of the product in plg1 - plg2
-
Type:
number
list volume price of the product in plg2
Nested Schema : mediumImageURLsNested Schema : salePricesType:object
sale prices of the product in respective price list groups- plg1
-
Type:
number
sale price of the product in plg1 - plg2
-
Type:
number
sale price of the product in plg2
Nested Schema : saleVolumePricesType:object
Sale volume prices of the product in respective price list groups- plg1
-
Type:
number
Sale volume price of the product in plg1 - plg2
-
Type:
number
Sale volume price of the product in plg2
Nested Schema : shippingSurchargesType:object
Extra handling costs for shipping the product in respective price list groups- plg1
-
Type:
number
Extra handling costs for shipping the product in plg1 - plg2
-
Type:
number
Extra handling costs for shipping the product in plg2
Nested Schema : smallImageURLsNested Schema : sourceImageURLsNested Schema : thumbImageURLsNested Schema : itemsType:object
- optionName
-
Type:
string
The name of the option. - optionValue
-
Type:
string
The value of the option.
Example 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, "onlineOnly":false, "listPrices":{ "defaultPriceGroup":55 }, "type":"sku-WomensApparel", "largeImageURLs":[ ], "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, "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", "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" ], "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", "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" ], "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, "smallImageURLs":[ ], "itemAcl":null, "onSale":false, "unit_of_measure":null, "dynamicPropertyMapString":{ }, "siteIds":[ ], "computedCatalogs":[ ], "discountable":true, "thumbnailImage":null, "catalogsReplacementProducts":[ ], "salePriceStartDate":null, "quantity":100, "salePrice":null, "fullImageURLs":[ ], "variantValuesOrder":{ }, "auxiliaryMedia":{ }, "repositoryId":"xsku2535_1", "shippingSurcharge":0, "fractionalQuantitiesAllowed":false, "fulfiller":null, "dynamicPropertyMapDouble":{ }, "configurable":false, "listPrice":55 } ] }
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| |------------------|------------------| |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.|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
errorsAdditional Properties Allowed:An 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": 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, "onlineOnly": false, "listPrices": {"defaultPriceGroup": 55}, "type": "sku-WomensApparel", "largeImageURLs": [], "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, "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", "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" ], "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", "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" ], "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, "smallImageURLs": [], "itemAcl": null, "onSale": false, "unit_of_measure": null, "dynamicPropertyMapString": {}, "siteIds": [], "computedCatalogs": [], "discountable": true, "thumbnailImage": null, "catalogsReplacementProducts": [], "salePriceStartDate": null, "quantity": 100, "salePrice": null, "fullImageURLs": [], "variantValuesOrder": {}, "auxiliaryMedia": {}, "repositoryId": "xsku2535_1", "shippingSurcharge": 0, "fractionalQuantitiesAllowed": false, "fulfiller": null, "dynamicPropertyMapDouble": {}, "configurable": false, "listPrice": 55 }] }