updateDefaultPriceListGroup
put
/ccadmin/v1/merchant/defaultPriceListGroup
Update Default Price List Group. Update the default PriceListGroup only if this price list group is present in available price list groups associated with site.
Request
Supported Media Types
- application/json
Root Schema : updateDefaultPriceListGroup_request
Type:
Show Source
object
-
id:
string
ID of the PriceListGroup that we wish to make the default PriceListGroup. This ID should be present in available price list groups associated with site.
Example:
{
"id":"CanadianDollar"
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : updateDefaultPriceListGroup_response
Type:
Show Source
object
-
repositoryId(optional):
string
The ID of the PriceListGroup, which is the current default PriceListGroup
Example Response (application/json)
{
"displayName":"Canadian Dollar",
"repositoryId":"CanadianDollar",
"listPriceList":{
"repositoryId":"CanadianDollar_listPrice"
},
"active":false,
"salePriceList":{
"repositoryId":"CanadianDollar_salePrice"
},
"currency":{
"symbol":"$",
"displayName":"US Dollar",
"repositoryId":"en_US",
"fractionalDigits":2,
"currencyCode":"USD",
"numericCode":"840"
},
"id":"CanadianDollar",
"basePriceListGroup":{
"displayName":"US Dollar",
"id":"usDollar"
},
"locale":"en_US",
"shippingSurchargePriceList":{
"repositoryId":"CanadianDollar_shippingSurchargePrice"
}
}
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|
|------------------|------------------|
|20214|Inactive PriceListGroup can not be set as the default.|
|30003|Could not update site : siteUS|
|20187|No PriceListGroup found for the id : invalidId|
|20184|Missing required property: id|
|20208|PriceListGroup ID should be present in the list available price list groups associated with site.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code