GET api/Product/GetProductsFromCart?userId={userId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

string

Required

Body Parameters

None.

Response Information

Resource Description

CartProductResponseModel
NameDescriptionTypeAdditional information
SessionId

globally unique identifier

None.

Products

Collection of ProductResponseModel

None.

Result

ResponseResult

None.

Response Formats

application/json, text/json

Sample:
{
  "SessionId": "8309b6a9-71fd-4681-977f-849941513a14",
  "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>8309b6a9-71fd-4681-977f-849941513a14</SessionId>
</CartProductResponseModel>