POST api/shoppingcart/save?contactId={contactId}&saveCart={saveCart}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
contactId

globally unique identifier

Required

saveCart

boolean

Default value is False

Body Parameters

ShoppingCart
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

AccountId

globally unique identifier

None.

ShoppingCartItems

Collection of ShoppingCartItem

None.

Messages

Collection of string

None.

CartType

OptionSetValueModel

None.

IsVoucherMinimumQuantityMet

boolean

None.

VoucherCartMinimumQuantity

integer

None.

CartNumber

string

None.

ContactMemberId

string

None.

AccountMemberId

string

None.

OrganizationName

string

None.

ContactName

string

None.

CouponValidation

CouponValidation

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "1b3c16cd-32f7-471a-a263-ea7edf74cf9d",
  "AccountId": "b764bf4e-3ed4-480f-bf13-24ea93cb5b9a",
  "ShoppingCartItems": [
    {
      "Id": "5840d892-6451-4d15-95ae-b11ab11b792e",
      "WebProductId": "sample string 2",
      "WebProductName": "sample string 3",
      "ParentWebProductId": "sample string 4",
      "ProgramId": "sample string 5",
      "ProgramName": "sample string 6",
      "ProgramShortName": "sample string 7",
      "Name": "sample string 8",
      "Price": 9.0,
      "TotalPrice": 10.0,
      "RetailPrice": 11.0,
      "Quantity": 12,
      "RecurringBilling": true,
      "CouponId": "sample string 14",
      "IsShippable": true,
      "NotSoldSeparately": true,
      "Category": {
        "Label": "sample string 1",
        "Value": 2
      },
      "CourseDateSelected": {
        "Id": "b4e7c1ce-6e44-47c0-930a-926031d65480",
        "Name": "sample string 2"
      },
      "IsHiddenProduct": true,
      "CountryRestriction": true,
      "EligibleCountries": [
        {
          "Id": "sample string 1"
        },
        {
          "Id": "sample string 1"
        }
      ],
      "IsPresetBundle": true,
      "PresetBundleProducts": [
        {
          "WebProductId": "c9c45562-6bb7-4e67-924f-c763918c6280",
          "WebProductName": "sample string 2"
        },
        {
          "WebProductId": "c9c45562-6bb7-4e67-924f-c763918c6280",
          "WebProductName": "sample string 2"
        }
      ]
    },
    {
      "Id": "5840d892-6451-4d15-95ae-b11ab11b792e",
      "WebProductId": "sample string 2",
      "WebProductName": "sample string 3",
      "ParentWebProductId": "sample string 4",
      "ProgramId": "sample string 5",
      "ProgramName": "sample string 6",
      "ProgramShortName": "sample string 7",
      "Name": "sample string 8",
      "Price": 9.0,
      "TotalPrice": 10.0,
      "RetailPrice": 11.0,
      "Quantity": 12,
      "RecurringBilling": true,
      "CouponId": "sample string 14",
      "IsShippable": true,
      "NotSoldSeparately": true,
      "Category": {
        "Label": "sample string 1",
        "Value": 2
      },
      "CourseDateSelected": {
        "Id": "b4e7c1ce-6e44-47c0-930a-926031d65480",
        "Name": "sample string 2"
      },
      "IsHiddenProduct": true,
      "CountryRestriction": true,
      "EligibleCountries": [
        {
          "Id": "sample string 1"
        },
        {
          "Id": "sample string 1"
        }
      ],
      "IsPresetBundle": true,
      "PresetBundleProducts": [
        {
          "WebProductId": "c9c45562-6bb7-4e67-924f-c763918c6280",
          "WebProductName": "sample string 2"
        },
        {
          "WebProductId": "c9c45562-6bb7-4e67-924f-c763918c6280",
          "WebProductName": "sample string 2"
        }
      ]
    }
  ],
  "Messages": [
    "sample string 1",
    "sample string 2"
  ],
  "CartType": {
    "Label": "sample string 1",
    "Value": 2
  },
  "IsVoucherMinimumQuantityMet": true,
  "VoucherCartMinimumQuantity": 4,
  "CartNumber": "sample string 5",
  "ContactMemberId": "sample string 6",
  "AccountMemberId": "sample string 7",
  "OrganizationName": "sample string 8",
  "ContactName": "sample string 9",
  "CouponValidation": {
    "EvaluateCoupon": true,
    "MissingProducts": "sample string 2",
    "RemovePresetBundle": true,
    "RemovePresetBundleMessage": "sample string 4",
    "CouponValidationMessage": {
      "MessageCode": "sample string 1",
      "MessageType": "sample string 2",
      "MessageDescription": "sample string 3"
    },
    "CouponInCart": true,
    "DiscountValue": "sample string 6"
  }
}

application/xml, text/xml

Sample:
<ShoppingCart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models">
  <AccountId>b764bf4e-3ed4-480f-bf13-24ea93cb5b9a</AccountId>
  <AccountMemberId>sample string 7</AccountMemberId>
  <CartNumber>sample string 5</CartNumber>
  <CartType xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Label>sample string 1</d2p1:Label>
    <d2p1:Value>2</d2p1:Value>
  </CartType>
  <ContactMemberId>sample string 6</ContactMemberId>
  <ContactName>sample string 9</ContactName>
  <CouponValidation>
    <CouponInCart>true</CouponInCart>
    <CouponValidationMessage>
      <MessageCode>sample string 1</MessageCode>
      <MessageDescription>sample string 3</MessageDescription>
      <MessageType>sample string 2</MessageType>
    </CouponValidationMessage>
    <DiscountValue>sample string 6</DiscountValue>
    <EvaluateCoupon>true</EvaluateCoupon>
    <MissingProducts>sample string 2</MissingProducts>
    <RemovePresetBundle>true</RemovePresetBundle>
    <RemovePresetBundleMessage>sample string 4</RemovePresetBundleMessage>
  </CouponValidation>
  <Id>1b3c16cd-32f7-471a-a263-ea7edf74cf9d</Id>
  <IsVoucherMinimumQuantityMet>true</IsVoucherMinimumQuantityMet>
  <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Messages>
  <OrganizationName>sample string 8</OrganizationName>
  <ShoppingCartItems>
    <ShoppingCartItem>
      <Category xmlns:d4p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
        <d4p1:Label>sample string 1</d4p1:Label>
        <d4p1:Value>2</d4p1:Value>
      </Category>
      <CountryRestriction>true</CountryRestriction>
      <CouponId>sample string 14</CouponId>
      <CourseDateSelected xmlns:d4p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
        <d4p1:Id>b4e7c1ce-6e44-47c0-930a-926031d65480</d4p1:Id>
        <d4p1:Name>sample string 2</d4p1:Name>
      </CourseDateSelected>
      <EligibleCountries>
        <EligibleCountry>
          <Id>sample string 1</Id>
        </EligibleCountry>
        <EligibleCountry>
          <Id>sample string 1</Id>
        </EligibleCountry>
      </EligibleCountries>
      <Id>5840d892-6451-4d15-95ae-b11ab11b792e</Id>
      <IsHiddenProduct>true</IsHiddenProduct>
      <IsPresetBundle>true</IsPresetBundle>
      <IsShippable>true</IsShippable>
      <Name>sample string 8</Name>
      <NotSoldSeparately>true</NotSoldSeparately>
      <ParentWebProductId>sample string 4</ParentWebProductId>
      <PresetBundleProducts>
        <PresetBundleProduct>
          <WebProductId>c9c45562-6bb7-4e67-924f-c763918c6280</WebProductId>
          <WebProductName>sample string 2</WebProductName>
        </PresetBundleProduct>
        <PresetBundleProduct>
          <WebProductId>c9c45562-6bb7-4e67-924f-c763918c6280</WebProductId>
          <WebProductName>sample string 2</WebProductName>
        </PresetBundleProduct>
      </PresetBundleProducts>
      <Price>9</Price>
      <ProgramId>sample string 5</ProgramId>
      <ProgramName>sample string 6</ProgramName>
      <ProgramShortName>sample string 7</ProgramShortName>
      <Quantity>12</Quantity>
      <RecurringBilling>true</RecurringBilling>
      <RetailPrice>11</RetailPrice>
      <TotalPrice>10</TotalPrice>
      <WebProductId>sample string 2</WebProductId>
      <WebProductName>sample string 3</WebProductName>
    </ShoppingCartItem>
    <ShoppingCartItem>
      <Category xmlns:d4p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
        <d4p1:Label>sample string 1</d4p1:Label>
        <d4p1:Value>2</d4p1:Value>
      </Category>
      <CountryRestriction>true</CountryRestriction>
      <CouponId>sample string 14</CouponId>
      <CourseDateSelected xmlns:d4p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
        <d4p1:Id>b4e7c1ce-6e44-47c0-930a-926031d65480</d4p1:Id>
        <d4p1:Name>sample string 2</d4p1:Name>
      </CourseDateSelected>
      <EligibleCountries>
        <EligibleCountry>
          <Id>sample string 1</Id>
        </EligibleCountry>
        <EligibleCountry>
          <Id>sample string 1</Id>
        </EligibleCountry>
      </EligibleCountries>
      <Id>5840d892-6451-4d15-95ae-b11ab11b792e</Id>
      <IsHiddenProduct>true</IsHiddenProduct>
      <IsPresetBundle>true</IsPresetBundle>
      <IsShippable>true</IsShippable>
      <Name>sample string 8</Name>
      <NotSoldSeparately>true</NotSoldSeparately>
      <ParentWebProductId>sample string 4</ParentWebProductId>
      <PresetBundleProducts>
        <PresetBundleProduct>
          <WebProductId>c9c45562-6bb7-4e67-924f-c763918c6280</WebProductId>
          <WebProductName>sample string 2</WebProductName>
        </PresetBundleProduct>
        <PresetBundleProduct>
          <WebProductId>c9c45562-6bb7-4e67-924f-c763918c6280</WebProductId>
          <WebProductName>sample string 2</WebProductName>
        </PresetBundleProduct>
      </PresetBundleProducts>
      <Price>9</Price>
      <ProgramId>sample string 5</ProgramId>
      <ProgramName>sample string 6</ProgramName>
      <ProgramShortName>sample string 7</ProgramShortName>
      <Quantity>12</Quantity>
      <RecurringBilling>true</RecurringBilling>
      <RetailPrice>11</RetailPrice>
      <TotalPrice>10</TotalPrice>
      <WebProductId>sample string 2</WebProductId>
      <WebProductName>sample string 3</WebProductName>
    </ShoppingCartItem>
  </ShoppingCartItems>
  <VoucherCartMinimumQuantity>4</VoucherCartMinimumQuantity>
</ShoppingCart>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ShoppingCart
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

AccountId

globally unique identifier

None.

ShoppingCartItems

Collection of ShoppingCartItem

None.

Messages

Collection of string

None.

CartType

OptionSetValueModel

None.

IsVoucherMinimumQuantityMet

boolean

None.

VoucherCartMinimumQuantity

integer

None.

CartNumber

string

None.

ContactMemberId

string

None.

AccountMemberId

string

None.

OrganizationName

string

None.

ContactName

string

None.

CouponValidation

CouponValidation

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "25e5fb22-bcfc-42a4-acd7-57f246517b50",
  "AccountId": "bc48412a-ce76-4567-bca0-97e0cafb8681",
  "ShoppingCartItems": [
    {
      "Id": "9b2c0a6a-c2f0-4f9d-9f50-2baa778089a4",
      "WebProductId": "sample string 2",
      "WebProductName": "sample string 3",
      "ParentWebProductId": "sample string 4",
      "ProgramId": "sample string 5",
      "ProgramName": "sample string 6",
      "ProgramShortName": "sample string 7",
      "Name": "sample string 8",
      "Price": 9.0,
      "TotalPrice": 10.0,
      "RetailPrice": 11.0,
      "Quantity": 12,
      "RecurringBilling": true,
      "CouponId": "sample string 14",
      "IsShippable": true,
      "NotSoldSeparately": true,
      "Category": {
        "Label": "sample string 1",
        "Value": 2
      },
      "CourseDateSelected": {
        "Id": "7338d3b4-0c45-4e9e-888a-7a1f163fa136",
        "Name": "sample string 2"
      },
      "IsHiddenProduct": true,
      "CountryRestriction": true,
      "EligibleCountries": [
        {
          "Id": "sample string 1"
        },
        {
          "Id": "sample string 1"
        }
      ],
      "IsPresetBundle": true,
      "PresetBundleProducts": [
        {
          "WebProductId": "d37946e3-22d8-4291-8721-398d4c8cc7b6",
          "WebProductName": "sample string 2"
        },
        {
          "WebProductId": "d37946e3-22d8-4291-8721-398d4c8cc7b6",
          "WebProductName": "sample string 2"
        }
      ]
    },
    {
      "Id": "9b2c0a6a-c2f0-4f9d-9f50-2baa778089a4",
      "WebProductId": "sample string 2",
      "WebProductName": "sample string 3",
      "ParentWebProductId": "sample string 4",
      "ProgramId": "sample string 5",
      "ProgramName": "sample string 6",
      "ProgramShortName": "sample string 7",
      "Name": "sample string 8",
      "Price": 9.0,
      "TotalPrice": 10.0,
      "RetailPrice": 11.0,
      "Quantity": 12,
      "RecurringBilling": true,
      "CouponId": "sample string 14",
      "IsShippable": true,
      "NotSoldSeparately": true,
      "Category": {
        "Label": "sample string 1",
        "Value": 2
      },
      "CourseDateSelected": {
        "Id": "7338d3b4-0c45-4e9e-888a-7a1f163fa136",
        "Name": "sample string 2"
      },
      "IsHiddenProduct": true,
      "CountryRestriction": true,
      "EligibleCountries": [
        {
          "Id": "sample string 1"
        },
        {
          "Id": "sample string 1"
        }
      ],
      "IsPresetBundle": true,
      "PresetBundleProducts": [
        {
          "WebProductId": "d37946e3-22d8-4291-8721-398d4c8cc7b6",
          "WebProductName": "sample string 2"
        },
        {
          "WebProductId": "d37946e3-22d8-4291-8721-398d4c8cc7b6",
          "WebProductName": "sample string 2"
        }
      ]
    }
  ],
  "Messages": [
    "sample string 1",
    "sample string 2"
  ],
  "CartType": {
    "Label": "sample string 1",
    "Value": 2
  },
  "IsVoucherMinimumQuantityMet": true,
  "VoucherCartMinimumQuantity": 4,
  "CartNumber": "sample string 5",
  "ContactMemberId": "sample string 6",
  "AccountMemberId": "sample string 7",
  "OrganizationName": "sample string 8",
  "ContactName": "sample string 9",
  "CouponValidation": {
    "EvaluateCoupon": true,
    "MissingProducts": "sample string 2",
    "RemovePresetBundle": true,
    "RemovePresetBundleMessage": "sample string 4",
    "CouponValidationMessage": {
      "MessageCode": "sample string 1",
      "MessageType": "sample string 2",
      "MessageDescription": "sample string 3"
    },
    "CouponInCart": true,
    "DiscountValue": "sample string 6"
  }
}

application/xml, text/xml

Sample:
<ShoppingCart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models">
  <AccountId>bc48412a-ce76-4567-bca0-97e0cafb8681</AccountId>
  <AccountMemberId>sample string 7</AccountMemberId>
  <CartNumber>sample string 5</CartNumber>
  <CartType xmlns:d2p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
    <d2p1:Label>sample string 1</d2p1:Label>
    <d2p1:Value>2</d2p1:Value>
  </CartType>
  <ContactMemberId>sample string 6</ContactMemberId>
  <ContactName>sample string 9</ContactName>
  <CouponValidation>
    <CouponInCart>true</CouponInCart>
    <CouponValidationMessage>
      <MessageCode>sample string 1</MessageCode>
      <MessageDescription>sample string 3</MessageDescription>
      <MessageType>sample string 2</MessageType>
    </CouponValidationMessage>
    <DiscountValue>sample string 6</DiscountValue>
    <EvaluateCoupon>true</EvaluateCoupon>
    <MissingProducts>sample string 2</MissingProducts>
    <RemovePresetBundle>true</RemovePresetBundle>
    <RemovePresetBundleMessage>sample string 4</RemovePresetBundleMessage>
  </CouponValidation>
  <Id>25e5fb22-bcfc-42a4-acd7-57f246517b50</Id>
  <IsVoucherMinimumQuantityMet>true</IsVoucherMinimumQuantityMet>
  <Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Messages>
  <OrganizationName>sample string 8</OrganizationName>
  <ShoppingCartItems>
    <ShoppingCartItem>
      <Category xmlns:d4p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
        <d4p1:Label>sample string 1</d4p1:Label>
        <d4p1:Value>2</d4p1:Value>
      </Category>
      <CountryRestriction>true</CountryRestriction>
      <CouponId>sample string 14</CouponId>
      <CourseDateSelected xmlns:d4p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
        <d4p1:Id>7338d3b4-0c45-4e9e-888a-7a1f163fa136</d4p1:Id>
        <d4p1:Name>sample string 2</d4p1:Name>
      </CourseDateSelected>
      <EligibleCountries>
        <EligibleCountry>
          <Id>sample string 1</Id>
        </EligibleCountry>
        <EligibleCountry>
          <Id>sample string 1</Id>
        </EligibleCountry>
      </EligibleCountries>
      <Id>9b2c0a6a-c2f0-4f9d-9f50-2baa778089a4</Id>
      <IsHiddenProduct>true</IsHiddenProduct>
      <IsPresetBundle>true</IsPresetBundle>
      <IsShippable>true</IsShippable>
      <Name>sample string 8</Name>
      <NotSoldSeparately>true</NotSoldSeparately>
      <ParentWebProductId>sample string 4</ParentWebProductId>
      <PresetBundleProducts>
        <PresetBundleProduct>
          <WebProductId>d37946e3-22d8-4291-8721-398d4c8cc7b6</WebProductId>
          <WebProductName>sample string 2</WebProductName>
        </PresetBundleProduct>
        <PresetBundleProduct>
          <WebProductId>d37946e3-22d8-4291-8721-398d4c8cc7b6</WebProductId>
          <WebProductName>sample string 2</WebProductName>
        </PresetBundleProduct>
      </PresetBundleProducts>
      <Price>9</Price>
      <ProgramId>sample string 5</ProgramId>
      <ProgramName>sample string 6</ProgramName>
      <ProgramShortName>sample string 7</ProgramShortName>
      <Quantity>12</Quantity>
      <RecurringBilling>true</RecurringBilling>
      <RetailPrice>11</RetailPrice>
      <TotalPrice>10</TotalPrice>
      <WebProductId>sample string 2</WebProductId>
      <WebProductName>sample string 3</WebProductName>
    </ShoppingCartItem>
    <ShoppingCartItem>
      <Category xmlns:d4p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
        <d4p1:Label>sample string 1</d4p1:Label>
        <d4p1:Value>2</d4p1:Value>
      </Category>
      <CountryRestriction>true</CountryRestriction>
      <CouponId>sample string 14</CouponId>
      <CourseDateSelected xmlns:d4p1="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models.Helpers">
        <d4p1:Id>7338d3b4-0c45-4e9e-888a-7a1f163fa136</d4p1:Id>
        <d4p1:Name>sample string 2</d4p1:Name>
      </CourseDateSelected>
      <EligibleCountries>
        <EligibleCountry>
          <Id>sample string 1</Id>
        </EligibleCountry>
        <EligibleCountry>
          <Id>sample string 1</Id>
        </EligibleCountry>
      </EligibleCountries>
      <Id>9b2c0a6a-c2f0-4f9d-9f50-2baa778089a4</Id>
      <IsHiddenProduct>true</IsHiddenProduct>
      <IsPresetBundle>true</IsPresetBundle>
      <IsShippable>true</IsShippable>
      <Name>sample string 8</Name>
      <NotSoldSeparately>true</NotSoldSeparately>
      <ParentWebProductId>sample string 4</ParentWebProductId>
      <PresetBundleProducts>
        <PresetBundleProduct>
          <WebProductId>d37946e3-22d8-4291-8721-398d4c8cc7b6</WebProductId>
          <WebProductName>sample string 2</WebProductName>
        </PresetBundleProduct>
        <PresetBundleProduct>
          <WebProductId>d37946e3-22d8-4291-8721-398d4c8cc7b6</WebProductId>
          <WebProductName>sample string 2</WebProductName>
        </PresetBundleProduct>
      </PresetBundleProducts>
      <Price>9</Price>
      <ProgramId>sample string 5</ProgramId>
      <ProgramName>sample string 6</ProgramName>
      <ProgramShortName>sample string 7</ProgramShortName>
      <Quantity>12</Quantity>
      <RecurringBilling>true</RecurringBilling>
      <RetailPrice>11</RetailPrice>
      <TotalPrice>10</TotalPrice>
      <WebProductId>sample string 2</WebProductId>
      <WebProductName>sample string 3</WebProductName>
    </ShoppingCartItem>
  </ShoppingCartItems>
  <VoucherCartMinimumQuantity>4</VoucherCartMinimumQuantity>
</ShoppingCart>