CyberStore Cart Web Service
MethodGetCart
CyberStore Cart Web Service > All Operations Resource Group : GetCart (Method)
Description
Gets the current cart and details of the shopper. Introduced in v2.21.
Request (GetCartSoapIn)

The request body is of type GetCart.

Example
The following example shows how to perform the web operation in CyberStore
// Example: 
// Gets the current shopper's cart header
// and details

MakeAJAXCall("Cart.GetCart", {}, console.log)
200 Response (GetCartSoapOut)

The response body is of type GetCartResponse.

Response Body Parameters

NameDescriptionData Type

A string value containing a JSON object.

{
    "Data": {
        "ItemCount": 1,
        "SubTotalAmount": 131.0,
        "Weight": 39.0,
        "Volume": 1.2,
        "LastUpdated": "2022-03-29T16:06:49.86",
        "SubTotal": "$131.00 ",
        "Detail": [{
            "Row": 1,
            "ID": 1003,
            "Item_ID": 632,
            "Parent_ID": -1,
            "StockCode": "B1208",
            "Description": "Seat Stay Tube",
            "Quantity": 1,
            "UOM": "EA",
            "UnitType": 1,
            "DefaultPriceAmount": 131.0,
            "CustomerPriceAmount": 131.0,
            "DiscountPriceAmount": 131.0,
            "WebPriceAmount": 131.0,
            "TotalPriceAmount": 131.0,
            "UnitWeight": 1.0,
            "UnitVolume": 0.0,
            "IsBackordered": false,
            "Warehouse": "",
            "LastUpdated": "2022-03-29T16:10:46.89",
            "URL": "/ECommerce/product/b1208/seat-stay-tube",
            "Photo": "/Ecommerce/site/images/Photo1/B1208.jpg",
            "DefaultPrice": "$131.00 ",
            "CustomerPrice": "$131.00 ",
            "DiscountPrice": "$131.00 ",
            "WebPrice": "$131.00 ",
            "TotalPrice": "$131.00 "
        }]
    },
    "Result": {
        "Success": true,
        "Message": "There are 1 items in the Shopping Cart.",
        "ElapsedTime": "136 ms"
    }
}
TaskOfString
See Also
All Operations Resource GroupCyberStore Cart Web Service