Get Shopping Cart Item

get

/rest/v16/shoppingCarts/{processVarName}/shoppingCartItems/{id}

This endpoint returns an item from a shopping cart.

Request

Path Parameters
Back to Top

Response

Default Response

The response for getting the shopping cart item.
Body ()
Root Schema : shopping-cart-item
Type: object
Show Source
Nested Schema : price
Type: object
Price of the shopping cart item.
Show Source
Nested Schema : subTotal
Type: object
Sub total of the shopping cart item.
Show Source
Back to Top

Examples

The following example shows how to retrieve an item from 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 - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/shoppingCartItems/302270788

Response Body Sample

{
  "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
}
Back to Top