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:
integerThe number of items to return.- offset
Type:integerIndex of the first element to return.- priceListGroupId
Type:stringRequired:trueThe price list group id for which the prices have to be returned.- sort
Type:stringSorting criteria.Response
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : listPrices_response- items
-
Type:
arrayitemsAdditional Properties Allowed:List of Prices - limit
-
Type:
integerThe number of items to return. - offset
-
Type:
integerIndex of the first element to return. - sort
-
Type:
arraysortAdditional Properties Allowed:Sorting criteria. - total
-
Type:
integerThe total number of items. Deprecated. - totalResults
-
Type:
integerThe total number of items.
Nested Schema : itemsNested Schema : sortNested Schema : itemsType:object- endDate
-
Type:
stringEnd date of a price - listPrice
-
Type:
numberList price - parentSkuId
-
Type:
stringParent Sku Id - priceList
-
Type:
objectpriceListAdditional Properties Allowed:The price list for this price - pricingScheme
-
Type:
stringPricing Scheme - productId
-
Type:
stringProduct Id - repositoryId
-
Type:
stringRepository Id - skuId
-
Type:
stringSku Id - startDate
-
Type:
stringStart date of a price - volumePrice
-
Type:
objectvolumePriceAdditional Properties Allowed:Volume price
Nested Schema : priceListNested Schema : volumePriceType:objectVolume price- levels
-
Type:
arraylevelsAdditional Properties Allowed:Levels - repositoryId
-
Type:
stringRepository Id
Nested Schema : itemsType:object- price
-
Type:
numberPrice for this level - quantity
-
Type:
integerMinimum Quantity for this level - repositoryId
-
Type:
stringRepository Id
Nested Schema : itemsType:object- order
-
Type:
stringSort order: asc or desc. - property
-
Type:
stringThe 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:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An 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 : errorsNested Schema : itemsType: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:
{ "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"} } ] }