getAllSKUsPrices
get
/ccstore/v1/prices/skus
Get All SKUs Prices. Return the the list, sale and complex prices for the list of SKUs. Optionally takes the -ccasset-language header to get translated content in another language.
Request
Supported Media Types
- application/json
Query Parameters
- ids
-
Type:
stringthe list of SKU IDs
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getAllSKUsPrices_response
- If the returned type is a SKU or default
-
Type:
objectIf the returned type is a SKU or defaultResult object having SKU related information.
Nested Schema : If the returned type is a SKU or default
Type:
objectResult object having SKU related information.
- complexPrice
-
Type:
objectcomplexPriceThe complex price of the sku. - listPrice
-
Type:
numberThe list price of the SKU. - salePrice
-
Type:
numberThe sale price of the SKU.
Nested Schema : complexPrice
Type:
objectThe complex price of the sku.
- levels
-
Type:
arraylevelsPrice levels of the Complex price.
Nested Schema : items
Type:
object- levelMaximum
-
Type:
numberThe maximum quantity associated with this level. - levelMinimum
-
Type:
numberThe minimum quantity associated with this level. - price
-
Type:
numberThe price associated with this level.
Example application/json
[
{
"sku30081":{
"salePrice":null,
"listPrice":19.99
}
},
{
"sku30083":{
"salePrice":null,
"listPrice":19.99
}
},
{
"sku30051":{
"salePrice":null,
"listPrice":42.99
}
}
]
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAn optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
[
{"sku30081": {
"salePrice": null,
"listPrice": 19.99
}},
{"sku30083": {
"salePrice": null,
"listPrice": 19.99
}},
{"sku30051": {
"salePrice": null,
"listPrice": 42.99
}}
]