Get Shopping Cart (POST)

post

/rest/v16/shoppingCarts/{processVarName}/actions/_getShoppingCart

This endpoint returns the shopping cart associated with the specified process.

Request

Path Parameters
Body ()
Root Schema : shopping-cart-pagination-request
Type: object
Show Source
Nested Schema : nodesExceptionList
Type: array
List of ids.
Show Source
Back to Top

Response

Default Response

The response for getting the shopping cart
Body ()
Root Schema : shopping-cart-pagination-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 the shopping cart associated with the specified process 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/transaction/actions/_getShoppingCart

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