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
Body Parameter
Root Schema : saveRemorsePeriod_request

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : saveRemorsePeriod_response
Example 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.|
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Request:

{
  "isRemorsePeriod": true,
  "remorsePeriodHours": "1",
  "remorsePeriodMinutes": "20"
}

Sample Response Payload returned by endpoint:

{
  "isRemorsePeriod": true,
  "remorsePeriodHours": 1,
  "remorsePeriodMinutes": 20
}