listProducts
get
/ccstore/v1/products
List Products. Get a list of products. Optionally takes the x-ccasset-language headers to get translated content in another language.Also it can have optional X-CCOrganization header which is a JSON field to specify current Organization id of logged in user. None of the image URLS are encoded.
Request
Supported Media Types
- application/json
Query Parameters
-
catalogId: string
the catalog ID for the site
-
categoryId: string
the category ID
-
continueOnMissingProduct: boolean
flag to indicate if invalid products has to be ignored. Default value is false.
-
includeChildSKUsListingIds: boolean
boolean flag defaults to false, set to true if the sku listing id is required for SKUs in the response
-
includeChildren: boolean
flag to include children of categories or not
-
limit: integer
The number of items per block
-
minimalPrices: boolean
boolean flag defaults to false, set to true if only a price range rather than all prices are required for the response
-
offset: integer
startingIndex the index of the first record to load
-
productIds: string
the list of product IDs
-
q: string
A SCIM filter string for selecting a subset of all products. See [https://tools.ietf.org/html/draft-ietf-scim-api-12#section-3.2.2](https://tools.ietf.org/html/draft-ietf-scim-api-12#section-3.2.2)section 3.2.2.2 of the SCIM specification for details on the SCIM filter format. Examples: Get all products whose displayName contains shirt: q=displayName co "shirt" Get all products with an orderLimit between 5 and 10: q=orderLimit gt 5 and orderLimit lt 10 Text, date and time values appearing in SCIM filters should be quoted, with date and time values using ISO-8601 format. Numeric and boolean values should not be quoted. The following base product properties can be used in a q query: * CountryOfOrigin * active * avgCustRating * brand * childSKUs * defaultProductListingSku * derivedDirectCatalogs * description * displayName * height * id * length * longDescription * notForIndividualSale * orderLimit * parentCategories * relatedArticles * relatedMediaContent * type * unitOfMeasure * weight * width Additionally, custom product properties may also be used in a q query.
-
sort: string
Sort Option id: Sort order
-
storePriceListGroupId: string
the price list group id for which product prices are to be returned
-
totalExpandedResults: boolean
flag to include count of total products with listing variant expansion
-
totalResults: boolean
flag to include count of total products without expansion
-
withPrices: boolean
boolean flag defaults to true, set to false if prices are not required in the response
Header Parameters
-
X-CCAsset-Language: string
The asset language of the request
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : listProducts_response
Type:
Show Source
object
-
items:
array items
Array having various products.
-
limit:
integer
Limit of number of products.
-
offset:
integer
Offset of product inventory.
-
sort:
array sort
Array having the order and property of product.
-
total:
integer
Total number of products. Deprecated.
-
totalResults:
integer
Total number of products.
Nested Schema : items
Type:
Show Source
object
-
addOnProducts:
array addOnProducts
Array of AddOn products.
-
avgCustRating:
string
Average customer rating of the product.
-
childSKUs:
array childSKUs
Array having various properties of child SKU.
-
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 of the product.
-
displayName:
string
Display name of the product.
-
fullImageURLs:
array fullImageURLs
Full image URLs of the product.
-
id:
string
ID of the product.
-
largeImage:
object largeImage
Array having repository ID and URL of the large image of SKU.
-
largeImageURLs:
array largeImageURLs
Large image URLs of the product.
-
lastModifiedDate:
string
Date and timestamp when the item is modified recently.
-
listPrice:
number
List price of the product in the default price group.
-
listPrices:
object listPrices
Object with price group IDs as keys and list prices as values.
-
longDescription:
string
Long description of the product.
-
mediumImageURLs:
array mediumImageURLs
Medium image URLs of the product.
-
minOrderLimit:
string
Minimum Order limit of the product.
-
nonreturnable:
boolean
Tells whether the product is returnable or not
-
onlineOnly:
boolean
Tells whether the product is online.
-
orderLimit:
string
Maximum Order limit of the product.
-
primaryFullImageURL:
string
Primary full image URL of the product.
-
primaryLargeImageURL:
string
Primary large image URL of the product.
-
primaryMediumImageURL:
string
Primary medium image URL of the product.
-
primarySmallImageURL:
string
Primary small image URL of the product.
-
primarySourceImageURL:
string
Primary source image URL of the product.
-
primaryThumbImageURL:
string
Primary thumb image URL of the product.
-
productImages:
array productImages
Array of product images.
-
productNumber:
string
Product number of the product.
-
productVariantOptions:
array productVariantOptions
Objects containing product's variant options details if available for the product.
-
repositoryId:
string
Repository id of the product.
-
route:
string
Route of the product.
-
salePrice:
number
Sale price of the product in the default price group.
-
salePrices:
object salePrices
Object with price group IDs as keys and sale prices as values.
-
secondaryCurrencyShippingSurcharge:
string
In case of mix currency, if secondaryCurrencyCode is sent in request, shipping amount will be calculated according to given secondaryCurrencyCode. Else if payShippingInSecondaryCurrency flag is enabled in site repository, shipping amount will be calculated according to site level secondaryCurrencyCode
-
shippingSurcharge:
number
Extra handling cost while shipping the product, in the default price group.
-
shippingSurcharges:
object shippingSurcharges
Object with price group IDs as keys and shipping surcharges as values.
-
smallImage:
object smallImage
Array having repository ID and URL of small image of the SKU.
-
smallImageURLs:
string
Small image URLs of the product.
-
sourceImageURLs:
array sourceImageURLs
Source image URLs of the product.
-
thumbImageURLs:
array thumbImageURLs
Thumb image URLs of the product.
Nested Schema : addOnProducts
Type:
array
Array of AddOn products.
Show Source
-
Array of:
object items
AddOn product.
Nested Schema : largeImage
Type:
object
Array having repository ID and URL of the large image of SKU.
Show Source
-
repositoryId:
string
Repository ID of SKU.
-
url:
string
URL of SKU.
Nested Schema : listPrices
Type:
object
Object with price group IDs as keys and list prices as values.
Show Source
-
Price Group ID 1:
number
List price of product in price group 1.
-
Price Group ID 2:
number
List price of product in price group 2.
Nested Schema : productVariantOptions
Type:
array
Objects containing product's variant options details if available for the product.
Show Source
Nested Schema : salePrices
Type:
object
Object with price group IDs as keys and sale prices as values.
Show Source
-
Price Group ID 1:
number
Sale price of product in price group 1.
-
Price Group ID 2:
number
Sale price of product in price group 2.
Nested Schema : shippingSurcharges
Type:
object
Object with price group IDs as keys and shipping surcharges as values.
Show Source
-
Price Group ID 1:
number
Shipping surcharge of product in price group 1.
-
Price Group ID 2:
number
Shipping surcharge of product in price group 2.
Nested Schema : smallImage
Type:
object
Array having repository ID and URL of small image of the SKU.
Show Source
-
repositoryId:
string
Repository ID of SKU.
-
url:
string
URL of SKU.
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
-
configurationMetadata:
array configurationMetadata
Array of configuration attributes associated with the SKU.
-
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
-
dynamicPropertyMapLong:
integer
Dynamic property map long of the SKU.
-
DynamicSKUProperty:
string
Dynamic Properties of SKU.
-
fullImageURLs:
array fullImageURLs
Full Image URLs of SKU.
-
id:
string
SKU id
-
largeImage:
integer
Large image of the SKU.
-
largeImageURLs:
array largeImageURLs
Large Image URLs of SKU.
-
lastModifiedDate:
string
Date and timestamp when the item is modified recently.
-
listingSKUId:
string
It contains listing variant's repository id, this field will be available if query param has includeChildSKUsListingIds as true and if product is style based one.
-
listPrice:
integer
List price of the SKU.
-
mediumImageURLs:
array mediumImageURLs
Medium Image URLs SKU.
-
nonreturnable:
boolean
Tells whether the sku is returnable or not
-
primaryLargeImageURL:
string
Primary Large Image URL of SKU.
-
primaryMediumImageURL:
string
Primary Medium Image URL ID of SKU.
-
primarySmallImageURL:
string
Primary Small Image URL of SKU.
-
primarySourceImageURL:
string
Primary Source Image URL of SKU.
-
primaryThumbImageURL:
string
Primary Source Image URL of SKU.
-
quantity:
integer
Quantity of the SKU.
-
repositoryId:
string
Repository ID of the SKU.
-
salePrice:
string
Sale price of the SKU.
-
salePriceEndDate:
integer
Sale price end date of the SKU.
-
salePriceStartDate:
string
Sale price start date of the SKU.
-
shippingSurcharge:
integer
Extra handling costs while shipping the product.
-
shippingSurcharges:
object shippingSurcharges
Extra handling costs for shipping the product in respective price list groups
-
smallImage:
integer
Small image of the SKU.
-
smallImageURLs:
array smallImageURLs
Small Image URLs of SKU.
-
sourceImageURLs:
array sourceImageURLs
Source Image URLs of SKU.
-
thumbImageURLs:
array thumbImageURLs
Thumb Image URLs of SKU.
-
thumbnailImage:
string
Thumbnail image of the SKU.
Nested Schema : configurationMetadata
Type:
array
Array of configuration attributes associated with the SKU.
Show Source
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 : 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
-
metadata:
object metadata
Seo meta info for product.
-
name:
string
The name of product image
-
path:
string
The path of the image
-
repositoryId:
string
The repository Id of the product image
-
tags:
array tags
The array of product image tags
-
url:
string
The url of the product image
Nested Schema : metadata
Type:
object
Seo meta info for product.
Show Source
-
altText:
string
The alt text of the image
-
titleText:
string
The title text of the image
Nested Schema : items
Type:
Show Source
object
-
listingVariant:
boolean
Whether listing should be done based on this variant.
-
mapKeyPropertyAttribute:
string
map key property
-
optionId:
string
option Id
-
optionName:
string
option Name
-
optionValueMap:
object optionValueMap
Additional Properties Allowed: additionalPropertiesmapping of all option values with corresponding option value ids
-
variantBasedDisplay:
boolean
Whether this variant based display should be allowed.
Nested Schema : optionValueMap
Type:
object
Additional Properties Allowed
Show Source
mapping of all option values with corresponding option value ids
Show Source
-
optionValue:
string
Option Value
-
optionValueId:
integer
Option Value Id
Nested Schema : items
Type:
Show Source
object
-
order:
string
Order of listing in product inventory.
-
property:
string
Display name as a product property.
Example Response (application/json)
{
"total":92,
"totalResults":92,
"totalExpandedResults":92,
"limit":250,
"sort":[
{
"property":"displayName",
"order":"asc"
}
],
"items":[
{
"longDescription":"It's Samantha Baker's Sweet Sixteen and no one in her family remembers\n the important occasion. John Hughes, the writer of National Lampoon's Vacation, shows how coming-of-age\n can be full of surprises in this warm-hearted teenage comedy starring Molly Ringwald. She's your average\n teen, enduring creepy freshmen, spoiled siblings, confused parents and the Big Blonde on Campus who\n stands between her and the boy of her dreams. But wait...the day isn't over yet! This sparkling film\n features a dynamic score, and outstanding performances by Paul Dooley, Emmy winner Blanche Baker and\n Oscar nominee Justin Henry.\n ",
"primaryThumbImageURL":"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg&height=100&width=100",
"largeImage":null,
"smallImage":null,
"nonreturnable":false,
"displayName":"16 Candles",
"orderLimit":null,
"description":"A really great movie that you should not miss.",
"onlineOnly":true,
"primaryFullImageURL":"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg",
"listPrices":null,
"salePrices":null,
"productVariantOptions":[
{
"listingVariant":false,
"optionValueMap":{
"Silver":1,
"Neon":2,
"Black":0
},
"variantBasedDisplay":false,
"optionId":"color",
"mapKeyPropertyAttribute":"sku-camcorder_color",
"optionName":"color"
}
],
"largeImageURLs":[
"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg&height=940&width=940"
],
"primaryLargeImageURL":"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg&height=940&width=940",
"addOnProducts":[
{
"repositoryId":"cp10003",
"addOnOptions":[
{
"product":{
"displayName":"Birthday Gift Wrap",
"repositoryId":"BirthdayGiftWrap",
"active":true
},
"repositoryId":"co10005",
"sku":{
"displayName":"option1",
"repositoryId":"option1",
"active":true
}
},
{
"product":{
"displayName":"Birthday Gift Wrap",
"repositoryId":"BirthdayGiftWrap",
"active":true
},
"repositoryId":"co10006",
"sku":{
"displayName":"option2",
"repositoryId":"option2",
"active":true
}
}
]
}
],
"derivedShippingSurchargeFrom":"defaultPriceGroup",
"smallImageURLs":[
"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg&height=300&width=300"
],
"derivedSalePriceFrom":"defaultPriceGroup",
"shippingSurcharges":null,
"id":"Product_19Cxy",
"childSKUs":[
{
"dynamicPropertyMapLong":{
},
"primaryThumbImageURL":null,
"largeImage":null,
"smallImage":null,
"nonreturnable":false,
"listPrices":null,
"salePrices":null,
"primaryFullImageURL":null,
"configurationMetadata":[
],
"productListingSku":null,
"largeImageURLs":[
],
"primaryLargeImageURL":null,
"derivedOnlineOnly":true,
"derivedShippingSurchargeFrom":"defaultPriceGroup",
"smallImageURLs":[
],
"derivedSalePriceFrom":"defaultPriceGroup",
"shippingSurcharges":{
"defaultPriceGroup":null
},
"thumbnailImage":null,
"salePriceEndDate":null,
"salePriceStartDate":null,
"images":[
],
"salePrice":4.99,
"primaryMediumImageURL":null,
"fullImageURLs":[
],
"active":true,
"thumbImageURLs":[
],
"mediumImageURLs":[
],
"derivedListPriceFrom":"defaultPriceGroup",
"repositoryId":"Sku_19Dxy",
"DynamicSkuProperty2":"value2",
"shippingSurcharge":null,
"primarySourceImageURL":null,
"DynamicSkuProperty1":"value1",
"primarySmallImageURL":null,
"sourceImageURLs":[
],
"listPrice":12.99
},
{
"dynamicPropertyMapLong":{
},
"salePriceStartDate":null,
"largeImage":null,
"smallImage":null,
"salePrice":null,
"nonreturnable":false,
"active":true,
"listPrices":null,
"salePrices":null,
"configurationMetadata":[
],
"derivedShippingSurchargeFrom":"defaultPriceGroup",
"derivedSalePriceFrom":"defaultPriceGroup",
"derivedListPriceFrom":"defaultPriceGroup",
"repositoryId":"Sku_19Dxyi",
"shippingSurcharges":{
"defaultPriceGroup":null
},
"shippingSurcharge":null,
"thumbnailImage":null,
"salePriceEndDate":null,
"listPrice":null
},
{
"dynamicPropertyMapLong":{
},
"salePriceStartDate":null,
"largeImage":null,
"smallImage":null,
"salePrice":8.99,
"nonreturnable":false,
"active":true,
"listPrices":null,
"salePrices":null,
"configurationMetadata":[
],
"derivedShippingSurchargeFrom":"defaultPriceGroup",
"derivedSalePriceFrom":"defaultPriceGroup",
"derivedListPriceFrom":"defaultPriceGroup",
"repositoryId":"Sku_19Dxyii",
"shippingSurcharges":{
"defaultPriceGroup":null
},
"shippingSurcharge":null,
"thumbnailImage":null,
"salePriceEndDate":null,
"listPrice":19.99
}
],
"lastModifiedDate":"2023-01-31T05:10:45.075Z",
"salePrice":8.99,
"primaryMediumImageURL":"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg&height=475&width=475",
"fullImageURLs":[
"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg"
],
"active":true,
"thumbImageURLs":[
"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg&height=100&width=100"
],
"creationDate":"2014-10-27T05:11:57.034Z",
"variantValuesOrder":{
"color":[
"Spring Green",
"Cranberry",
"Marigold"
],
"size":[
"Small",
"Large",
"Medium"
]
},
"route":"/16-candles/product/Product_19Cxy",
"mediumImageURLs":[
"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg&height=475&width=475"
],
"derivedListPriceFrom":"defaultPriceGroup",
"repositoryId":"Product_19Cxy",
"primarySourceImageURL":"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg&height=300&width=300",
"shippingSurcharge":20,
"primarySmallImageURL":"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg&height=300&width=300",
"sourceImageURLs":[
"/ccstore/v1/images/?source=http://localhost:8080/file/qaimg/products/sixteen_candles_LARGE.jpg&height=300&width=300"
],
"minOrderLimit":1,
"avgCustRating":4.5,
"listPrice":19.99
}
]
}
Default Response
The error response
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