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": "6b9b63c4-d2c8-4b41-940c-3cf94c62b186",
"ProgramId": "88c1ab8a-9f03-493c-8c87-f33bb0c4fc27",
"Price": 4.0,
"RecurringBilling": true,
"Quantity": 6,
"AccountingCompanyId": "4eef2829-6d3a-4f4b-a613-d91d27715ff5",
"ParentWebProductId": "5382a87e-79fd-4dc3-be4d-60d190e87851"
},
{
"Name": "sample string 1",
"WebProductId": "6b9b63c4-d2c8-4b41-940c-3cf94c62b186",
"ProgramId": "88c1ab8a-9f03-493c-8c87-f33bb0c4fc27",
"Price": 4.0,
"RecurringBilling": true,
"Quantity": 6,
"AccountingCompanyId": "4eef2829-6d3a-4f4b-a613-d91d27715ff5",
"ParentWebProductId": "5382a87e-79fd-4dc3-be4d-60d190e87851"
}
]
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>4eef2829-6d3a-4f4b-a613-d91d27715ff5</AccountingCompanyId>
<Name>sample string 1</Name>
<ParentWebProductId>5382a87e-79fd-4dc3-be4d-60d190e87851</ParentWebProductId>
<Price>4</Price>
<ProgramId>88c1ab8a-9f03-493c-8c87-f33bb0c4fc27</ProgramId>
<Quantity>6</Quantity>
<RecurringBilling>true</RecurringBilling>
<WebProductId>6b9b63c4-d2c8-4b41-940c-3cf94c62b186</WebProductId>
</MembershipCartItem>
<MembershipCartItem>
<AccountingCompanyId>4eef2829-6d3a-4f4b-a613-d91d27715ff5</AccountingCompanyId>
<Name>sample string 1</Name>
<ParentWebProductId>5382a87e-79fd-4dc3-be4d-60d190e87851</ParentWebProductId>
<Price>4</Price>
<ProgramId>88c1ab8a-9f03-493c-8c87-f33bb0c4fc27</ProgramId>
<Quantity>6</Quantity>
<RecurringBilling>true</RecurringBilling>
<WebProductId>6b9b63c4-d2c8-4b41-940c-3cf94c62b186</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.