POST SaveTILLTakeAwayOrder

Request Information

URI Parameters

None.

Body Parameters

TakeAwayOrderDto
NameDescriptionTypeAdditional information
iTakeAwayId

integer

None.

iRestaurantID

integer

None.

vCustomerName

string

None.

vHouseNumber

string

None.

vFullAddress

string

None.

vPostCode

string

None.

CollectionTime

integer

None.

vCustomerPhone

string

None.

vCustomerEmail

string

None.

fOrderTotal

decimal number

None.

bHasPrinted

boolean

None.

bHasBeenCollected

boolean

None.

bReservation

boolean

None.

dtDateCreated

date

None.

delInd

boolean

None.

dtLastModified

date

None.

bDownLoaded

boolean

None.

bTakeAway

boolean

None.

bDelivery

boolean

None.

vLatitude

string

None.

vLongitude

string

None.

OrderGUID

globally unique identifier

None.

OrderNumber

string

None.

bPaid

boolean

None.

Confirmed

boolean

None.

PaymentType

string

None.

DeliveryCharges

decimal number

None.

VendorTxCode

string

None.

Delivered

boolean

None.

Message

string

None.

Restaurant

string

None.

bDelivered

boolean

None.

Amount

decimal number

None.

OrderStatus

string

None.

OutForDelivery

boolean

None.

CustomerId

integer

None.

orderParts

Collection of OrderPartModel

None.

Request Formats

application/json, text/json

Sample:
{
  "iTakeAwayId": 1,
  "iRestaurantID": 2,
  "vCustomerName": "sample string 3",
  "vHouseNumber": "sample string 4",
  "vFullAddress": "sample string 5",
  "vPostCode": "sample string 6",
  "CollectionTime": 1,
  "vCustomerPhone": "sample string 7",
  "vCustomerEmail": "sample string 8",
  "fOrderTotal": 1.1,
  "bHasPrinted": true,
  "bHasBeenCollected": true,
  "bReservation": true,
  "dtDateCreated": "2025-10-25T12:08:44.8551003+01:00",
  "delInd": true,
  "dtLastModified": "2025-10-25T12:08:44.8551003+01:00",
  "bDownLoaded": true,
  "bTakeAway": true,
  "bDelivery": true,
  "vLatitude": "sample string 14",
  "vLongitude": "sample string 15",
  "OrderGUID": "0ca7a1da-09c7-431f-9f52-3b46d43ffe2f",
  "OrderNumber": "sample string 16",
  "bPaid": true,
  "Confirmed": true,
  "PaymentType": "sample string 17",
  "DeliveryCharges": 1.0,
  "VendorTxCode": "sample string 18",
  "Delivered": true,
  "Message": "sample string 20",
  "Restaurant": "sample string 21",
  "bDelivered": true,
  "Amount": 1.0,
  "OrderStatus": "sample string 23",
  "OutForDelivery": true,
  "CustomerId": 25,
  "orderParts": [
    {
      "ProductID": 1,
      "OrderPartId": 2,
      "ProductName": "sample string 3",
      "Qty": 1,
      "Price": 1.0,
      "Total": 1.0,
      "DelInd": true,
      "OrderGUID": "3d83ad07-4b34-4e12-804b-3854a79ed1af",
      "BoxItems": [
        {
          "OrderPartOptionID": 1,
          "OrderPartId": 2,
          "ProductOptionID": 3,
          "Price": 1.0,
          "DelInd": true,
          "OrderGUID": "1e67a2f5-0931-4266-aa94-ea1ae0ea613a",
          "UserID": 6,
          "LastModified": "2025-10-25T12:08:44.8551003+01:00",
          "ProductName": "sample string 8",
          "ProductID": 9
        },
        {
          "OrderPartOptionID": 1,
          "OrderPartId": 2,
          "ProductOptionID": 3,
          "Price": 1.0,
          "DelInd": true,
          "OrderGUID": "1e67a2f5-0931-4266-aa94-ea1ae0ea613a",
          "UserID": 6,
          "LastModified": "2025-10-25T12:08:44.8551003+01:00",
          "ProductName": "sample string 8",
          "ProductID": 9
        }
      ]
    },
    {
      "ProductID": 1,
      "OrderPartId": 2,
      "ProductName": "sample string 3",
      "Qty": 1,
      "Price": 1.0,
      "Total": 1.0,
      "DelInd": true,
      "OrderGUID": "3d83ad07-4b34-4e12-804b-3854a79ed1af",
      "BoxItems": [
        {
          "OrderPartOptionID": 1,
          "OrderPartId": 2,
          "ProductOptionID": 3,
          "Price": 1.0,
          "DelInd": true,
          "OrderGUID": "1e67a2f5-0931-4266-aa94-ea1ae0ea613a",
          "UserID": 6,
          "LastModified": "2025-10-25T12:08:44.8551003+01:00",
          "ProductName": "sample string 8",
          "ProductID": 9
        },
        {
          "OrderPartOptionID": 1,
          "OrderPartId": 2,
          "ProductOptionID": 3,
          "Price": 1.0,
          "DelInd": true,
          "OrderGUID": "1e67a2f5-0931-4266-aa94-ea1ae0ea613a",
          "UserID": 6,
          "LastModified": "2025-10-25T12:08:44.8551003+01:00",
          "ProductName": "sample string 8",
          "ProductID": 9
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<TakeAwayOrderDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TCB.Entity.Dtos">
  <Amount>1</Amount>
  <CollectionTime>1</CollectionTime>
  <Confirmed>true</Confirmed>
  <CustomerId>25</CustomerId>
  <Delivered>true</Delivered>
  <DeliveryCharges>1</DeliveryCharges>
  <Message>sample string 20</Message>
  <OrderGUID>0ca7a1da-09c7-431f-9f52-3b46d43ffe2f</OrderGUID>
  <OrderNumber>sample string 16</OrderNumber>
  <OrderStatus>sample string 23</OrderStatus>
  <OutForDelivery>true</OutForDelivery>
  <PaymentType>sample string 17</PaymentType>
  <Restaurant>sample string 21</Restaurant>
  <VendorTxCode>sample string 18</VendorTxCode>
  <bDelivered>true</bDelivered>
  <bDelivery>true</bDelivery>
  <bDownLoaded>true</bDownLoaded>
  <bHasBeenCollected>true</bHasBeenCollected>
  <bHasPrinted>true</bHasPrinted>
  <bPaid>true</bPaid>
  <bReservation>true</bReservation>
  <bTakeAway>true</bTakeAway>
  <delInd>true</delInd>
  <dtDateCreated>2025-10-25T12:08:44.8551003+01:00</dtDateCreated>
  <dtLastModified>2025-10-25T12:08:44.8551003+01:00</dtLastModified>
  <fOrderTotal>1.1</fOrderTotal>
  <iRestaurantID>2</iRestaurantID>
  <iTakeAwayId>1</iTakeAwayId>
  <orderParts xmlns:d2p1="http://schemas.datacontract.org/2004/07/TCB.Entity.Model">
    <d2p1:OrderPartModel>
      <d2p1:BoxItems>
        <OrderPartOptionDto>
          <DelInd>true</DelInd>
          <LastModified>2025-10-25T12:08:44.8551003+01:00</LastModified>
          <OrderGUID>1e67a2f5-0931-4266-aa94-ea1ae0ea613a</OrderGUID>
          <OrderPartId>2</OrderPartId>
          <OrderPartOptionID>1</OrderPartOptionID>
          <Price>1</Price>
          <ProductID>9</ProductID>
          <ProductName>sample string 8</ProductName>
          <ProductOptionID>3</ProductOptionID>
          <UserID>6</UserID>
        </OrderPartOptionDto>
        <OrderPartOptionDto>
          <DelInd>true</DelInd>
          <LastModified>2025-10-25T12:08:44.8551003+01:00</LastModified>
          <OrderGUID>1e67a2f5-0931-4266-aa94-ea1ae0ea613a</OrderGUID>
          <OrderPartId>2</OrderPartId>
          <OrderPartOptionID>1</OrderPartOptionID>
          <Price>1</Price>
          <ProductID>9</ProductID>
          <ProductName>sample string 8</ProductName>
          <ProductOptionID>3</ProductOptionID>
          <UserID>6</UserID>
        </OrderPartOptionDto>
      </d2p1:BoxItems>
      <d2p1:DelInd>true</d2p1:DelInd>
      <d2p1:OrderGUID>3d83ad07-4b34-4e12-804b-3854a79ed1af</d2p1:OrderGUID>
      <d2p1:OrderPartId>2</d2p1:OrderPartId>
      <d2p1:Price>1</d2p1:Price>
      <d2p1:ProductID>1</d2p1:ProductID>
      <d2p1:ProductName>sample string 3</d2p1:ProductName>
      <d2p1:Qty>1</d2p1:Qty>
      <d2p1:Total>1</d2p1:Total>
    </d2p1:OrderPartModel>
    <d2p1:OrderPartModel>
      <d2p1:BoxItems>
        <OrderPartOptionDto>
          <DelInd>true</DelInd>
          <LastModified>2025-10-25T12:08:44.8551003+01:00</LastModified>
          <OrderGUID>1e67a2f5-0931-4266-aa94-ea1ae0ea613a</OrderGUID>
          <OrderPartId>2</OrderPartId>
          <OrderPartOptionID>1</OrderPartOptionID>
          <Price>1</Price>
          <ProductID>9</ProductID>
          <ProductName>sample string 8</ProductName>
          <ProductOptionID>3</ProductOptionID>
          <UserID>6</UserID>
        </OrderPartOptionDto>
        <OrderPartOptionDto>
          <DelInd>true</DelInd>
          <LastModified>2025-10-25T12:08:44.8551003+01:00</LastModified>
          <OrderGUID>1e67a2f5-0931-4266-aa94-ea1ae0ea613a</OrderGUID>
          <OrderPartId>2</OrderPartId>
          <OrderPartOptionID>1</OrderPartOptionID>
          <Price>1</Price>
          <ProductID>9</ProductID>
          <ProductName>sample string 8</ProductName>
          <ProductOptionID>3</ProductOptionID>
          <UserID>6</UserID>
        </OrderPartOptionDto>
      </d2p1:BoxItems>
      <d2p1:DelInd>true</d2p1:DelInd>
      <d2p1:OrderGUID>3d83ad07-4b34-4e12-804b-3854a79ed1af</d2p1:OrderGUID>
      <d2p1:OrderPartId>2</d2p1:OrderPartId>
      <d2p1:Price>1</d2p1:Price>
      <d2p1:ProductID>1</d2p1:ProductID>
      <d2p1:ProductName>sample string 3</d2p1:ProductName>
      <d2p1:Qty>1</d2p1:Qty>
      <d2p1:Total>1</d2p1:Total>
    </d2p1:OrderPartModel>
  </orderParts>
  <vCustomerEmail>sample string 8</vCustomerEmail>
  <vCustomerName>sample string 3</vCustomerName>
  <vCustomerPhone>sample string 7</vCustomerPhone>
  <vFullAddress>sample string 5</vFullAddress>
  <vHouseNumber>sample string 4</vHouseNumber>
  <vLatitude>sample string 14</vLatitude>
  <vLongitude>sample string 15</vLongitude>
  <vPostCode>sample string 6</vPostCode>
</TakeAwayOrderDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TakeAwayOrderDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.