POST api/SCCMMembership/AddToCart/{portalId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
portalId

string

Required

Body Parameters

Collection of MembershipCartItem
NameDescriptionTypeAdditional information
Name

string

None.

WebProductId

globally unique identifier

None.

ProgramId

globally unique identifier

None.

Price

decimal number

None.

RecurringBilling

boolean

None.

Quantity

integer

None.

AccountingCompanyId

globally unique identifier

None.

ParentWebProductId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "WebProductId": "622d1271-0dc4-4aeb-8076-5efb5e32fd50",
    "ProgramId": "4d3a0771-5d20-4443-b645-6827c9adfa97",
    "Price": 4.0,
    "RecurringBilling": true,
    "Quantity": 6,
    "AccountingCompanyId": "907f6b16-9d5b-4e97-a7a0-c3cdd5c1ad12",
    "ParentWebProductId": "7640e527-54b1-4a6e-a7b5-cc06a00fc140"
  },
  {
    "Name": "sample string 1",
    "WebProductId": "622d1271-0dc4-4aeb-8076-5efb5e32fd50",
    "ProgramId": "4d3a0771-5d20-4443-b645-6827c9adfa97",
    "Price": 4.0,
    "RecurringBilling": true,
    "Quantity": 6,
    "AccountingCompanyId": "907f6b16-9d5b-4e97-a7a0-c3cdd5c1ad12",
    "ParentWebProductId": "7640e527-54b1-4a6e-a7b5-cc06a00fc140"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMembershipCartItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AltaiStandard.Web.ClientIntegrationService.Models">
  <MembershipCartItem>
    <AccountingCompanyId>907f6b16-9d5b-4e97-a7a0-c3cdd5c1ad12</AccountingCompanyId>
    <Name>sample string 1</Name>
    <ParentWebProductId>7640e527-54b1-4a6e-a7b5-cc06a00fc140</ParentWebProductId>
    <Price>4</Price>
    <ProgramId>4d3a0771-5d20-4443-b645-6827c9adfa97</ProgramId>
    <Quantity>6</Quantity>
    <RecurringBilling>true</RecurringBilling>
    <WebProductId>622d1271-0dc4-4aeb-8076-5efb5e32fd50</WebProductId>
  </MembershipCartItem>
  <MembershipCartItem>
    <AccountingCompanyId>907f6b16-9d5b-4e97-a7a0-c3cdd5c1ad12</AccountingCompanyId>
    <Name>sample string 1</Name>
    <ParentWebProductId>7640e527-54b1-4a6e-a7b5-cc06a00fc140</ParentWebProductId>
    <Price>4</Price>
    <ProgramId>4d3a0771-5d20-4443-b645-6827c9adfa97</ProgramId>
    <Quantity>6</Quantity>
    <RecurringBilling>true</RecurringBilling>
    <WebProductId>622d1271-0dc4-4aeb-8076-5efb5e32fd50</WebProductId>
  </MembershipCartItem>
</ArrayOfMembershipCartItem>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.