GET api/Food/GetOrders

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

LiteFoodOrderList
NameDescriptionTypeAdditional information
Drafts

Collection of LiteFoodOrder

None.

History

Collection of LiteFoodOrder

None.

Response Formats

application/json, text/json

Sample:
{
  "Drafts": [
    {
      "CreatedBy": "sample string 1",
      "CreatedOn": "2019-12-09T16:09:04.5727058+00:00",
      "DeliveryAddress": {
        "AddressCity": "sample string 1",
        "AddressLat": 1.0,
        "AddressLine1": "sample string 2",
        "AddressLine2": "sample string 3",
        "AddressLng": 1.0,
        "AddressPostCode": "sample string 4"
      },
      "Id": 3,
      "IsPaid": true,
      "Notes": "sample string 5",
      "EffectiveDate": "2019-12-09T16:09:04.58829+00:00",
      "OrderProducts": [
        {
          "Id": 1,
          "Product": {
            "Id": 1,
            "ImageUrl": "sample string 2",
            "Name": "sample string 3",
            "ProductType": {
              "Id": 1,
              "Name": "sample string 2"
            },
            "Unit": "sample string 4",
            "UnitPrice": 5.0
          },
          "Qty": 2.0,
          "UnitPrice": 3.0
        },
        {
          "Id": 1,
          "Product": {
            "Id": 1,
            "ImageUrl": "sample string 2",
            "Name": "sample string 3",
            "ProductType": {
              "Id": 1,
              "Name": "sample string 2"
            },
            "Unit": "sample string 4",
            "UnitPrice": 5.0
          },
          "Qty": 2.0,
          "UnitPrice": 3.0
        }
      ],
      "PickUpLocation": {
        "Address": {
          "AddressCity": "sample string 1",
          "AddressLat": 1.0,
          "AddressLine1": "sample string 2",
          "AddressLine2": "sample string 3",
          "AddressLng": 1.0,
          "AddressPostCode": "sample string 4"
        },
        "Id": 1,
        "Name": "sample string 2"
      }
    },
    {
      "CreatedBy": "sample string 1",
      "CreatedOn": "2019-12-09T16:09:04.5727058+00:00",
      "DeliveryAddress": {
        "AddressCity": "sample string 1",
        "AddressLat": 1.0,
        "AddressLine1": "sample string 2",
        "AddressLine2": "sample string 3",
        "AddressLng": 1.0,
        "AddressPostCode": "sample string 4"
      },
      "Id": 3,
      "IsPaid": true,
      "Notes": "sample string 5",
      "EffectiveDate": "2019-12-09T16:09:04.58829+00:00",
      "OrderProducts": [
        {
          "Id": 1,
          "Product": {
            "Id": 1,
            "ImageUrl": "sample string 2",
            "Name": "sample string 3",
            "ProductType": {
              "Id": 1,
              "Name": "sample string 2"
            },
            "Unit": "sample string 4",
            "UnitPrice": 5.0
          },
          "Qty": 2.0,
          "UnitPrice": 3.0
        },
        {
          "Id": 1,
          "Product": {
            "Id": 1,
            "ImageUrl": "sample string 2",
            "Name": "sample string 3",
            "ProductType": {
              "Id": 1,
              "Name": "sample string 2"
            },
            "Unit": "sample string 4",
            "UnitPrice": 5.0
          },
          "Qty": 2.0,
          "UnitPrice": 3.0
        }
      ],
      "PickUpLocation": {
        "Address": {
          "AddressCity": "sample string 1",
          "AddressLat": 1.0,
          "AddressLine1": "sample string 2",
          "AddressLine2": "sample string 3",
          "AddressLng": 1.0,
          "AddressPostCode": "sample string 4"
        },
        "Id": 1,
        "Name": "sample string 2"
      }
    }
  ],
  "History": [
    {
      "CreatedBy": "sample string 1",
      "CreatedOn": "2019-12-09T16:09:04.5727058+00:00",
      "DeliveryAddress": {
        "AddressCity": "sample string 1",
        "AddressLat": 1.0,
        "AddressLine1": "sample string 2",
        "AddressLine2": "sample string 3",
        "AddressLng": 1.0,
        "AddressPostCode": "sample string 4"
      },
      "Id": 3,
      "IsPaid": true,
      "Notes": "sample string 5",
      "EffectiveDate": "2019-12-09T16:09:04.58829+00:00",
      "OrderProducts": [
        {
          "Id": 1,
          "Product": {
            "Id": 1,
            "ImageUrl": "sample string 2",
            "Name": "sample string 3",
            "ProductType": {
              "Id": 1,
              "Name": "sample string 2"
            },
            "Unit": "sample string 4",
            "UnitPrice": 5.0
          },
          "Qty": 2.0,
          "UnitPrice": 3.0
        },
        {
          "Id": 1,
          "Product": {
            "Id": 1,
            "ImageUrl": "sample string 2",
            "Name": "sample string 3",
            "ProductType": {
              "Id": 1,
              "Name": "sample string 2"
            },
            "Unit": "sample string 4",
            "UnitPrice": 5.0
          },
          "Qty": 2.0,
          "UnitPrice": 3.0
        }
      ],
      "PickUpLocation": {
        "Address": {
          "AddressCity": "sample string 1",
          "AddressLat": 1.0,
          "AddressLine1": "sample string 2",
          "AddressLine2": "sample string 3",
          "AddressLng": 1.0,
          "AddressPostCode": "sample string 4"
        },
        "Id": 1,
        "Name": "sample string 2"
      }
    },
    {
      "CreatedBy": "sample string 1",
      "CreatedOn": "2019-12-09T16:09:04.5727058+00:00",
      "DeliveryAddress": {
        "AddressCity": "sample string 1",
        "AddressLat": 1.0,
        "AddressLine1": "sample string 2",
        "AddressLine2": "sample string 3",
        "AddressLng": 1.0,
        "AddressPostCode": "sample string 4"
      },
      "Id": 3,
      "IsPaid": true,
      "Notes": "sample string 5",
      "EffectiveDate": "2019-12-09T16:09:04.58829+00:00",
      "OrderProducts": [
        {
          "Id": 1,
          "Product": {
            "Id": 1,
            "ImageUrl": "sample string 2",
            "Name": "sample string 3",
            "ProductType": {
              "Id": 1,
              "Name": "sample string 2"
            },
            "Unit": "sample string 4",
            "UnitPrice": 5.0
          },
          "Qty": 2.0,
          "UnitPrice": 3.0
        },
        {
          "Id": 1,
          "Product": {
            "Id": 1,
            "ImageUrl": "sample string 2",
            "Name": "sample string 3",
            "ProductType": {
              "Id": 1,
              "Name": "sample string 2"
            },
            "Unit": "sample string 4",
            "UnitPrice": 5.0
          },
          "Qty": 2.0,
          "UnitPrice": 3.0
        }
      ],
      "PickUpLocation": {
        "Address": {
          "AddressCity": "sample string 1",
          "AddressLat": 1.0,
          "AddressLine1": "sample string 2",
          "AddressLine2": "sample string 3",
          "AddressLng": 1.0,
          "AddressPostCode": "sample string 4"
        },
        "Id": 1,
        "Name": "sample string 2"
      }
    }
  ]
}

application/xml, text/xml

Sample:
<LiteFoodOrderList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <Drafts>
    <LiteFoodOrder>
      <CreatedBy>sample string 1</CreatedBy>
      <CreatedOn>2019-12-09T16:09:04.5727058+00:00</CreatedOn>
      <DeliveryAddress>
        <AddressCity>sample string 1</AddressCity>
        <AddressLat>1</AddressLat>
        <AddressLine1>sample string 2</AddressLine1>
        <AddressLine2>sample string 3</AddressLine2>
        <AddressLng>1</AddressLng>
        <AddressPostCode>sample string 4</AddressPostCode>
      </DeliveryAddress>
      <EffectiveDate>2019-12-09T16:09:04.58829+00:00</EffectiveDate>
      <Id>3</Id>
      <IsPaid>true</IsPaid>
      <Notes>sample string 5</Notes>
      <OrderProducts>
        <LiteFoodOrderProduct>
          <Id>1</Id>
          <Product>
            <Id>1</Id>
            <ImageUrl>sample string 2</ImageUrl>
            <Name>sample string 3</Name>
            <ProductType>
              <Id>1</Id>
              <Name>sample string 2</Name>
            </ProductType>
            <Unit>sample string 4</Unit>
            <UnitPrice>5</UnitPrice>
          </Product>
          <Qty>2</Qty>
          <UnitPrice>3</UnitPrice>
        </LiteFoodOrderProduct>
        <LiteFoodOrderProduct>
          <Id>1</Id>
          <Product>
            <Id>1</Id>
            <ImageUrl>sample string 2</ImageUrl>
            <Name>sample string 3</Name>
            <ProductType>
              <Id>1</Id>
              <Name>sample string 2</Name>
            </ProductType>
            <Unit>sample string 4</Unit>
            <UnitPrice>5</UnitPrice>
          </Product>
          <Qty>2</Qty>
          <UnitPrice>3</UnitPrice>
        </LiteFoodOrderProduct>
      </OrderProducts>
      <PickUpLocation>
        <Address>
          <AddressCity>sample string 1</AddressCity>
          <AddressLat>1</AddressLat>
          <AddressLine1>sample string 2</AddressLine1>
          <AddressLine2>sample string 3</AddressLine2>
          <AddressLng>1</AddressLng>
          <AddressPostCode>sample string 4</AddressPostCode>
        </Address>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </PickUpLocation>
    </LiteFoodOrder>
    <LiteFoodOrder>
      <CreatedBy>sample string 1</CreatedBy>
      <CreatedOn>2019-12-09T16:09:04.5727058+00:00</CreatedOn>
      <DeliveryAddress>
        <AddressCity>sample string 1</AddressCity>
        <AddressLat>1</AddressLat>
        <AddressLine1>sample string 2</AddressLine1>
        <AddressLine2>sample string 3</AddressLine2>
        <AddressLng>1</AddressLng>
        <AddressPostCode>sample string 4</AddressPostCode>
      </DeliveryAddress>
      <EffectiveDate>2019-12-09T16:09:04.58829+00:00</EffectiveDate>
      <Id>3</Id>
      <IsPaid>true</IsPaid>
      <Notes>sample string 5</Notes>
      <OrderProducts>
        <LiteFoodOrderProduct>
          <Id>1</Id>
          <Product>
            <Id>1</Id>
            <ImageUrl>sample string 2</ImageUrl>
            <Name>sample string 3</Name>
            <ProductType>
              <Id>1</Id>
              <Name>sample string 2</Name>
            </ProductType>
            <Unit>sample string 4</Unit>
            <UnitPrice>5</UnitPrice>
          </Product>
          <Qty>2</Qty>
          <UnitPrice>3</UnitPrice>
        </LiteFoodOrderProduct>
        <LiteFoodOrderProduct>
          <Id>1</Id>
          <Product>
            <Id>1</Id>
            <ImageUrl>sample string 2</ImageUrl>
            <Name>sample string 3</Name>
            <ProductType>
              <Id>1</Id>
              <Name>sample string 2</Name>
            </ProductType>
            <Unit>sample string 4</Unit>
            <UnitPrice>5</UnitPrice>
          </Product>
          <Qty>2</Qty>
          <UnitPrice>3</UnitPrice>
        </LiteFoodOrderProduct>
      </OrderProducts>
      <PickUpLocation>
        <Address>
          <AddressCity>sample string 1</AddressCity>
          <AddressLat>1</AddressLat>
          <AddressLine1>sample string 2</AddressLine1>
          <AddressLine2>sample string 3</AddressLine2>
          <AddressLng>1</AddressLng>
          <AddressPostCode>sample string 4</AddressPostCode>
        </Address>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </PickUpLocation>
    </LiteFoodOrder>
  </Drafts>
  <History>
    <LiteFoodOrder>
      <CreatedBy>sample string 1</CreatedBy>
      <CreatedOn>2019-12-09T16:09:04.5727058+00:00</CreatedOn>
      <DeliveryAddress>
        <AddressCity>sample string 1</AddressCity>
        <AddressLat>1</AddressLat>
        <AddressLine1>sample string 2</AddressLine1>
        <AddressLine2>sample string 3</AddressLine2>
        <AddressLng>1</AddressLng>
        <AddressPostCode>sample string 4</AddressPostCode>
      </DeliveryAddress>
      <EffectiveDate>2019-12-09T16:09:04.58829+00:00</EffectiveDate>
      <Id>3</Id>
      <IsPaid>true</IsPaid>
      <Notes>sample string 5</Notes>
      <OrderProducts>
        <LiteFoodOrderProduct>
          <Id>1</Id>
          <Product>
            <Id>1</Id>
            <ImageUrl>sample string 2</ImageUrl>
            <Name>sample string 3</Name>
            <ProductType>
              <Id>1</Id>
              <Name>sample string 2</Name>
            </ProductType>
            <Unit>sample string 4</Unit>
            <UnitPrice>5</UnitPrice>
          </Product>
          <Qty>2</Qty>
          <UnitPrice>3</UnitPrice>
        </LiteFoodOrderProduct>
        <LiteFoodOrderProduct>
          <Id>1</Id>
          <Product>
            <Id>1</Id>
            <ImageUrl>sample string 2</ImageUrl>
            <Name>sample string 3</Name>
            <ProductType>
              <Id>1</Id>
              <Name>sample string 2</Name>
            </ProductType>
            <Unit>sample string 4</Unit>
            <UnitPrice>5</UnitPrice>
          </Product>
          <Qty>2</Qty>
          <UnitPrice>3</UnitPrice>
        </LiteFoodOrderProduct>
      </OrderProducts>
      <PickUpLocation>
        <Address>
          <AddressCity>sample string 1</AddressCity>
          <AddressLat>1</AddressLat>
          <AddressLine1>sample string 2</AddressLine1>
          <AddressLine2>sample string 3</AddressLine2>
          <AddressLng>1</AddressLng>
          <AddressPostCode>sample string 4</AddressPostCode>
        </Address>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </PickUpLocation>
    </LiteFoodOrder>
    <LiteFoodOrder>
      <CreatedBy>sample string 1</CreatedBy>
      <CreatedOn>2019-12-09T16:09:04.5727058+00:00</CreatedOn>
      <DeliveryAddress>
        <AddressCity>sample string 1</AddressCity>
        <AddressLat>1</AddressLat>
        <AddressLine1>sample string 2</AddressLine1>
        <AddressLine2>sample string 3</AddressLine2>
        <AddressLng>1</AddressLng>
        <AddressPostCode>sample string 4</AddressPostCode>
      </DeliveryAddress>
      <EffectiveDate>2019-12-09T16:09:04.58829+00:00</EffectiveDate>
      <Id>3</Id>
      <IsPaid>true</IsPaid>
      <Notes>sample string 5</Notes>
      <OrderProducts>
        <LiteFoodOrderProduct>
          <Id>1</Id>
          <Product>
            <Id>1</Id>
            <ImageUrl>sample string 2</ImageUrl>
            <Name>sample string 3</Name>
            <ProductType>
              <Id>1</Id>
              <Name>sample string 2</Name>
            </ProductType>
            <Unit>sample string 4</Unit>
            <UnitPrice>5</UnitPrice>
          </Product>
          <Qty>2</Qty>
          <UnitPrice>3</UnitPrice>
        </LiteFoodOrderProduct>
        <LiteFoodOrderProduct>
          <Id>1</Id>
          <Product>
            <Id>1</Id>
            <ImageUrl>sample string 2</ImageUrl>
            <Name>sample string 3</Name>
            <ProductType>
              <Id>1</Id>
              <Name>sample string 2</Name>
            </ProductType>
            <Unit>sample string 4</Unit>
            <UnitPrice>5</UnitPrice>
          </Product>
          <Qty>2</Qty>
          <UnitPrice>3</UnitPrice>
        </LiteFoodOrderProduct>
      </OrderProducts>
      <PickUpLocation>
        <Address>
          <AddressCity>sample string 1</AddressCity>
          <AddressLat>1</AddressLat>
          <AddressLine1>sample string 2</AddressLine1>
          <AddressLine2>sample string 3</AddressLine2>
          <AddressLng>1</AddressLng>
          <AddressPostCode>sample string 4</AddressPostCode>
        </Address>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </PickUpLocation>
    </LiteFoodOrder>
  </History>
</LiteFoodOrderList>