The request body is of type AddOrderItemsToCart.
Request Body Parameters
Name | Description | Data Type |
---|---|---|
OrderNumber | The Order Number of the sales order. | xml:string |
Method | AddOrderItemsToCart |
The request body is of type AddOrderItemsToCart.
Name | Description | Data Type |
---|---|---|
OrderNumber | The Order Number of the sales order. | xml:string |
// Example: Add the order line items and quantities to the current cart for Order Number 4413 MakeAJAXCall("Cart.AddOrderItemsToCart",{ OrderNumber: '4413' },console.log)
The response body is of type AddOrderItemsToCartResponse.
Name | Description | Data Type |
---|---|---|
AddOrderItemsToCartResult | A string value containing a JSON object containing the details of the items in the cart after peforming the add item operation. // Example 1: A good response { "Data": { "ItemCount": 2, "SubTotalAmount": 760.0, "Weight": 20.0, "Volume": 0.6, "LastUpdated": "2023-03-06T10:22:42.657", "SubTotal": "$760.00", "Detail": [ { "Row": 1, "ID": 14709, "Item_ID": 580, "Parent_ID": -1, "StockCode": "A101", "Description": "15 Speed Mountain Bike Girls", "Quantity": 2, "UOM": "PAL", "UnitType": 1, "DefaultPriceAmount": 560.0, "CustomerPriceAmount": 400.0, "DiscountPriceAmount": 400.0, "WebPriceAmount": 380.0, "TotalPriceAmount": 760.0, "UnitWeight": 10.0, "UnitVolume": 0.3, "IsBackordered": false, "Warehouse": "", "LastUpdated": "2023-03-06T10:24:24.97", "URL": "/ECommerce/product/drs-0204-3/rulon-lr-sleeve-bearing", "Photo": "/Ecommerce/site/images/Photo1/A101.jpg", "DefaultPrice": "$560.00", "CustomerPrice": "$400.00", "DiscountPrice": "$400.00", "WebPrice": "$380.00", "TotalPrice": "$760.00" } ] }, "LookupData": { "Warehouses": [ { "Warehouse": "E", "Description": "Eastern Zone Warehouse" }, { "Warehouse": "S", "Description": "Southern Warehouse" }, { "Warehouse": "N", "Description": "Northern Warehouse" }, { "Warehouse": "RM", "Description": "Raw Materials Warehouse" }, { "Warehouse": "SA", "Description": "Subassembly Warehouse" } ], "Profile": { "PreferredWarehouse": "", "EnableWarehouseSelection": "False" } }, "Result": { "Success": true, "Message": "The order items were added to the cart successfully. There are 2 items in the Shopping Cart.", "ElapsedTime": "571 ms" } } // Example 2: A Bad Responses { "Data": {}, "LookupData": { "Warehouses": [ { "Warehouse": "E", "Description": "Eastern Zone Warehouse" }, { "Warehouse": "S", "Description": "Southern Warehouse" }, { "Warehouse": "N", "Description": "Northern Warehouse" }, { "Warehouse": "RM", "Description": "Raw Materials Warehouse" }, { "Warehouse": "SA", "Description": "Subassembly Warehouse" } ], "Profile": { "PreferredWarehouse": "", "EnableWarehouseSelection": "False" } }, "Result": { "Success": false, "Message": "The requested order is not linked to the user account in the session. ", "ElapsedTime": "9 ms" } } | xml:string |