Add Selected Items to Quote
post
/rest/v16/shoppingCarts/{processVarName}/actions/_addToQuote
This endpoint adds the selected items from the shopping cart to the current quote.
Request
Path Parameters
-
processVarName(required): string
The unique variable name to identify the process.
The selected items to be added to the quote.
Root Schema : shopping-cart-selected-items-request
Type:
Show Source
object
-
selectionMode:
string
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:
array selections
Response
Default Response
The response for add to quote.
Root Schema : shopping-cart-destination-response
Type:
Show Source
object
-
destinationUrl:
string
Title:
Destination URL
Destination URL.
Examples
The following example shows how to add the selected items from the shopping cart to the current 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/_addToQuote
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" }