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": "05a84a46-950b-4043-8dd2-0cb85cffae47",
"ProgramId": "8d84a882-a753-482d-ad34-3ed3441835bf",
"Price": 4.0,
"RecurringBilling": true,
"Quantity": 6,
"AccountingCompanyId": "7d6ac51f-2826-4806-823b-0118c847de5f",
"ParentWebProductId": "137e2304-ad1f-4ea7-ac09-0db806736027"
},
{
"Name": "sample string 1",
"WebProductId": "05a84a46-950b-4043-8dd2-0cb85cffae47",
"ProgramId": "8d84a882-a753-482d-ad34-3ed3441835bf",
"Price": 4.0,
"RecurringBilling": true,
"Quantity": 6,
"AccountingCompanyId": "7d6ac51f-2826-4806-823b-0118c847de5f",
"ParentWebProductId": "137e2304-ad1f-4ea7-ac09-0db806736027"
}
]
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>7d6ac51f-2826-4806-823b-0118c847de5f</AccountingCompanyId>
<Name>sample string 1</Name>
<ParentWebProductId>137e2304-ad1f-4ea7-ac09-0db806736027</ParentWebProductId>
<Price>4</Price>
<ProgramId>8d84a882-a753-482d-ad34-3ed3441835bf</ProgramId>
<Quantity>6</Quantity>
<RecurringBilling>true</RecurringBilling>
<WebProductId>05a84a46-950b-4043-8dd2-0cb85cffae47</WebProductId>
</MembershipCartItem>
<MembershipCartItem>
<AccountingCompanyId>7d6ac51f-2826-4806-823b-0118c847de5f</AccountingCompanyId>
<Name>sample string 1</Name>
<ParentWebProductId>137e2304-ad1f-4ea7-ac09-0db806736027</ParentWebProductId>
<Price>4</Price>
<ProgramId>8d84a882-a753-482d-ad34-3ed3441835bf</ProgramId>
<Quantity>6</Quantity>
<RecurringBilling>true</RecurringBilling>
<WebProductId>05a84a46-950b-4043-8dd2-0cb85cffae47</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.