GET api/Product/GetProductsFromCart?userId={userId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userId | string |
Required |
Body Parameters
None.
Response Information
Resource Description
CartProductResponseModelName | Description | Type | Additional information |
---|---|---|---|
SessionId | globally unique identifier |
None. |
|
Products | Collection of ProductResponseModel |
None. |
|
Result | ResponseResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "SessionId": "118f7c0b-1a95-48f7-b067-350b119b2222", "Products": [ { "Id": "sample string 1", "Name": "sample string 2", "Description": "sample string 3", "Qty": 4, "UnitPrice": 5.0, "TotalPrice": 6.0, "Result": { "Success": true, "Message": "sample string 2", "Errors": [ { "Message": "sample string 1" }, { "Message": "sample string 1" } ] } }, { "Id": "sample string 1", "Name": "sample string 2", "Description": "sample string 3", "Qty": 4, "UnitPrice": 5.0, "TotalPrice": 6.0, "Result": { "Success": true, "Message": "sample string 2", "Errors": [ { "Message": "sample string 1" }, { "Message": "sample string 1" } ] } } ], "Result": { "Success": true, "Message": "sample string 2", "Errors": [ { "Message": "sample string 1" }, { "Message": "sample string 1" } ] } }
application/xml, text/xml
Sample:
<CartProductResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bond.Core.API.Models.Response"> <Result> <Errors> <ErrorMessage> <Message>sample string 1</Message> </ErrorMessage> <ErrorMessage> <Message>sample string 1</Message> </ErrorMessage> </Errors> <Message>sample string 2</Message> <Success>true</Success> </Result> <Products> <ProductResponseModel> <Result> <Errors> <ErrorMessage> <Message>sample string 1</Message> </ErrorMessage> <ErrorMessage> <Message>sample string 1</Message> </ErrorMessage> </Errors> <Message>sample string 2</Message> <Success>true</Success> </Result> <Description>sample string 3</Description> <Id>sample string 1</Id> <Name>sample string 2</Name> <Qty>4</Qty> <TotalPrice>6</TotalPrice> <UnitPrice>5</UnitPrice> </ProductResponseModel> <ProductResponseModel> <Result> <Errors> <ErrorMessage> <Message>sample string 1</Message> </ErrorMessage> <ErrorMessage> <Message>sample string 1</Message> </ErrorMessage> </Errors> <Message>sample string 2</Message> <Success>true</Success> </Result> <Description>sample string 3</Description> <Id>sample string 1</Id> <Name>sample string 2</Name> <Qty>4</Qty> <TotalPrice>6</TotalPrice> <UnitPrice>5</UnitPrice> </ProductResponseModel> </Products> <SessionId>118f7c0b-1a95-48f7-b067-350b119b2222</SessionId> </CartProductResponseModel>