POST api/orders/updateorder

Request Information

URI Parameters

None.

Body Parameters

Order
NameDescriptionTypeAdditional information
HallId

integer

None.

TableId

integer

None.

UserId

integer

None.

OrderId

integer

None.

NetAmount

decimal number

None.

NetTax

decimal number

None.

ServiceCharges

decimal number

None.

InvoiceItems

Collection of OrderItem

None.

Request Formats

application/json, text/json

Sample:
{
  "HallId": 1,
  "TableId": 2,
  "UserId": 3,
  "OrderId": 4,
  "NetAmount": 5.0,
  "NetTax": 6.0,
  "ServiceCharges": 7.0,
  "InvoiceItems": [
    {
      "OrderItemId": 1,
      "ProductId": 2,
      "OrderId": 3,
      "Quantity": 4.0,
      "UnitPrice": 5.0,
      "TaxAmount": 6.0,
      "UserId": 7
    },
    {
      "OrderItemId": 1,
      "ProductId": 2,
      "OrderId": 3,
      "Quantity": 4.0,
      "UnitPrice": 5.0,
      "TaxAmount": 6.0,
      "UserId": 7
    }
  ]
}

application/xml, text/xml

Sample:
<Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eRestuarantWebAPI.Models">
  <HallId>1</HallId>
  <InvoiceItems>
    <OrderItem>
      <OrderId>3</OrderId>
      <OrderItemId>1</OrderItemId>
      <ProductId>2</ProductId>
      <Quantity>4</Quantity>
      <TaxAmount>6</TaxAmount>
      <UnitPrice>5</UnitPrice>
      <UserId>7</UserId>
    </OrderItem>
    <OrderItem>
      <OrderId>3</OrderId>
      <OrderItemId>1</OrderItemId>
      <ProductId>2</ProductId>
      <Quantity>4</Quantity>
      <TaxAmount>6</TaxAmount>
      <UnitPrice>5</UnitPrice>
      <UserId>7</UserId>
    </OrderItem>
  </InvoiceItems>
  <NetAmount>5</NetAmount>
  <NetTax>6</NetTax>
  <OrderId>4</OrderId>
  <ServiceCharges>7</ServiceCharges>
  <TableId>2</TableId>
  <UserId>3</UserId>
</Order>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.