switchCurrentOrder

post

/ccstore/v1/orders/current/switch/

Provides the ability to switch the current order context to a given incomplete order from the list of saved orders for a logged in shopper. It also supports switching the current order context with a new empty cart order for a registered shopper.

Request

Supported Media Types
Body ()
The Json input containing the id of the order to switch the context to.
Root Schema : switchCurrentOrder_request
Type: object
Show Source
Example:
{
    "orderId":"o60411"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when the switch order operation succeeds.
Body ()
Root Schema : switchCurrentOrder_response
Type: object
Show Source
Example Response (application/json)
{
    "orderId":"o14441"
}

Default Response

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