POST api/ShoppingCartItems?webProductId={webProductId}&shoppingCartId={shoppingCartId}&overridePrice={overridePrice}&attendeeId={attendeeId}&eventPricingId={eventPricingId}&hasAnswers={hasAnswers}
Create New Shopping Cart Item
Possible Service Responses:
201/Created - shopping cart item created and returned in the body of the response.
406/NotAcceptable - shopping cart item not created due too product unavailability.
500/Internal Server - unexpected server error, details in the body of the response.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
webProductId | System.String |
Required |
|
shoppingCartId | System.String |
Required |
|
overridePrice | System.Decimal |
Required |
|
attendeeId | System.String |
Required |
|
eventPricingId | System.String |
Required |
|
hasAnswers | System.Boolean |
Required |
Body Parameters
System.Collections.Generic.List`1[Altai.Core.Models.WebProductAnswer]Name | Description | Type | Additional information |
---|---|---|---|
Question | System.String |
None. |
|
Answer | System.String |
None. |
Request Formats
application/json, text/json
Sample:
[ { "Question": "sample string 1", "Answer": "sample string 2" }, { "Question": "sample string 1", "Answer": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfWebProductAnswer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Altai.Core.Models"> <WebProductAnswer> <Answer>sample string 2</Answer> <Question>sample string 1</Question> </WebProductAnswer> <WebProductAnswer> <Answer>sample string 2</Answer> <Question>sample string 1</Question> </WebProductAnswer> </ArrayOfWebProductAnswer>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Net.Http.HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | System.Version |
None. |
|
Content | System.Net.Http.HttpContent |
None. |
|
StatusCode | System.Net.HttpStatusCode |
None. |
|
ReasonPhrase | System.String |
None. |
|
Headers | System.Net.Http.Headers.HttpResponseHeaders |
None. |
|
RequestMessage | System.Net.Http.HttpRequestMessage |
None. |
|
IsSuccessStatusCode | System.Boolean |
None. |