Data Object: Shopping Cart

Get Shopping Cart


{{ data.cart.get() }}

HTTP/1.1 200 OK
{
     id: 5,
     userId: 10,
     guestSessionId: "45522ssdf",
     totalAmount: 10000,
     currencyId: 1,
     currencyName: "AMD",
     created: "2017-03-16 16:00",
     updated: "2017-03-20 20:00",
     items: [
          {
               id: 15,
               shoppingCartId: 5,
               productId: 155,
               product: {
                    See  "Get Product"
               },
               quantity: 2,
               created: "2017-03-20 18:00",
               updated: "2017-03-20 20:00"
          },
          ...
     ]
}

Parameter Type Description
id int Cart identifier
userId int Authenticated customer identifier
guestSessionId string Guest session identifier
totalAmount float Cart items total amount
currencyId int Currency identifier
currencyName string Currency name
created string Cart creation date
updated string Cart modified date
items array Wish list items
item.id int Cart item identifier
item.productId int Cart item product identifier
item.product obj Cart item product entity
item.quantity int Cart item quantity
item.created string Cart item creation date
item.updated string Cart item modified date