Get All Shopping Cart Layouts
get
/rest/v19/shoppingCarts/{processVarName}/layouts
This endpoint returns the layout definition for all shopping carts.
Request
Path Parameters
-
processVarName(required): string
The unique variable name to identify the process.
Response
Default Response
The response for getting the shopping cart layout
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-layout-response
Type:
Show Source
object-
checkoutButtonLabel:
string
Title:
Checkout Button LabelCheckout button label. -
clearButtonLabel:
string
Title:
Clear Button LabelClear button label. -
columns:
object shopping-cart-layout-columns
-
displayTotalType:
string
Title:
Display Total TypeAllowed Values:[ "TOP", "BOTTOM", "NONE" ]Display total type. -
enabled:
boolean
Title:
EnabledEnabled indicator. -
hideButtonLabel:
string
Title:
Hide Button LabelHide button label. -
id:
integer
Title:
Layout IDLayout identifier. -
itemsSelectedByDefault:
boolean
Title:
Item Selected By DefaultItem selected by default indicator. -
links:
array links
-
processName:
string
Title:
Process NameProcess name. -
removeItemsOnCheckout:
boolean
Title:
Remove Items On CheckoutRemove items on checkout indicator. -
showClearButton:
boolean
Title:
Show Clear ButtonShow clear button indicator. -
showTranslationsButton:
boolean
Title:
Show Translations ButtonShow translations button indicator. -
VarName:
string
Title:
Layout Variable NameLayout variable name.
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-layout-column
Type:
Show Source
object-
columnDesc:
string
Title:
Column DescriptionColumn description. -
columnLabel:
string
Title:
Column LabelColulmn label. -
columnType:
string
Title:
Column TypeAllowed Values:[ "ITEM", "PRICE", "QUANTITY", "SUBTOTAL", "PRICEBOOK", "DESCRIPTION" ]Column type. -
editable:
boolean
Title:
EditableEditable indicator. -
editableApplicable:
boolean
Title:
Editable ApplicableEditable applicable indicator. -
id:
integer
Title:
IDUnique identifier for a layout column. -
orderNumber:
integer
Title:
Order NumberOrder number. -
valueAlignment:
string
Title:
Value AlignmentValue alignment. -
visible:
boolean
Title:
VisibleVisible indicator.
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 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 -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/shoppingCarts/transaction/layouts
Response Body Sample
{
"items": [{
"id": 6966063,
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/shoppingCarts/transaction/layouts/desktopLayout"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/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/v19/shoppingCarts/transaction/layouts"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/shoppingCarts/transaction"
}
]
}