listPriceListGroups
get
/ccstore/v1/priceListGroups
List Price List Groups. Get a list of PriceListGroups.
Request
Supported Media Types
- application/json
Query Parameters
- defaultFirst
-
Type:
boolean
This for displaying default PriceListGroup first in the list- limit
Type:integer
The number of items to return.- offset
Type:integer
Index of the first element to return.- siteId
Type:string
Site ID of the site- sort
Type:string
Sorting criteria. Following are the fields supported by this param: |Field|Type|Description| |------------------|------------------|------------------| |property|string|The property the listing is sorted by.| |order|string|Sort order: asc or desc.|Response
Supported Media Types- application/json
200 ResponseFollowing model is returned when operation succeeds.BodyRoot Schema : listPriceListGroups_response- items
-
Type:
array
itemsAdditional Properties Allowed:List of PriceListGroups - 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
- active
-
Type:
boolean
indicates if the PriceListGroup is activ.e - displayName
-
Type:
string
display name of the PriceListGroup. - includeAllProducts
-
Type:
boolean
If true, and active flag is also set to true then list price is mandatory for all products. - listPriceList
-
Type:
object
listPriceListAdditional Properties Allowed:Price List for list prices - repositoryId
-
Type:
string
The ID of the PriceListGroup item. - salePriceList
-
Type:
object
salePriceListAdditional Properties Allowed:Price List for sale prices. - shippingSurchargePriceList
-
Type:
object
shippingSurchargePriceListAdditional Properties Allowed:Price List for shipping surcharge prices.
Nested Schema : listPriceListType:object
Price List for list prices- repositoryId
-
Type:
string
Repository ID of the list prices.
Nested Schema : salePriceListType:object
Price List for sale prices.- repositoryId
-
Type:
string
Repository ID of the sale prices.
Nested Schema : shippingSurchargePriceListType:object
Price List for shipping surcharge prices.- repositoryId
-
Type:
string
Repository ID of the shipping surcharge prices.
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, "defaultPriceListGroup":{ "displayName":"UsDollar", "listPriceList":{ "repositoryId":"listPrices" }, "repositoryId":"UsDollar", "active":false, "salePriceList":{ "repositoryId":"salePrices" }, "currency":{ "symbol":"$", "displayName":"US Dollar", "repositoryId":"en_US", "fractionalDigits":2, "currencyCode":"USD", "numericCode":"840" }, "id":"UsDollar", "locale":"en_US", "shippingSurchargePriceList":{ "repositoryId":"shippingSurchargePrices" }, "includeAllProducts":true }, "sort":[ { "property":"displayName", "order":"asc" } ], "items":[ { "displayName":null, "listPriceList":{ "repositoryId":"listPrices" }, "repositoryId":"UsDollar", "active":false, "salePriceList":{ "repositoryId":"salePrices" }, "currency":{ "symbol":"$", "displayName":"US Dollar", "repositoryId":"en_US", "fractionalDigits":2, "currencyCode":"USD", "numericCode":"840" }, "id":"UsDollar", "locale":"en_US", "shippingSurchargePriceList":{ "repositoryId":"shippingSurcharge" }, "includeAllProducts":true }, { "displayName":"CanadianDollar", "listPriceList":{ "repositoryId":"CanadianDollar_listPrice" }, "repositoryId":"CanadianDollar", "active":false, "salePriceList":{ "repositoryId":"CanadianDollar_salePrice" }, "id":"CanadianDollar", "locale":"en_CA", "shippingSurchargePriceList":{ "repositoryId":"CanadianDollar_shippingSurchargePrice" }, "includeAllProducts":false } ] }
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| |------------------|------------------| |20185|There was an error fetching the PriceListGroup list.|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, "defaultPriceListGroup": { "displayName": "UsDollar", "listPriceList": {"repositoryId": "listPrices"}, "repositoryId": "UsDollar", "active": false, "salePriceList": {"repositoryId": "salePrices"}, "currency": { "symbol": "$", "displayName": "US Dollar", "repositoryId": "en_US", "fractionalDigits": 2, "currencyCode": "USD", "numericCode": "840" }, "id": "UsDollar", "locale": "en_US", "shippingSurchargePriceList": {"repositoryId": "shippingSurchargePrices"}, "includeAllProducts": true }, "sort": [{ "property": "displayName", "order": "asc" }], "items": [ { "displayName": null, "listPriceList": {"repositoryId": "listPrices"}, "repositoryId": "UsDollar", "active": false, "salePriceList": {"repositoryId": "salePrices"}, "currency": { "symbol": "$", "displayName": "US Dollar", "repositoryId": "en_US", "fractionalDigits": 2, "currencyCode": "USD", "numericCode": "840" }, "id": "UsDollar", "locale": "en_US", "shippingSurchargePriceList": {"repositoryId": "shippingSurcharge"}, "includeAllProducts": true }, { "displayName": "CanadianDollar", "listPriceList": {"repositoryId": "CanadianDollar_listPrice"}, "repositoryId": "CanadianDollar", "active": false, "salePriceList": {"repositoryId": "CanadianDollar_salePrice"}, "id": "CanadianDollar", "locale": "en_CA", "shippingSurchargePriceList": {"repositoryId": "CanadianDollar_shippingSurchargePrice"}, "includeAllProducts": false } ] }