Get Most Recent Shopping Cart
post
/rest/v16/shoppingCarts/actions/_getMostRecentShoppingCart
This endpoint returns the most recently modified shopping cart.
Request
Root Schema : shopping-cart-pagination-request
Type:
Show Source
object
-
expandNodes:
boolean
If true, the children rows of nodesExceptionList will be excluded from the response.
-
limit:
integer
The maximum number of items in the response.
-
nodesExceptionList:
array nodesExceptionList
List of ids.
-
offset:
integer
The starting position of the response rows.
-
totalPrice:
boolean
If true, totalPrice will be included in the response.
-
totalResults:
boolean
If true, totalResults and hasMore properties will be included in the response.
Response
Default Response
The response for getting the shopping cart
Root Schema : shopping-cart-pagination-response
Type:
Show Source
object
-
count:
integer
The number of resource instances returned in the current range.
-
hasMore:
boolean
Returns true if more resources are available on the server than the subset returned in current page.
-
items:
array items
-
limit:
integer
The actual paging size used by the server.
-
links:
array links
-
offset:
integer
The offset used in the current page.
-
priceBookApplicable:
boolean
Title:
Price Book Applicable
Price book applicable indicator. -
processName:
string
Title:
Process Name
Name for the process. -
processVarName:
string
Title:
Process Variable Name
Unique variable name to identify the process. -
showAddToQuoteButton:
boolean
Title:
Show Add To Quote Button
Show add to quote button indicator. -
showCheckoutButton:
boolean
Title:
Show Check Out Button
Show check out button indicator. -
totalResults:
integer
Capture the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : links
Type:
Show Source
array
-
Array of:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : shopping-cart-item
Type:
Show Source
object
-
description:
string
Title:
Description
Description of the shopping cart item. -
enabled:
boolean
Title:
Enabled
Enabled indicator. -
id:
integer
Title:
ID
Unique identifier for a shopping cart item. -
links:
array links
-
mandatory:
boolean
Title:
Mandatory
Mandatory indicator. -
name:
string
Title:
Name
Name of the shopping cart item. -
parentId:
integer
Title:
Parent ID
Unique identifier for a shopping cart item parent. -
price:
object price
Price of the shopping cart item.
-
priceBookName:
string
Title:
Price Book Name
Price book name. -
quantity:
integer
Title:
Quantity
Quantity of the shopping cart item. -
subTotal:
object subTotal
Sub total of the shopping cart item.
Nested Schema : links
Type:
Show Source
array
-
Array of:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : price
Type:
object
Price of the shopping cart item.
Show Source
-
currency:
string
Title:
Currency
Currency of the shopping cart item. -
priceComment:
string
Title:
Price Comment
Comment of the shopping cart item price. -
value:
number
Title:
Price
Price of the shopping cart item.
Nested Schema : subTotal
Type:
object
Sub total of the shopping cart item.
Show Source
-
currency:
string
Title:
Sub total currency
Sub total currency of the shopping cart item. -
priceComment:
string
Title:
Sub total Comment
Comment of the shopping cart item sub total. -
value:
number
Title:
Sub total
Sub total of the shopping cart item.
Nested Schema : reference links
Type:
object
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related object
URL to the related object -
name:
string
-
rel:
string
Title:
Link Relationship to the current object
Default Value:self
Link Relationship to the current object
Examples
The following example shows how to retrieve the most recently modified shopping cart 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/quotes/actions/_getMostRecentShoppingCart
Request Body Sample
This sample includes optional pagination parameters.
{ "offset": 0, "limit": 2, "expandNodes": true, "totalResults": true }
Response Body Sample
This sample includes optional pagination parameters.
{ "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v16/shoppingCarts" } ], "priceBookApplicable": true, "showAddToQuoteButton": false, "showCheckoutButton": true, "processVarName": "transaction", "processName": "Quotes", "limit": 2, "offset": 0, "count": 2, "totalResults": 4, "hasMore": true, "items": [{ "id": 3022707088, "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/shoppingCartItems/3022707088" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/shoppingCartItems" } ], "parentId": -1, "name": "part100", "quantity": 1, "price": { "value": -1.0, "currency": "USD", "priceComment": "US Dollar price not defined." }, "mandatory": false, "enabled": true, "priceBookName": "", "description": "", "hasChildren": true }, { "id": 3022707090, "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/shoppingCartItems/3022707090" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/shoppingCartItems" } ], "parentId": 3022707088, "name": "part1", "quantity": 1, "price": { "value": 1.33, "currency": "USD" }, "mandatory": false, "enabled": true, "priceBookName": "Base Price", "description": "", "hasChildren": false } ] }