POST api/cart/save
Request Information
URI Parameters
None.
Body Parameters
CartModelName | Description | Type | Additional information |
---|---|---|---|
ID | globally unique identifier |
None. |
|
Session | SessionModel |
None. |
|
IsAnon | boolean |
None. |
|
Items | Collection of CartItemModel |
None. |
|
Amount | decimal number |
None. |
|
User | UserModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": "b3759c38-7907-4519-b3af-4b9bae3ab250", "Session": { "ID": 1, "SessionID": "sample string 1", "IPAddress": "sample string 2", "UserID": "e3645baf-ca4d-445a-8923-a1ae1ec5a292", "CartID": "c3a69d9f-985b-4330-9f8c-5cee3d6c6fba" }, "IsAnon": false, "Items": [ { "Product": { "ID": "af62dc48-9678-4b62-b32c-331b66c4a692", "Parent": "0efb13ee-aebb-43d5-b687-852ff1ef6b9e", "Category": "sample string 3", "ProductName": "sample string 4", "ProductDescription": "sample string 5", "ImageSource": "sample string 6", "ImageSourceLarge": "sample string 7", "ProductNumber": "sample string 8", "AmountBase": 9.0, "Amount": 10.0, "AmountDisplay": "$10" }, "CartItemID": 1, "Quantity": 2, "Price": 10.0, "CartID": "6d37f9c3-4408-4360-a9f7-c8e15d91f660" }, { "Product": { "ID": "af62dc48-9678-4b62-b32c-331b66c4a692", "Parent": "0efb13ee-aebb-43d5-b687-852ff1ef6b9e", "Category": "sample string 3", "ProductName": "sample string 4", "ProductDescription": "sample string 5", "ImageSource": "sample string 6", "ImageSourceLarge": "sample string 7", "ProductNumber": "sample string 8", "AmountBase": 9.0, "Amount": 10.0, "AmountDisplay": "$10" }, "CartItemID": 1, "Quantity": 2, "Price": 10.0, "CartID": "6d37f9c3-4408-4360-a9f7-c8e15d91f660" } ], "Amount": 1.0, "User": { "ID": "8d2fd199-e822-443d-a527-5f36ca9b7e34", "ContactID": "50c05bd5-63a6-4a90-9463-18821001c663", "AccountID": "1901d877-109c-4289-90e2-2353d2037775", "SaltKey1": 4, "SaltKey2": 5, "UserKey": "sample string 6", "PasswordChangeRequired": true, "PasswordExpirationDateTime": "2021-02-25T00:27:08.2318616-05:00", "PasswordExpired": true, "Active": true, "Password": "sample string 10", "Contact": { "ID": "0907e576-e7f9-4cae-b977-c6fc4bc2505d", "AccountID": "a582b7ee-a4a7-4e4d-8836-97b197331424", "AccountName": "sample string 3", "FirstName": "sample", "LastName": "6", "FullName": "sample 6", "EmailAddress": "sample string 7", "Salutation": "sample string 8", "Suffix": "sample string 9", "Nickname": "sample string 10", "JobTitle": "sample string 11", "Address1": "sample string 12", "Address2": "sample string 13", "Address3": "sample string 14", "City": "sample string 15", "State": "sample string 16", "ZipCode": "sample string 17", "Country": "sample string 18", "BusinessPhone": "sample string 19", "HomePhone": "sample string 20", "MobilePhone": "sample string 21", "Fax": "sample string 22", "IsInternational": true, "Preferences": { "PreferredContactMethod": 1, "DoNotEmail": true, "DoNotBulkEmail": true, "DoNotPhone": true, "DoNotFax": true, "DoNotPostalMail": true }, "SocialMedia": { "Facebook": { "ID": "3aed4b67-2b0c-4b22-a790-e22f97d28561", "Name": "sample string 1", "Uri": "sample string 2", "Type": 171020000 }, "Twitter": { "ID": "3aed4b67-2b0c-4b22-a790-e22f97d28561", "Name": "sample string 1", "Uri": "sample string 2", "Type": 171020000 }, "GooglePlus": { "ID": "3aed4b67-2b0c-4b22-a790-e22f97d28561", "Name": "sample string 1", "Uri": "sample string 2", "Type": 171020000 }, "Instagram": { "ID": "3aed4b67-2b0c-4b22-a790-e22f97d28561", "Name": "sample string 1", "Uri": "sample string 2", "Type": 171020000 }, "LinkedIn": { "ID": "3aed4b67-2b0c-4b22-a790-e22f97d28561", "Name": "sample string 1", "Uri": "sample string 2", "Type": 171020000 }, "Pinterest": { "ID": "3aed4b67-2b0c-4b22-a790-e22f97d28561", "Name": "sample string 1", "Uri": "sample string 2", "Type": 171020000 }, "YouTube": { "ID": "3aed4b67-2b0c-4b22-a790-e22f97d28561", "Name": "sample string 1", "Uri": "sample string 2", "Type": 171020000 } } } } }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.