POST api/SCCMMembership/AddToCart/{portalId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
portalId | string |
Required |
Body Parameters
Collection of MembershipCartItemName | 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": "ff64a541-c70c-4aee-b161-ee68384893dd", "ProgramId": "75f24c25-c7ff-400a-9ee5-ed4b6e39e18c", "Price": 4.0, "RecurringBilling": true, "Quantity": 6, "AccountingCompanyId": "a1202df8-2d2f-4dfb-ae21-cdd19cbb39ce", "ParentWebProductId": "0ad3549f-45f8-4343-aae9-af810ad57dda" }, { "Name": "sample string 1", "WebProductId": "ff64a541-c70c-4aee-b161-ee68384893dd", "ProgramId": "75f24c25-c7ff-400a-9ee5-ed4b6e39e18c", "Price": 4.0, "RecurringBilling": true, "Quantity": 6, "AccountingCompanyId": "a1202df8-2d2f-4dfb-ae21-cdd19cbb39ce", "ParentWebProductId": "0ad3549f-45f8-4343-aae9-af810ad57dda" } ]
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>a1202df8-2d2f-4dfb-ae21-cdd19cbb39ce</AccountingCompanyId> <Name>sample string 1</Name> <ParentWebProductId>0ad3549f-45f8-4343-aae9-af810ad57dda</ParentWebProductId> <Price>4</Price> <ProgramId>75f24c25-c7ff-400a-9ee5-ed4b6e39e18c</ProgramId> <Quantity>6</Quantity> <RecurringBilling>true</RecurringBilling> <WebProductId>ff64a541-c70c-4aee-b161-ee68384893dd</WebProductId> </MembershipCartItem> <MembershipCartItem> <AccountingCompanyId>a1202df8-2d2f-4dfb-ae21-cdd19cbb39ce</AccountingCompanyId> <Name>sample string 1</Name> <ParentWebProductId>0ad3549f-45f8-4343-aae9-af810ad57dda</ParentWebProductId> <Price>4</Price> <ProgramId>75f24c25-c7ff-400a-9ee5-ed4b6e39e18c</ProgramId> <Quantity>6</Quantity> <RecurringBilling>true</RecurringBilling> <WebProductId>ff64a541-c70c-4aee-b161-ee68384893dd</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.