POST api/membership/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": "e1ac4587-5d3e-48b8-8f78-4ed3cfb02302",
"ProgramId": "48d11193-3952-4294-a10d-3edb6a859a6b",
"Price": 4.0,
"RecurringBilling": true,
"Quantity": 6,
"AccountingCompanyId": "62cbfe19-8878-40a1-ae09-6a15fd559fe2",
"ParentWebProductId": "d433ce1c-3f11-4cc1-8ab4-494b4eec5ca4"
},
{
"Name": "sample string 1",
"WebProductId": "e1ac4587-5d3e-48b8-8f78-4ed3cfb02302",
"ProgramId": "48d11193-3952-4294-a10d-3edb6a859a6b",
"Price": 4.0,
"RecurringBilling": true,
"Quantity": 6,
"AccountingCompanyId": "62cbfe19-8878-40a1-ae09-6a15fd559fe2",
"ParentWebProductId": "d433ce1c-3f11-4cc1-8ab4-494b4eec5ca4"
}
]
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>62cbfe19-8878-40a1-ae09-6a15fd559fe2</AccountingCompanyId>
<Name>sample string 1</Name>
<ParentWebProductId>d433ce1c-3f11-4cc1-8ab4-494b4eec5ca4</ParentWebProductId>
<Price>4</Price>
<ProgramId>48d11193-3952-4294-a10d-3edb6a859a6b</ProgramId>
<Quantity>6</Quantity>
<RecurringBilling>true</RecurringBilling>
<WebProductId>e1ac4587-5d3e-48b8-8f78-4ed3cfb02302</WebProductId>
</MembershipCartItem>
<MembershipCartItem>
<AccountingCompanyId>62cbfe19-8878-40a1-ae09-6a15fd559fe2</AccountingCompanyId>
<Name>sample string 1</Name>
<ParentWebProductId>d433ce1c-3f11-4cc1-8ab4-494b4eec5ca4</ParentWebProductId>
<Price>4</Price>
<ProgramId>48d11193-3952-4294-a10d-3edb6a859a6b</ProgramId>
<Quantity>6</Quantity>
<RecurringBilling>true</RecurringBilling>
<WebProductId>e1ac4587-5d3e-48b8-8f78-4ed3cfb02302</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.