POST api/cart/save

Request Information

URI Parameters

None.

Body Parameters

CartModel
NameDescriptionTypeAdditional 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": "57480a3c-5a45-454f-a11e-6303b51ca0d2",
  "Session": {
    "ID": 1,
    "SessionID": "sample string 1",
    "IPAddress": "sample string 2",
    "UserID": "42386059-169b-4e0a-98a8-57cec1dc1d52",
    "CartID": "7ad9e690-98ca-49f4-b551-17e325aa9ffc"
  },
  "IsAnon": false,
  "Items": [
    {
      "Product": {
        "ID": "b0ba54a0-f956-459c-97b6-4e83b277fb5e",
        "Parent": "4855e6e3-cc71-49a4-b75d-c76a2e8ea5d0",
        "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": "575f694c-97fa-430a-a980-54ed8b9bbd87"
    },
    {
      "Product": {
        "ID": "b0ba54a0-f956-459c-97b6-4e83b277fb5e",
        "Parent": "4855e6e3-cc71-49a4-b75d-c76a2e8ea5d0",
        "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": "575f694c-97fa-430a-a980-54ed8b9bbd87"
    }
  ],
  "Amount": 1.0,
  "User": {
    "ID": "394fae16-0b42-4940-91cf-2d7500a43b9a",
    "ContactID": "e5cefa12-071b-4245-8e12-ba2948781bae",
    "AccountID": "bb9e450c-35ff-4453-819a-6d022068846c",
    "SaltKey1": 4,
    "SaltKey2": 5,
    "UserKey": "sample string 6",
    "PasswordChangeRequired": true,
    "PasswordExpirationDateTime": "2019-12-09T13:59:43.6834794-05:00",
    "PasswordExpired": true,
    "Active": true,
    "Password": "sample string 10",
    "Contact": {
      "ID": "1621ae66-b438-43ce-bb2b-a3fb318471fe",
      "AccountID": "b31327f2-9dd1-448f-804d-ab9c13f88595",
      "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": "f2422a79-0a36-40e7-b596-347241ee5af9",
          "Name": "sample string 1",
          "Uri": "sample string 2",
          "Type": 171020000
        },
        "Twitter": {
          "ID": "f2422a79-0a36-40e7-b596-347241ee5af9",
          "Name": "sample string 1",
          "Uri": "sample string 2",
          "Type": 171020000
        },
        "GooglePlus": {
          "ID": "f2422a79-0a36-40e7-b596-347241ee5af9",
          "Name": "sample string 1",
          "Uri": "sample string 2",
          "Type": 171020000
        },
        "Instagram": {
          "ID": "f2422a79-0a36-40e7-b596-347241ee5af9",
          "Name": "sample string 1",
          "Uri": "sample string 2",
          "Type": 171020000
        },
        "LinkedIn": {
          "ID": "f2422a79-0a36-40e7-b596-347241ee5af9",
          "Name": "sample string 1",
          "Uri": "sample string 2",
          "Type": 171020000
        },
        "Pinterest": {
          "ID": "f2422a79-0a36-40e7-b596-347241ee5af9",
          "Name": "sample string 1",
          "Uri": "sample string 2",
          "Type": 171020000
        },
        "YouTube": {
          "ID": "f2422a79-0a36-40e7-b596-347241ee5af9",
          "Name": "sample string 1",
          "Uri": "sample string 2",
          "Type": 171020000
        }
      }
    }
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.