Get valid actions

get

/ccstore/v1/orders/validActions/{id}

Verifies whether the specified order can be cancelled or returned.

Request

Supported Media Types
Path Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Returned when the operation succeeds.
Body ()
Root Schema : getValidActions_response
Type: object
Show Source
Nested Schema : cancel
Type: object
cancel information
Show Source
Nested Schema : return
Type: object
return information
Show Source
Example Response (application/json)
{
    "cancel":{
        "isInitialValForCancelInFlightPassed":false,
        "isCancelAllowed":true
    },
    "returns":{
        "isReturnAllowed":false
    }
}

Default Response

The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
Error CodeDescriptionPossible Fix
210105Order not found.Ensure that you enter a valid order ID.

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