saveItemPriceOverride
put
/ccadmin/v1/merchant/itemPriceOverride
Save Item Price Override. Saves the remorse period and gets back the saved data.
Request
Supported Media Types
- application/json
Root Schema : saveItemPriceOverride_request
Type:
Show Source
object
-
itemPriceOverrideAllowed(optional):
boolean
Indicates whether item price can be overridden while amending an order. Either this flag or itemPriceOverrideAllowedForCreate flag is mandatory to save the price override settings.
-
itemPriceOverrideAllowedForCreate(optional):
boolean
Indicates whether item price can be overridden while creating an order. Either this flag or itemPriceOverrideAllowed flag is mandatory to save the price override settings.
Example:
{
"itemPriceOverrideAllowed":true,
"itemPriceOverrideAllowedForCreate":true
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : saveItemPriceOverride_response
Type:
Show Source
object
-
itemPriceOverrideAllowed(optional):
boolean
Indicates whether item price can be overridden while amending an order.
-
itemPriceOverrideAllowedForCreate(optional):
boolean
Indicates whether item price can be overridden while creating an order.
-
itemRepriceAllowed(optional):
boolean
Indicates whether to reprice all cart items during edit order or to reprice cart items having quantity change. If 'ItemRepriceAllowed' flag is set to true, all cart items not having overridden price will be repriced during order edit. Else only cart items having a quantity change or newly added cart items will be repriced. This flag doesn't have any significance in create order.
Example Response (application/json)
{
"itemRepriceAllowed":true,
"itemPriceOverrideAllowedForCreate":true,
"itemPriceOverrideAllowed":true
}
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|
|------------------|------------------|
|20508|Invalid data for Item reprice.value must be (true/false).|
|20507|Invalid data for Item price override.Value must be (true/false).|
|20506|Either of the item price override flags is required.|
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