createPriceListGroup

post

/ccadmin/v1/priceListGroups

Create a new PriceListGroup. **Requires the x-ccasset-language header so translated content can be set for a specific language.**

Request

Supported Media Types
Header Parameters
Body ()
Root Schema : createPriceListGroup_request
Type: object
Show Source
Example:
{
    "isTaxIncluded":false,
    "taxCalculationType":"calculateTax",
    "displayName":"Canadian Dollar",
    "id":"canadianDollar",
    "locale":"en_CA",
    "includeAllProducts":true,
    "associatePriceListGroupToSite":true
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createPriceListGroup_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":null,
    "displayName":"Canadian Dollar",
    "listPriceList":{
        "repositoryId":"canadianDollar_listPrice"
    },
    "active":false,
    "isPointsBased":false,
    "locale":"en_US",
    "shippingSurchargePriceList":{
        "repositoryId":"canadianDollar_shippingSurchargePrice"
    },
    "deleted":false,
    "taxCalculationType":"calculateTax",
    "repositoryId":"CanadianDollar",
    "currency":{
        "symbol":"$",
        "displayName":"Canadian Dollar",
        "repositoryId":"en_CA",
        "fractionalDigits":2,
        "currencyCode":"CAD",
        "numericCode":"840"
    },
    "links":[
        {
            "rel":"self",
            "href":"/priceListGroups"
        }
    ],
    "salePriceList":{
        "repositoryId":"canadianDollar_salePrice"
    },
    "id":"canadianDollar",
    "includeAllProducts":true,
    "startDate":null
}

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| |------------------|------------------| |20212|There was an error creating PriceListGroup| |20211|PriceListGroup with ID: {0} already exists| |20210|There was an error creating the price list| |13037|Missing required property: id| |13036|Locale key is not valid| |99000|The ID "**78" is invalid| |20206|PriceListGroup with display name: {0} already exists|
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