saveRemorsePeriod
put
/ccadmin/v1/merchant/remorsePeriod
Save Remorse Period. Saves the remorse period and gets back the saved data.
Request
Supported Media Types
- application/json
Root Schema : saveRemorsePeriod_request
Type:
Show Source
object
-
isRemorsePriod:
boolean
Tells whether remorse period is enabled or not.
-
remorsePeriodHours(optional):
string
Remorse period time in hours. Needed to specify when remorse period is enabled.
-
remorsePeriodMinutes(optional):
string
Remorse period time in minutes(apart from the hours set). Needed to specify when remorse period is enabled.
Example:
{
"isRemorsePeriod":true,
"remorsePeriodHours":"1",
"remorsePeriodMinutes":"20"
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : saveRemorsePeriod_response
Type:
Show Source
object
-
isRemorsePriod(optional):
boolean
Tells whether remorse period is set or not.
-
remorsePeriodHours(optional):
integer
Remorse period time in hours.
-
remorsePeriodMinutes(optional):
integer
Remorse period time in minutes(apart from the hours set).
Example Response (application/json)
{
"isRemorsePeriod":true,
"remorsePeriodHours":1,
"remorsePeriodMinutes":20
}
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|
|------------------|------------------|
|96009|A problem occurred when saving the data.|
|96005|Remorse period minutes must be numeric.|
|96006|Remorse period minutes must be in range (0-59).|
|96007|Invalid data for isRemorsePeriod. Value must be (true/false).|
|96008|Unable to save remorse period data.|
|96001|Remorse period hours is required.|
|96002|Remorse period hours must be numeric.|
|96003|Invalid data. Remorse period hours must be positive.|
|96004|Remorse period minutes 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