updatePrices

put

/ccadmin/v1/prices

Update Prices. Updates a list of prices or creates a new price item if there isn't one.

Request

Supported Media Types
Body ()
Root Schema : updatePrices_request
Type: object
Show Source
Example:
{
    "items":[
        {
            "productId":"prod10014",
            "priceListId":"listPrices",
            "listPrice":50
        },
        {
            "productId":"prod10014",
            "volumePrice":{
                "bulkPrice":{
                    "numLevels":3,
                    "levels":[
                        {
                            "price":19,
                            "levelMaximum":5,
                            "levelMinimum":1
                        },
                        {
                            "price":12.35,
                            "levelMaximum":30,
                            "levelMinimum":21
                        },
                        {
                            "price":10.25,
                            "levelMinimum":31
                        }
                    ]
                }
            },
            "priceListId":"listPrices",
            "skuId":"sku10040"
        }
    ]
}
Nested Schema : items
Type: array
List of Prices
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : volumePrice
Type: object
Volume price of the price item
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updatePrices_response
Type: object
Show Source
Nested Schema : items
Type: array
List of Prices
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : volumePrice
Type: object
Volume price of the price item
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "items":[
        {
            "productId":"prod10014",
            "priceListId":"examplePriceListGroupId_listPrices",
            "listPrice":50
        },
        {
            "productId":"prod10014",
            "volumePrice":{
                "bulkPrice":{
                    "numLevels":3,
                    "levels":[
                        {
                            "price":19,
                            "levelMaximum":5,
                            "levelMinimum":1
                        },
                        {
                            "price":12.35,
                            "levelMaximum":30,
                            "levelMinimum":21
                        },
                        {
                            "price":10.25,
                            "levelMinimum":31
                        }
                    ]
                }
            },
            "priceListId":"examplePriceListGroupId_listPrices",
            "skuId":"sku10040"
        }
    ]
}

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| |------------------|------------------| |100173|Input data is missing.| |100174|Invalid input data.| |100175|Not a valid input format for the data.| |100176|Input items to be updated exceeded the max limit 25.|
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