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:
string
the 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:
object
If the returned type is a SKU or defaultAdditional Properties Allowed:Result object having SKU related information.
Nested Schema : If the returned type is a SKU or default
Type:
object
Result object having SKU related information.
- complexPrice
-
Type:
object
complexPriceAdditional Properties Allowed:The complex price of the sku. - listPrice
-
Type:
number
The list price of the SKU. - salePrice
-
Type:
number
The sale price of the SKU.
Nested Schema : complexPrice
Type:
object
The complex price of the sku.
- levels
-
Type:
array
levelsAdditional Properties Allowed:Price levels of the Complex price.
Nested Schema : levels
Nested Schema : items
Type:
object
- levelMaximum
-
Type:
number
The maximum quantity associated with this level. - levelMinimum
-
Type:
number
The minimum quantity associated with this level. - price
-
Type:
number
The 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:
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 : errors
Nested Schema : items
Type:
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:
[ {"sku30081": { "salePrice": null, "listPrice": 19.99 }}, {"sku30083": { "salePrice": null, "listPrice": 19.99 }}, {"sku30051": { "salePrice": null, "listPrice": 42.99 }} ]