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
Body ()
Root Schema : updateDefaultPriceListGroup_request
Type: object
Show Source
  • 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"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updateDefaultPriceListGroup_response
Type: object
Show Source
Example Response (application/json)
{
    "displayName":"Canadian Dollar",
    "repositoryId":"CanadianDollar",
    "listPriceList":{
        "repositoryId":"CanadianDollar_listPrice"
    },
    "active":false,
    "links":[
        {
            "rel":"self",
            "href":"http://busgi2105:9080/ccadminui/v1/merchant/defaultPriceListGroup"
        }
    ],
    "salePriceList":{
        "repositoryId":"CanadianDollar_salePrice"
    },
    "currency":{
        "symbol":"$",
        "displayName":"US Dollar",
        "repositoryId":"en_US",
        "fractionalDigits":2,
        "currencyCode":"USD",
        "numericCode":"840"
    },
    "id":"CanadianDollar",
    "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.|
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