setPrice

put

/ccadmin/v1/prices/{id}

Set Price. Sets a price value to the product based on provided product ID, SKU ID and type of price.

Request

Supported Media Types
Path Parameters
  • ID corresponding to the product whose price or whose SKU price is to be set.
Header Parameters
  • The ID of the workset that this change will appear in. If this header is missing, the change will be made in the default workset.
Body ()
Root Schema : setPrice_request
Type: object
Show Source
  • Price value to be set to the product or SKU. This price must be provided when configuring simple prices. Either price or volumePrice must be provided but both prices must not be provided.
  • SKU ID if we are setting the price of a SKU.
  • Type of price can be sale or list.
  • voumePrice
    Volume price of the product/sku. This price must be provided when configuring complex prices. Either price or volumePrice must be provided but both prices must not be provided.
Example:
{
    "price":9.7,
    "volumePrice":null,
    "type":"sale",
    "skuId":"xsku2535_1"
}
Nested Schema : voumePrice
Type: object
Volume price of the product/sku. This price must be provided when configuring complex prices. Either price or volumePrice must be provided but both prices must not be provided.
Show Source
Nested Schema : pricingScheme
Type: object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
Nested Schema : levels
Type: array
Price levels array for volume price
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

204 Response

A 204 No Content response is returned when operation succeeds.

412 Response

ETag mismatch. Asset has been updated by another user.

Default Response

The error response
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