Get All Shopping Cart Layouts

get

/rest/v16/shoppingCarts/{processVarName}/layouts

This endpoint returns the layout definition for all shopping carts.

Request

Path Parameters
Back to Top

Response

Default Response

The response for getting the shopping cart layout
Body ()
Root Schema : shopping-cart-layout-list-response
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : shopping-cart-layout-response
Type: object
Show Source
Nested Schema : shopping-cart-layout-columns
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : shopping-cart-layout-column
Type: object
Show Source
Back to Top

Examples

The following example returns the layout definition for all shopping carts 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/layouts

Response Body Sample

{
  "items": [{
      "id": 6966063,
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/layouts/desktopLayout"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/layouts"
        }
      ],
      "varName": "desktopLayout",
      "processName": "Quotes",
      "enabled": true,
      "displayTotalType": "TOP",
      "checkoutButtonLabel": "Proceed To Checkout",
      "hideButtonLabel": "Hide",
      "clearButtonLabel": "Clear Cart",
      "showClearButton": true,
      "itemsSelectedByDefault": true,
      "showTranslationsButton": false,
      "removeItemsOnCheckout": false,
      "columns": {
        "items": [{
            "id": 6966066,
            "columnLabel": "Item Added",
            "columnDesc": "",
            "orderNumber": 0,
            "columnType": "ITEM",
            "valueAlignment": "LEFT_ALIGN",
            "editable": false,
            "editableApplicable": false,
            "visible": false
          }, {
            "id": 6966065,
            "columnLabel": "Quantity",
            "columnDesc": "",
            "orderNumber": 1,
            "columnType": "QUANTITY",
            "valueAlignment": "LEFT_ALIGN",
            "editable": true,
            "editableApplicable": true,
            "visible": false
          }, {
            "id": 6966067,
            "columnLabel": "Unit Price",
            "columnDesc": "",
            "orderNumber": 2,
            "columnType": "PRICE",
            "valueAlignment": "LEFT_ALIGN",
            "editable": false,
            "editableApplicable": false,
            "visible": false
          }, {
            "id": 6966068,
            "columnLabel": "Subtotal",
            "columnDesc": "",
            "orderNumber": 3,
            "columnType": "SUBTOTAL",
            "valueAlignment": "LEFT_ALIGN",
            "editable": false,
            "editableApplicable": false,
            "visible": false
          }, {
            "id": 6966069,
            "columnLabel": "Price Book",
            "columnDesc": "",
            "orderNumber": 4,
            "columnType": "PRICEBOOK",
            "valueAlignment": "LEFT_ALIGN",
            "editable": false,
            "editableApplicable": false,
            "visible": false
          }, {
            "id": 7277423,
            "columnLabel": "Description",
            "columnDesc": "",
            "orderNumber": 5,
            "columnType": "DESCRIPTION",
            "valueAlignment": "LEFT_ALIGN",
            "editable": false,
            "editableApplicable": false,
            "visible": false
          }
        ]
      }
    }
  ],
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction/layouts"
    }, {
      "rel": "parent",
      "href": "https://sitename.oracle.com/rest/v16/shoppingCarts/transaction"
    }
  ]
}
Back to Top