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
- application/json
Path Parameters
- id
-
Type:
stringRequired:truePriceListGroup ID corresponding to the PriceListGroup to be updated.
Header Parameters
- X-CCAsset-Language
-
Type:
stringRequired:trueThe asset language of the request
Body Parameter
Root Schema : updatePriceListGroup_request
{
"endDate":"2017-03-12T00:00:00.000+05:30",
"displayName":"Canadian Dollar",
"includeAllProducts":false,
"startDate":"2016-03-11T00:00:00.000+05:30"
}
- displayName
-
Type:
stringThe display name of the PriceListGroup. - endDate
-
Type:
stringEnd date of the the associated list price list - includeAllProducts
-
Type:
booleanIf true, and active flag is also set to true then list price is mandatory for all products. - startDate
-
Type:
stringStart date of the the associated list price list
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updatePriceListGroup_response
- active
-
Type:
booleanindicates if the PriceListGroup is active - currency
-
Type:
objectcurrencyThe currency data. - deleted
-
Type:
booleanindicates if the PriceListGroup is deleted - displayName
-
Type:
stringdisplay name of the PriceListGroup - endDate
-
Type:
stringEnd date of the the associated list price list - id
-
Type:
stringThe ID of the PriceListGroup item - includeAllProducts
-
Type:
booleanIf true, indicates that all the products in the catalog should have prices for activation of the PLG - isPointsBased
-
Type:
booleanIf true, indicates the PriceListGroup was created with a point based currency - isTaxIncluded
-
Type:
booleanIndicates whether prices are inclusive of tax. - listPriceList
-
Type:
objectlistPriceListThe price list for list prices - locale
-
Type:
stringlocale of the the associated list price list - repositoryId
-
Type:
stringThe ID of the PriceListGroup item - salePriceList
-
Type:
objectsalePriceListThe price list for sale prices - shippingSurchargePriceList
-
Type:
objectshippingSurchargePriceListThe price list for shipping surcharge prices - startDate
-
Type:
stringStart date of the the associated list price list - taxCalculationType
-
Type:
stringIndicates how tax calls are made based on the PriceListGroup setting. For a monetary PriceListGroup, the possible values are calculateTax and doNotCalculateTax.çFor a point based PriceListGroup, the possible values are doNotCalculateTax, calculateTaxWithCurrencyConversion and calculateTaxWithoutCurrencyConversion.
Nested Schema : currency
Type:
objectThe currency data.
- currencyCode
-
Type:
stringThe currency Code of the currency - displayName
-
Type:
stringThe display Name of the currency - fractionalDigits
-
Type:
stringThe currency Code of the currency - numericCode
-
Type:
stringThe numeric Code of the currency - repositoryId
-
Type:
stringThe repository Id of the currency - symbol
-
Type:
stringThe symbol of the currency
Nested Schema : listPriceList
Nested Schema : salePriceList
Nested Schema : shippingSurchargePriceList
Type:
objectThe price list for shipping surcharge prices
- repositoryId
-
Type:
stringRepository ID
Example 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- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAn optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{
"endDate": "2017-03-12T00:00:00.000+05:30",
"displayName": "Canadian Dollar",
"includeAllProducts": false,
"startDate": "2016-03-11T00:00:00.000+05:30"
}
Sample Response Payload returned by endpoint:
{
"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"
}