Get All Shopping Cart Items

get

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

This endpoint returns all items for a shopping cart.

Request

Path Parameters
Back to Top

Response

Default Response

The response for getting the shopping cart.
Body ()
Root Schema : shopping-cart-item-list-response
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested 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 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 - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/shoppingCartItems

Response Body Sample

{
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/shoppingCartItems"
    }, {
      "rel": "parent",
      "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction"
    }
  ],
  "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
    }, {
      "id": 3022707091,
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/shoppingCartItems/3022707091"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/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/v16/shoppingCarts/transaction/shoppingCartItems/3022707092"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/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
    }
  ]
}
Back to Top