POST api/Food/AddCartItem

Request Information

URI Parameters

None.

Body Parameters

CartItem
NameDescriptionTypeAdditional information
UserID

globally unique identifier

None.

CartItemCount

Collection of ItemPerCount

None.

HotelID

integer

None.

DeliveryLocationID

globally unique identifier

None.

tips

integer

None.

PromoCode

string

None.

GenOrdrId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": "3d991c80-0d77-4ae6-a2e8-e66b286d5fc0",
  "CartItemCount": [
    {
      "ItemID": 1,
      "Quantity": 2,
      "price": 3.0
    },
    {
      "ItemID": 1,
      "Quantity": 2,
      "price": 3.0
    }
  ],
  "HotelID": 2,
  "DeliveryLocationID": "b82332e9-b47e-4655-9a2d-28e3e2396b69",
  "tips": 4,
  "PromoCode": "sample string 5",
  "GenOrdrId": 6
}

application/xml, text/xml

Sample:
<CartItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TheanAPI.DTO">
  <CartItemCount>
    <ItemPerCount>
      <ItemID>1</ItemID>
      <Quantity>2</Quantity>
      <price>3</price>
    </ItemPerCount>
    <ItemPerCount>
      <ItemID>1</ItemID>
      <Quantity>2</Quantity>
      <price>3</price>
    </ItemPerCount>
  </CartItemCount>
  <DeliveryLocationID>b82332e9-b47e-4655-9a2d-28e3e2396b69</DeliveryLocationID>
  <GenOrdrId>6</GenOrdrId>
  <HotelID>2</HotelID>
  <PromoCode>sample string 5</PromoCode>
  <UserID>3d991c80-0d77-4ae6-a2e8-e66b286d5fc0</UserID>
  <tips>4</tips>
</CartItem>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseDtoOfObject
NameDescriptionTypeAdditional information
Status_cd

boolean

None.

Data

Object

None.

status_Desc

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status_cd": true,
  "Data": {},
  "status_Desc": "sample string 3"
}

application/xml, text/xml

Sample:
<ResponseDtoOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TheanAPI.DTO">
  <Data />
  <Status_cd>true</Status_cd>
  <status_Desc>sample string 3</status_Desc>
</ResponseDtoOfanyType>