Check Out the Selected Items

post

/rest/v16/shoppingCarts/{processVarName}/actions/_checkout

This endpoint adds the selected items from the shopping cart to a new quote.

Request

Path Parameters
Body ()
The selected items to be checked out.
Root Schema : shopping-cart-selected-items-request
Type: object
Show Source
  • Title: Selection Mode
    Indicating how selections content should be interpreted, supported values are: 1) '' - content of 'selections' param OR 2) 'ResultSetExceptSelected' - all entries in result set except those listed in 'selections' param
  • selections
Nested Schema : selections
Type: array
Show Source
Back to Top

Response

Default Response

The response for checking out selected items.
Body ()
Root Schema : shopping-cart-destination-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to add the selected items from the shopping cart to a new quote by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X GET - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/actions/_checkout

Request Body Sample

Example 1: All items are selected in the shopping cart

{
  "selections": [],
  "selectionMode": "ResultSetExceptSelected"
}

Example 2: Specific items are selected in the shopping cart

{
  "selections": [3022564637, 3022564638],
  "selectionMode": ""
}

Response Body Sample

{
  "destinationUrl": "https://sitename.oracle.com/commerce/buyside/document.jsp?id=3022564562&document_id=4356178&bm_cm_process_id=4356122&formaction=openTransaction"
}
Back to Top