listPriceListGroups

get

/ccadmin/v1/priceListGroups

List Price List Groups. Get a list of PriceListGroups.

Request

Supported Media Types
  • application/json
Query Parameters
active
Type: boolean
If null, don't filter active/inactive items. If true or false, return only items where active has that value.
defaultFirst
Type: boolean
This for displaying default PriceListGroup first in the list
includeDeleted
Type: boolean
If true, include soft deleted items in results. If false or not present, exclude them.
limit
Type: integer
The number of items to return.
offset
Type: integer
Index of the first element to return.
q
Type: string
The search query string in SCIM format. Results will be filtered based on this query.
siteId
Type: string
Site ID of the site
sort
Type: string
Sorting criteria.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : listPriceListGroups_response
Nested Schema : items
Type: array
List of PriceListGroups
Nested Schema : sort
Type: array
Sorting criteria.
Nested Schema : items
Type: object
Nested Schema : listPriceList
Type: object
Price List for list prices
Nested Schema : salePriceList
Type: object
Price List for sale prices.
Nested Schema : shippingSurchargePriceList
Type: object
Price List for shipping surcharge prices.
Nested Schema : items
Type: object
Example application/json

{
    "total":2,
    "totalResults":2,
    "offset":0,
    "limit":250,
    "defaultPriceListGroup":{
        "isTaxIncluded":false,
        "endDate":"2016-03-11T18:30:00.000Z",
        "displayName":"UsDollar",
        "listPriceList":{
            "repositoryId":"listPrices"
        },
        "active":false,
        "isPointsBased":false,
        "locale":"en_US",
        "shippingSurchargePriceList":{
            "repositoryId":"shippingSurchargePrices"
        },
        "taxCalculationType":"calculateTax",
        "repositoryId":"UsDollar",
        "salePriceList":{
            "repositoryId":"salePrices"
        },
        "currency":{
            "symbol":"$",
            "displayName":"US Dollar",
            "repositoryId":"en_US",
            "fractionalDigits":2,
            "currencyCode":"USD",
            "numericCode":"840"
        },
        "id":"UsDollar",
        "includeAllProducts":true,
        "startDate":"2016-03-10T18:30:00.000Z"
    },
    "sort":[
        {
            "property":"displayName",
            "order":"asc"
        }
    ],
    "items":[
        {
            "endDate":"2016-03-11T18:30:00.000Z",
            "displayName":null,
            "listPriceList":{
                "repositoryId":"listPrices"
            },
            "active":false,
            "isPointsBased":false,
            "locale":"en_US",
            "shippingSurchargePriceList":null,
            "taxCalculationType":"calculateTax",
            "repositoryId":"UsDollar",
            "salePriceList":{
                "repositoryId":"salePrices"
            },
            "currency":{
                "symbol":"$",
                "displayName":"US Dollar",
                "repositoryId":"en_US",
                "fractionalDigits":2,
                "currencyCode":"USD",
                "numericCode":"840"
            },
            "id":"UsDollar",
            "includeAllProducts":true,
            "startDate":"2016-03-10T18:30:00.000Z"
        },
        {
            "isTaxIncluded":false,
            "endDate":"2016-03-11T18:30:00.000Z",
            "displayName":"CanadianDollar",
            "listPriceList":{
                "repositoryId":"CanadianDollar_listPrice"
            },
            "active":false,
            "isPointsBased":false,
            "locale":"en_CA",
            "shippingSurchargePriceList":{
                "repositoryId":"CanadianDollar_shippingSurchargePrice"
            },
            "taxCalculationType":"calculateTax",
            "repositoryId":"CanadianDollar",
            "salePriceList":{
                "repositoryId":"CanadianDollar_salePrice"
            },
            "id":"CanadianDollar",
            "includeAllProducts":false,
            "startDate":"2016-03-10T18:30:00.000Z"
        }
    ]
}
Default Response
The 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.|
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Response Payload returned by endpoint:

{
  "total": 2,
  "totalResults": 2,
  "offset": 0,
  "limit": 250,
  "defaultPriceListGroup": {
    "isTaxIncluded": false,
    "endDate": "2016-03-11T18:30:00.000Z",
    "displayName": "UsDollar",
    "listPriceList": {"repositoryId": "listPrices"},
    "active": false,
    "isPointsBased": false,
    "locale": "en_US",
    "shippingSurchargePriceList": {"repositoryId": "shippingSurchargePrices"},
    "taxCalculationType": "calculateTax",
    "repositoryId": "UsDollar",
    "salePriceList": {"repositoryId": "salePrices"},
    "currency": {
      "symbol": "$",
      "displayName": "US Dollar",
      "repositoryId": "en_US",
      "fractionalDigits": 2,
      "currencyCode": "USD",
      "numericCode": "840"
    },
    "id": "UsDollar",
    "includeAllProducts": true,
    "startDate": "2016-03-10T18:30:00.000Z"
  },
  "sort": [{
    "property": "displayName",
    "order": "asc"
  }],
  "items": [
    {
      "endDate": "2016-03-11T18:30:00.000Z",
      "displayName": null,
      "listPriceList": {"repositoryId": "listPrices"},
      "active": false,
      "isPointsBased": false,
      "locale": "en_US",
      "shippingSurchargePriceList": null,
      "taxCalculationType": "calculateTax",
      "repositoryId": "UsDollar",
      "salePriceList": {"repositoryId": "salePrices"},
      "currency": {
        "symbol": "$",
        "displayName": "US Dollar",
        "repositoryId": "en_US",
        "fractionalDigits": 2,
        "currencyCode": "USD",
        "numericCode": "840"
      },
      "id": "UsDollar",
      "includeAllProducts": true,
      "startDate": "2016-03-10T18:30:00.000Z"
    },
    {
      "isTaxIncluded": false,
      "endDate": "2016-03-11T18:30:00.000Z",
      "displayName": "CanadianDollar",
      "listPriceList": {"repositoryId": "CanadianDollar_listPrice"},
      "active": false,
      "isPointsBased": false,
      "locale": "en_CA",
      "shippingSurchargePriceList": {"repositoryId": "CanadianDollar_shippingSurchargePrice"},
      "taxCalculationType": "calculateTax",
      "repositoryId": "CanadianDollar",
      "salePriceList": {"repositoryId": "CanadianDollar_salePrice"},
      "id": "CanadianDollar",
      "includeAllProducts": false,
      "startDate": "2016-03-10T18:30:00.000Z"
    }
  ]
}