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
- application/json
Path Parameters
-
id: string
ID corresponding to the product whose price or whose SKU price is to be set.
Header Parameters
-
X-CC-Workset(optional): string
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.
Root Schema : setPrice_request
Type:
Show Source
object
-
price(optional):
number
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.
-
skuId(optional):
string
SKU ID if we are setting the price of a SKU.
-
type:
string
Type of price can be sale or list.
-
voumePrice(optional):
object 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
-
pricingScheme(optional):
object pricingScheme
Pricing scheme can be either tieredPrice or bulkPrice
Nested Schema : pricingScheme
Type:
object
Pricing scheme can be either tieredPrice or bulkPrice
Show Source
-
levels(optional):
array levels
Price levels array for volume price
-
numLevels(optional):
number
Number of levels in the volume price
Nested Schema : items
Type:
Show Source
object
-
levelMaximum(optional):
number
minimum quantity for price level
-
levelMinimum(optional):
number
minimum quantity for price level
-
price(optional):
number
price value for price level
Response
Supported Media Types
- application/json
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
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