listPrices
get
/ccadmin/v1/prices
List Prices. Returns a list of lisPrices, salePrices and shippingSurchargePrices for a specific priceListGroupId.
Request
Supported Media Types
- application/json
Query Parameters
- limit
-
Type:
integer
The number of items to return.- offset
Type:integer
Index of the first element to return.- priceListGroupId
Type:string
Required:true
The price list group id for which the prices have to be returned.- sort
Type:string
Sorting criteria.Response
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : listPrices_response- items
-
Type:
array
itemsAdditional Properties Allowed:List of Prices - limit
-
Type:
integer
The number of items to return. - offset
-
Type:
integer
Index of the first element to return. - sort
-
Type:
array
sortAdditional Properties Allowed:Sorting criteria. - total
-
Type:
integer
The total number of items. Deprecated. - totalResults
-
Type:
integer
The total number of items.
Nested Schema : itemsNested Schema : sortNested Schema : itemsType:object
- endDate
-
Type:
string
End date of a price - listPrice
-
Type:
number
List price - parentSkuId
-
Type:
string
Parent Sku Id - priceList
-
Type:
object
priceListAdditional Properties Allowed:The price list for this price - pricingScheme
-
Type:
string
Pricing Scheme - productId
-
Type:
string
Product Id - repositoryId
-
Type:
string
Repository Id - skuId
-
Type:
string
Sku Id - startDate
-
Type:
string
Start date of a price - volumePrice
-
Type:
object
volumePriceAdditional Properties Allowed:Volume price
Nested Schema : priceListNested Schema : volumePriceType:object
Volume price- levels
-
Type:
array
levelsAdditional Properties Allowed:Levels - repositoryId
-
Type:
string
Repository Id
Nested Schema : itemsType:object
- price
-
Type:
number
Price for this level - quantity
-
Type:
integer
Minimum Quantity for this level - repositoryId
-
Type:
string
Repository Id
Nested Schema : itemsType:object
- order
-
Type:
string
Sort order: asc or desc. - property
-
Type:
string
The property the listing is sorted by.
Example application/json
{ "total":2, "totalResults":2, "offset":0, "limit":250, "sort":[ { "property":"priceList", "order":"asc" } ], "items":[ { "productId":"Product_13CD", "endDate":null, "pricingScheme":"listPrice", "volumePrice":null, "repositoryId":"p121007", "parentSkuId":null, "startDate":null, "listPrice":2, "skuId":null, "priceList":{ "repositoryId":"new1_listPrices" } }, { "productId":"Product_13CD", "endDate":null, "pricingScheme":"bulkPrice", "volumePrice":{ "repositoryId":"cxp10003", "levels":[ { "quantity":1, "price":25, "repositoryId":"plvl10003" }, { "quantity":5, "price":20, "repositoryId":"plvl10004" } ] }, "repositoryId":"p141006", "parentSkuId":null, "startDate":null, "listPrice":null, "skuId":"Sku_13DE", "priceList":{ "repositoryId":"new1_listPrices" } } ] }
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| |------------------|------------------| |100177|Error getting prices.|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": 2, "totalResults": 2, "offset": 0, "limit": 250, "sort": [{ "property": "priceList", "order": "asc" }], "items": [ { "productId": "Product_13CD", "endDate": null, "pricingScheme": "listPrice", "volumePrice": null, "repositoryId": "p121007", "parentSkuId": null, "startDate": null, "listPrice": 2, "skuId": null, "priceList": {"repositoryId": "new1_listPrices"} }, { "productId": "Product_13CD", "endDate": null, "pricingScheme": "bulkPrice", "volumePrice": { "repositoryId": "cxp10003", "levels": [ { "quantity": 1, "price": 25, "repositoryId": "plvl10003" }, { "quantity": 5, "price": 20, "repositoryId": "plvl10004" } ] }, "repositoryId": "p141006", "parentSkuId": null, "startDate": null, "listPrice": null, "skuId": "Sku_13DE", "priceList": {"repositoryId": "new1_listPrices"} } ] }