updatePriceListGroup

put

/ccadmin/v1/priceListGroups/{id}

Update Price List Group. Updates an existing PriceListGroup based on PriceListGroup ID provided,specific properties have to be specified for getting them updated. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
Path Parameters
  • PriceListGroup ID corresponding to the PriceListGroup to be updated.
Header Parameters
Body ()
Root Schema : updatePriceListGroup_request
Type: object
Show Source
Example:
{
    "endDate":"2017-03-12T00:00:00.000+05:30",
    "displayName":"Canadian Dollar",
    "includeAllProducts":false,
    "startDate":"2016-03-11T00:00:00.000+05:30"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updatePriceListGroup_response
Type: object
Show Source
Nested Schema : currency
Type: object
The currency data.
Show Source
Nested Schema : listPriceList
Type: object
The price list for list prices
Show Source
Nested Schema : salePriceList
Type: object
The price list for sale prices
Show Source
Nested Schema : shippingSurchargePriceList
Type: object
The price list for shipping surcharge prices
Show Source
Example Response (application/json)
{
    "isTaxIncluded":false,
    "endDate":"2016-03-11T18:30:00.000Z",
    "displayName":"Canadian Dollar",
    "listPriceList":{
        "repositoryId":"CanadianDollar_listPrice"
    },
    "active":false,
    "locale":"en_US",
    "shippingSurchargePriceList":{
        "repositoryId":"CanadianDollar_shippingSurchargePrice"
    },
    "repositoryId":"CanadianDollar",
    "salePriceList":{
        "repositoryId":"CanadianDollar_salePrice"
    },
    "currency":{
        "symbol":"$",
        "displayName":"US Dollar",
        "repositoryId":"en_US",
        "fractionalDigits":2,
        "currencyCode":"USD",
        "numericCode":"840"
    },
    "links":[
        {
            "rel":"self",
            "href":"/priceListGroups/CanadianDollar"
        }
    ],
    "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| |------------------|------------------| |20187|No PriceListGroup found for the id : invalidId| |13036|Locale key is not valid| |20192|Attempt to change the value of a read only property id|
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