Get All Shopping Cart Items
get
/rest/v19/shoppingCarts/{processVarName}/shoppingCartItems
This endpoint returns all items for a shopping cart.
Request
Path Parameters
-
processVarName(required): string
The unique variable name to identify the process.
Response
Default Response
The response for getting the shopping cart.
Nested Schema : links
Type:
Show Source
array-
Array of:
object reference links
Title:
reference linksReference links for the Parent, Self, Children and Related as applicable
Nested Schema : shopping-cart-item
Type:
Show Source
object-
description:
string
Title:
DescriptionDescription of the shopping cart item. -
enabled:
boolean
Title:
EnabledEnabled indicator. -
id:
integer
Title:
IDUnique identifier for a shopping cart item. -
links:
array links
-
mandatory:
boolean
Title:
MandatoryMandatory indicator. -
name:
string
Title:
NameName of the shopping cart item. -
parentId:
integer
Title:
Parent IDUnique identifier for a shopping cart item parent. -
price:
object price
Price of the shopping cart item.
-
priceBookName:
string
Title:
Price Book NamePrice book name. -
quantity:
integer
Title:
QuantityQuantity 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 linksReference links for the Parent, Self, Children and Related as applicable
Nested Schema : price
Type:
objectPrice of the shopping cart item.
Show Source
-
currency:
string
Title:
CurrencyCurrency of the shopping cart item. -
priceComment:
string
Title:
Price CommentComment of the shopping cart item price. -
value:
number
Title:
PricePrice of the shopping cart item.
Nested Schema : subTotal
Type:
objectSub total of the shopping cart item.
Show Source
-
currency:
string
Title:
Sub total currencySub total currency of the shopping cart item. -
priceComment:
string
Title:
Sub total CommentComment of the shopping cart item sub total. -
value:
number
Title:
Sub totalSub total of the shopping cart item.
Nested Schema : reference links
Type:
objectTitle:
reference linksReference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related objectURL to the related object -
name:
string
-
rel:
string
Title:
Link Relationship to the current objectDefault Value:selfLink Relationship to the current object
Examples
The following example shows how to retrieve all items for a shopping cart by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X GET -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/shoppingCarts/transaction/shoppingCartItems
Response Body Sample
{
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/shoppingCarts/transaction/shoppingCartItems"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/shoppingCarts/transaction"
}
],
"items": [{
"id": 3022707088,
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/shoppingCarts/transaction/shoppingCartItems/3022707088"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/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/v19/shoppingCarts/transaction/shoppingCartItems/3022707090"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/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
}, {
"id": 3022707091,
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/shoppingCarts/transaction/shoppingCartItems/3022707091"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/shoppingCarts/transaction/shoppingCartItems"
}
],
"parentId": 3022707088,
"name": "part2",
"quantity": 2,
"price": {
"value": 2.33,
"currency": "USD"
},
"mandatory": false,
"enabled": true,
"priceBookName": "Base Price",
"description": "",
"hasChildren": false
}, {
"id": 3022707092,
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/shoppingCarts/transaction/shoppingCartItems/3022707092"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/shoppingCarts/transaction/shoppingCartItems"
}
],
"parentId": 3022707088,
"name": "part3",
"quantity": 3,
"price": {
"value": 3.33,
"currency": "USD"
},
"mandatory": false,
"enabled": true,
"priceBookName": "Base Price",
"description": "",
"hasChildren": false
}
]
}