getAllPrices

get

/ccagent/v1/prices/{id}

Get All Prices. Return the the list and sale price for the product or SKU. This Endpoint is clone of StoreFront endpoint and it can be used if application running on agent/admin server need access the product prices data configured for StoreFront. Takes X-CCAgentContext header which is a JSON object with 'shopperProfileId' as a property. If 'shopperProfileId' is not provided, it is considered as an anonymous profile.Additonally takes x-ccsite header to return the data specific to the site.

Request

Supported Media Types
Path Parameters
Query Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getAllPrices_response
Type: object
Show Source
Nested Schema : If the returned type is a product or default
Type: object
Result object having product related information.
Show Source
Nested Schema : If the returned type is a sku.
Type: object
Result object having SKU related information.
Show Source
Nested Schema : skuPrices
Type: array
The array of SKU data.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : complexPrice
Type: object
The complex price of the SKU.
Show Source
Nested Schema : levels
Type: array
Price levels of the Complex price.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "priceMin":596,
    "priceMax":599,
    "skuPrices":[
        {
            "salePrice":599,
            "skuId":"camcordersku_1_1",
            "listPrice":699.99
        },
        {
            "salePrice":596,
            "skuId":"camcordersku_1_2",
            "listPrice":699.99
        },
        {
            "salePrice":597,
            "skuId":"camcordersku_1_3",
            "listPrice":699.99
        },
        {
            "salePrice":598,
            "skuId":"camcordersku_1_4",
            "listPrice":699.99
        }
    ],
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:8080/ccstore/v1/prices/camcorder_1"
        }
    ],
    "priceRange":true
}

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| |------------------|------------------| |30015|SiteId passed in x-ccsite header is currently inactive| |30014|SiteId passed in x-ccsite header is invalid or the site was deleted| |20031|Product Id prod10007 is invalid or non-existent.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top