PUT api/Orders/UpdateOrder

Request Information

URI Parameters

None.

Body Parameters

OrderUpdateBinidingModels
NameDescriptionTypeAdditional information
OrderId

integer

Required

ProductList

Collection of OrderProductUpdateBindingModels

Required

OrderDate

date

Required

OrderShippingAddressId

integer

Required

OrderBillingAddressId

integer

Required

TotalAmount

decimal number

Required

TaxAmount

decimal number

Required

PreviousDue

decimal number

None.

DepositAmount

decimal number

Required

GrandTotal

decimal number

Required

GrandErpTotal

decimal number

None.

PO_Number

string

None.

DeliveryCharge

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "OrderId": 1,
  "ProductList": [
    {
      "OrderDetailsId": 1,
      "OrderId": 2,
      "ProductId": 3,
      "Quantity": 4,
      "UnitPrice": 5.0,
      "TaxPercentage": 6.0,
      "TaxAmount": 7.0,
      "TotalAmount": 8.0,
      "BottletoReturn": 9,
      "ChargeCode": "sample string 10",
      "DespositAmount": 11,
      "OfferAppliedList": [
        {
          "OfferId": 1,
          "ChargeCode": "sample string 2",
          "BaseProductQty": "sample string 3",
          "OfferProductQty": "sample string 4",
          "BaseProductDiscount": "sample string 5",
          "OfferProductDiscount": "sample string 6",
          "FlagOnOfferType": true
        },
        {
          "OfferId": 1,
          "ChargeCode": "sample string 2",
          "BaseProductQty": "sample string 3",
          "OfferProductQty": "sample string 4",
          "BaseProductDiscount": "sample string 5",
          "OfferProductDiscount": "sample string 6",
          "FlagOnOfferType": true
        }
      ],
      "ErpUnitPrice": 12.0,
      "ErpTotalPrice": 13.0,
      "LineNo": 14,
      "DespositQty": 15
    },
    {
      "OrderDetailsId": 1,
      "OrderId": 2,
      "ProductId": 3,
      "Quantity": 4,
      "UnitPrice": 5.0,
      "TaxPercentage": 6.0,
      "TaxAmount": 7.0,
      "TotalAmount": 8.0,
      "BottletoReturn": 9,
      "ChargeCode": "sample string 10",
      "DespositAmount": 11,
      "OfferAppliedList": [
        {
          "OfferId": 1,
          "ChargeCode": "sample string 2",
          "BaseProductQty": "sample string 3",
          "OfferProductQty": "sample string 4",
          "BaseProductDiscount": "sample string 5",
          "OfferProductDiscount": "sample string 6",
          "FlagOnOfferType": true
        },
        {
          "OfferId": 1,
          "ChargeCode": "sample string 2",
          "BaseProductQty": "sample string 3",
          "OfferProductQty": "sample string 4",
          "BaseProductDiscount": "sample string 5",
          "OfferProductDiscount": "sample string 6",
          "FlagOnOfferType": true
        }
      ],
      "ErpUnitPrice": 12.0,
      "ErpTotalPrice": 13.0,
      "LineNo": 14,
      "DespositQty": 15
    }
  ],
  "OrderDate": "2026-04-16T05:43:19.7825857",
  "OrderShippingAddressId": 3,
  "OrderBillingAddressId": 4,
  "TotalAmount": 5.0,
  "TaxAmount": 6.0,
  "PreviousDue": 7.0,
  "DepositAmount": 8.0,
  "GrandTotal": 9.0,
  "GrandErpTotal": 10.0,
  "PO_Number": "sample string 11",
  "DeliveryCharge": 12.0
}

application/xml, text/xml

Sample:
<OrderUpdateBinidingModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Coke.Models.WebApi.BindingModels.CustomerOrder">
  <DeliveryCharge>12</DeliveryCharge>
  <DepositAmount>8</DepositAmount>
  <GrandErpTotal>10</GrandErpTotal>
  <GrandTotal>9</GrandTotal>
  <OrderBillingAddressId>4</OrderBillingAddressId>
  <OrderDate>2026-04-16T05:43:19.7825857</OrderDate>
  <OrderShippingAddressId>3</OrderShippingAddressId>
  <PO_Number>sample string 11</PO_Number>
  <PreviousDue>7</PreviousDue>
  <TaxAmount>6</TaxAmount>
  <TotalAmount>5</TotalAmount>
  <OrderId>1</OrderId>
  <ProductList>
    <OrderProductUpdateBindingModels>
      <BottletoReturn>9</BottletoReturn>
      <ChargeCode>sample string 10</ChargeCode>
      <DespositAmount>11</DespositAmount>
      <DespositQty>15</DespositQty>
      <ErpTotalPrice>13</ErpTotalPrice>
      <ErpUnitPrice>12</ErpUnitPrice>
      <LineNo>14</LineNo>
      <OfferAppliedList xmlns:d4p1="http://schemas.datacontract.org/2004/07/Coke.Models.WebApi.ViewModels.Product">
        <d4p1:OfferDetails>
          <d4p1:BaseProductDiscount>sample string 5</d4p1:BaseProductDiscount>
          <d4p1:BaseProductQty>sample string 3</d4p1:BaseProductQty>
          <d4p1:ChargeCode>sample string 2</d4p1:ChargeCode>
          <d4p1:FlagOnOfferType>true</d4p1:FlagOnOfferType>
          <d4p1:OfferId>1</d4p1:OfferId>
          <d4p1:OfferProductDiscount>sample string 6</d4p1:OfferProductDiscount>
          <d4p1:OfferProductQty>sample string 4</d4p1:OfferProductQty>
        </d4p1:OfferDetails>
        <d4p1:OfferDetails>
          <d4p1:BaseProductDiscount>sample string 5</d4p1:BaseProductDiscount>
          <d4p1:BaseProductQty>sample string 3</d4p1:BaseProductQty>
          <d4p1:ChargeCode>sample string 2</d4p1:ChargeCode>
          <d4p1:FlagOnOfferType>true</d4p1:FlagOnOfferType>
          <d4p1:OfferId>1</d4p1:OfferId>
          <d4p1:OfferProductDiscount>sample string 6</d4p1:OfferProductDiscount>
          <d4p1:OfferProductQty>sample string 4</d4p1:OfferProductQty>
        </d4p1:OfferDetails>
      </OfferAppliedList>
      <OrderId>2</OrderId>
      <ProductId>3</ProductId>
      <Quantity>4</Quantity>
      <TaxAmount>7</TaxAmount>
      <TaxPercentage>6</TaxPercentage>
      <TotalAmount>8</TotalAmount>
      <UnitPrice>5</UnitPrice>
      <OrderDetailsId>1</OrderDetailsId>
    </OrderProductUpdateBindingModels>
    <OrderProductUpdateBindingModels>
      <BottletoReturn>9</BottletoReturn>
      <ChargeCode>sample string 10</ChargeCode>
      <DespositAmount>11</DespositAmount>
      <DespositQty>15</DespositQty>
      <ErpTotalPrice>13</ErpTotalPrice>
      <ErpUnitPrice>12</ErpUnitPrice>
      <LineNo>14</LineNo>
      <OfferAppliedList xmlns:d4p1="http://schemas.datacontract.org/2004/07/Coke.Models.WebApi.ViewModels.Product">
        <d4p1:OfferDetails>
          <d4p1:BaseProductDiscount>sample string 5</d4p1:BaseProductDiscount>
          <d4p1:BaseProductQty>sample string 3</d4p1:BaseProductQty>
          <d4p1:ChargeCode>sample string 2</d4p1:ChargeCode>
          <d4p1:FlagOnOfferType>true</d4p1:FlagOnOfferType>
          <d4p1:OfferId>1</d4p1:OfferId>
          <d4p1:OfferProductDiscount>sample string 6</d4p1:OfferProductDiscount>
          <d4p1:OfferProductQty>sample string 4</d4p1:OfferProductQty>
        </d4p1:OfferDetails>
        <d4p1:OfferDetails>
          <d4p1:BaseProductDiscount>sample string 5</d4p1:BaseProductDiscount>
          <d4p1:BaseProductQty>sample string 3</d4p1:BaseProductQty>
          <d4p1:ChargeCode>sample string 2</d4p1:ChargeCode>
          <d4p1:FlagOnOfferType>true</d4p1:FlagOnOfferType>
          <d4p1:OfferId>1</d4p1:OfferId>
          <d4p1:OfferProductDiscount>sample string 6</d4p1:OfferProductDiscount>
          <d4p1:OfferProductQty>sample string 4</d4p1:OfferProductQty>
        </d4p1:OfferDetails>
      </OfferAppliedList>
      <OrderId>2</OrderId>
      <ProductId>3</ProductId>
      <Quantity>4</Quantity>
      <TaxAmount>7</TaxAmount>
      <TaxPercentage>6</TaxPercentage>
      <TotalAmount>8</TotalAmount>
      <UnitPrice>5</UnitPrice>
      <OrderDetailsId>1</OrderDetailsId>
    </OrderProductUpdateBindingModels>
  </ProductList>
</OrderUpdateBinidingModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.