POST api/SCCMMembership/AddToCart/{portalId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| portalId | string |
Required |
Body Parameters
Collection of MembershipCartItem| Name | Description | Type | Additional 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": "efe15bc7-76da-4acf-a869-9c146392d169",
"ProgramId": "b7cde778-c4ef-4896-ab9a-5b4db451c072",
"Price": 4.0,
"RecurringBilling": true,
"Quantity": 6,
"AccountingCompanyId": "ca19d322-5895-456b-87ff-e8231411a71b",
"ParentWebProductId": "d7a27653-b1ab-44ed-ad64-affc0d11f057"
},
{
"Name": "sample string 1",
"WebProductId": "efe15bc7-76da-4acf-a869-9c146392d169",
"ProgramId": "b7cde778-c4ef-4896-ab9a-5b4db451c072",
"Price": 4.0,
"RecurringBilling": true,
"Quantity": 6,
"AccountingCompanyId": "ca19d322-5895-456b-87ff-e8231411a71b",
"ParentWebProductId": "d7a27653-b1ab-44ed-ad64-affc0d11f057"
}
]
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>ca19d322-5895-456b-87ff-e8231411a71b</AccountingCompanyId>
<Name>sample string 1</Name>
<ParentWebProductId>d7a27653-b1ab-44ed-ad64-affc0d11f057</ParentWebProductId>
<Price>4</Price>
<ProgramId>b7cde778-c4ef-4896-ab9a-5b4db451c072</ProgramId>
<Quantity>6</Quantity>
<RecurringBilling>true</RecurringBilling>
<WebProductId>efe15bc7-76da-4acf-a869-9c146392d169</WebProductId>
</MembershipCartItem>
<MembershipCartItem>
<AccountingCompanyId>ca19d322-5895-456b-87ff-e8231411a71b</AccountingCompanyId>
<Name>sample string 1</Name>
<ParentWebProductId>d7a27653-b1ab-44ed-ad64-affc0d11f057</ParentWebProductId>
<Price>4</Price>
<ProgramId>b7cde778-c4ef-4896-ab9a-5b4db451c072</ProgramId>
<Quantity>6</Quantity>
<RecurringBilling>true</RecurringBilling>
<WebProductId>efe15bc7-76da-4acf-a869-9c146392d169</WebProductId>
</MembershipCartItem>
</ArrayOfMembershipCartItem>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.