getAllProductsPrices

get

/ccstore/v1/prices/products

Get All Products Prices. Return the the list, sale and complex prices for the list of products. 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 product IDs

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getAllProductsPrices_response
Nested Schema : If the returned type is a product or default
Type: object
Result object having product related information.
Nested Schema : skuPrices
Type: array
The array of SKU data.
Nested Schema : items
Type: object
Nested Schema : complexPrice
Type: object
The complex price of the sku.
Nested Schema : levels
Type: array
Price levels of the Complex price.
Nested Schema : items
Type: object
Example application/json

[
    {
        "prod10007":{
            "sale":null,
            "skuPrices":[
                {
                    "salePrice":null,
                    "skuId":"sku30081",
                    "listPrice":19.99
                },
                {
                    "salePrice":null,
                    "skuId":"sku30083",
                    "listPrice":19.99
                },
                {
                    "salePrice":null,
                    "skuId":"sku30085",
                    "listPrice":19.99
                },
                {
                    "salePrice":null,
                    "skuId":"sku30087",
                    "listPrice":19.99
                },
                {
                    "salePrice":null,
                    "skuId":"sku30089",
                    "listPrice":19.99
                },
                {
                    "salePrice":null,
                    "skuId":"sku30091",
                    "listPrice":19.99
                },
                {
                    "salePrice":null,
                    "skuId":"sku30093",
                    "listPrice":19.99
                },
                {
                    "salePrice":null,
                    "skuId":"sku30095",
                    "listPrice":19.99
                },
                {
                    "salePrice":null,
                    "skuId":"sku30097",
                    "listPrice":19.99
                },
                {
                    "salePrice":null,
                    "skuId":"sku30099",
                    "listPrice":19.99
                },
                {
                    "salePrice":null,
                    "skuId":"sku30101",
                    "listPrice":19.99
                },
                {
                    "salePrice":null,
                    "skuId":"sku30103",
                    "listPrice":19.99
                }
            ],
            "list":19.99,
            "priceRange":false
        }
    },
    {
        "prod10001":{
            "sale":null,
            "skuPrices":[
                {
                    "salePrice":null,
                    "skuId":"sku30003",
                    "listPrice":49
                },
                {
                    "salePrice":null,
                    "skuId":"sku30005",
                    "listPrice":49
                },
                {
                    "salePrice":null,
                    "skuId":"sku30007",
                    "listPrice":49
                },
                {
                    "salePrice":null,
                    "skuId":"sku30009",
                    "listPrice":49
                }
            ],
            "list":49,
            "priceRange":false
        }
    }
]
Default Response
The error response
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:

[
  {"prod10007": {
    "sale": null,
    "skuPrices": [
      {
        "salePrice": null,
        "skuId": "sku30081",
        "listPrice": 19.99
      },
      {
        "salePrice": null,
        "skuId": "sku30083",
        "listPrice": 19.99
      },
      {
        "salePrice": null,
        "skuId": "sku30085",
        "listPrice": 19.99
      },
      {
        "salePrice": null,
        "skuId": "sku30087",
        "listPrice": 19.99
      },
      {
        "salePrice": null,
        "skuId": "sku30089",
        "listPrice": 19.99
      },
      {
        "salePrice": null,
        "skuId": "sku30091",
        "listPrice": 19.99
      },
      {
        "salePrice": null,
        "skuId": "sku30093",
        "listPrice": 19.99
      },
      {
        "salePrice": null,
        "skuId": "sku30095",
        "listPrice": 19.99
      },
      {
        "salePrice": null,
        "skuId": "sku30097",
        "listPrice": 19.99
      },
      {
        "salePrice": null,
        "skuId": "sku30099",
        "listPrice": 19.99
      },
      {
        "salePrice": null,
        "skuId": "sku30101",
        "listPrice": 19.99
      },
      {
        "salePrice": null,
        "skuId": "sku30103",
        "listPrice": 19.99
      }
    ],
    "list": 19.99,
    "priceRange": false
  }},
  {"prod10001": {
    "sale": null,
    "skuPrices": [
      {
        "salePrice": null,
        "skuId": "sku30003",
        "listPrice": 49
      },
      {
        "salePrice": null,
        "skuId": "sku30005",
        "listPrice": 49
      },
      {
        "salePrice": null,
        "skuId": "sku30007",
        "listPrice": 49
      },
      {
        "salePrice": null,
        "skuId": "sku30009",
        "listPrice": 49
      }
    ],
    "list": 49,
    "priceRange": false
  }}
]