Get Shopping Cart
get
/rest/v16/shoppingCarts/{processVarName}
This endpoint returns a shopping cart for a process.
Request
Path Parameters
-
processVarName(required): string
The unique variable name to identify the process.
Response
Default Response
The response for getting the shopping cart.
Root Schema : shopping-cart-response
Type:
Show Source
object
-
links:
array links
-
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. -
shoppingCartItems:
object shoppingCartItems
-
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.
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 : 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
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
Examples
The following example shows how to retrieve a shopping cart for a process by submitting a GET 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
Response Body Sample
{ "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", "shoppingCartItems": { "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/shoppingCartItems" }, { "rel": "parent", "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction" } ] } }