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": "d43c5955-65a5-4b2c-9f3b-4e86f2a591a8",
"ProgramId": "34896f33-f52e-4447-988b-52bfa4cb72ed",
"Price": 4.0,
"RecurringBilling": true,
"Quantity": 6,
"AccountingCompanyId": "d7195484-7bdd-4542-a938-ccdbacbe078d",
"ParentWebProductId": "dca3ec03-ad85-43b6-bf0d-fb9d97a674c1"
},
{
"Name": "sample string 1",
"WebProductId": "d43c5955-65a5-4b2c-9f3b-4e86f2a591a8",
"ProgramId": "34896f33-f52e-4447-988b-52bfa4cb72ed",
"Price": 4.0,
"RecurringBilling": true,
"Quantity": 6,
"AccountingCompanyId": "d7195484-7bdd-4542-a938-ccdbacbe078d",
"ParentWebProductId": "dca3ec03-ad85-43b6-bf0d-fb9d97a674c1"
}
]
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>d7195484-7bdd-4542-a938-ccdbacbe078d</AccountingCompanyId>
<Name>sample string 1</Name>
<ParentWebProductId>dca3ec03-ad85-43b6-bf0d-fb9d97a674c1</ParentWebProductId>
<Price>4</Price>
<ProgramId>34896f33-f52e-4447-988b-52bfa4cb72ed</ProgramId>
<Quantity>6</Quantity>
<RecurringBilling>true</RecurringBilling>
<WebProductId>d43c5955-65a5-4b2c-9f3b-4e86f2a591a8</WebProductId>
</MembershipCartItem>
<MembershipCartItem>
<AccountingCompanyId>d7195484-7bdd-4542-a938-ccdbacbe078d</AccountingCompanyId>
<Name>sample string 1</Name>
<ParentWebProductId>dca3ec03-ad85-43b6-bf0d-fb9d97a674c1</ParentWebProductId>
<Price>4</Price>
<ProgramId>34896f33-f52e-4447-988b-52bfa4cb72ed</ProgramId>
<Quantity>6</Quantity>
<RecurringBilling>true</RecurringBilling>
<WebProductId>d43c5955-65a5-4b2c-9f3b-4e86f2a591a8</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.