POST api/Order/AddOrder

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
data
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "OrderID": 1,
  "InvoiceNumber": "sample string 2",
  "CustomerID": 3,
  "ShipTo": "sample string 4",
  "DeliveryDate": "2026-01-17T09:08:54.9834353+05:30",
  "Tax": "sample string 5",
  "OrderRef": "sample string 6",
  "CreatedBy": 7,
  "CreatedOn": "2026-01-17T09:08:54.9834353+05:30",
  "UpdatedBy": 1,
  "UpdatedOn": "2026-01-17T09:08:54.9834353+05:30",
  "ProductID": 9,
  "lstOrderQty": [
    {
      "OrderQtyID": 1,
      "ProductID": 2,
      "Quantity": 3.0,
      "BaseRate": 4.0,
      "SaleRate": 5.0,
      "BillDiscount": 6.0,
      "Total": 7.0,
      "Tax": 8.0,
      "FinalTotal": 9.0,
      "CategoryTypeID": 10,
      "ProductName": "sample string 11"
    },
    {
      "OrderQtyID": 1,
      "ProductID": 2,
      "Quantity": 3.0,
      "BaseRate": 4.0,
      "SaleRate": 5.0,
      "BillDiscount": 6.0,
      "Total": 7.0,
      "Tax": 8.0,
      "FinalTotal": 9.0,
      "CategoryTypeID": 10,
      "ProductName": "sample string 11"
    },
    {
      "OrderQtyID": 1,
      "ProductID": 2,
      "Quantity": 3.0,
      "BaseRate": 4.0,
      "SaleRate": 5.0,
      "BillDiscount": 6.0,
      "Total": 7.0,
      "Tax": 8.0,
      "FinalTotal": 9.0,
      "CategoryTypeID": 10,
      "ProductName": "sample string 11"
    }
  ],
  "TotalDiscount": 10.0,
  "RemotePrint": true,
  "IsTCSApplicable": true,
  "GSTNumber": "sample string 13"
}

application/xml, text/xml

Sample:
<OrderViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/vb.Data">
  <CreatedBy>7</CreatedBy>
  <CreatedOn>2026-01-17T09:08:54.9834353+05:30</CreatedOn>
  <CustomerID>3</CustomerID>
  <DeliveryDate>2026-01-17T09:08:54.9834353+05:30</DeliveryDate>
  <GSTNumber>sample string 13</GSTNumber>
  <InvoiceNumber>sample string 2</InvoiceNumber>
  <IsTCSApplicable>true</IsTCSApplicable>
  <OrderID>1</OrderID>
  <OrderRef>sample string 6</OrderRef>
  <ProductID>9</ProductID>
  <RemotePrint>true</RemotePrint>
  <ShipTo>sample string 4</ShipTo>
  <Tax>sample string 5</Tax>
  <TotalDiscount>10</TotalDiscount>
  <UpdatedBy>1</UpdatedBy>
  <UpdatedOn>2026-01-17T09:08:54.9834353+05:30</UpdatedOn>
  <lstOrderQty>
    <OrderQtyViewModel>
      <BaseRate>4</BaseRate>
      <BillDiscount>6</BillDiscount>
      <CategoryTypeID>10</CategoryTypeID>
      <FinalTotal>9</FinalTotal>
      <OrderQtyID>1</OrderQtyID>
      <ProductID>2</ProductID>
      <ProductName>sample string 11</ProductName>
      <Quantity>3</Quantity>
      <SaleRate>5</SaleRate>
      <Tax>8</Tax>
      <Total>7</Total>
    </OrderQtyViewModel>
    <OrderQtyViewModel>
      <BaseRate>4</BaseRate>
      <BillDiscount>6</BillDiscount>
      <CategoryTypeID>10</CategoryTypeID>
      <FinalTotal>9</FinalTotal>
      <OrderQtyID>1</OrderQtyID>
      <ProductID>2</ProductID>
      <ProductName>sample string 11</ProductName>
      <Quantity>3</Quantity>
      <SaleRate>5</SaleRate>
      <Tax>8</Tax>
      <Total>7</Total>
    </OrderQtyViewModel>
    <OrderQtyViewModel>
      <BaseRate>4</BaseRate>
      <BillDiscount>6</BillDiscount>
      <CategoryTypeID>10</CategoryTypeID>
      <FinalTotal>9</FinalTotal>
      <OrderQtyID>1</OrderQtyID>
      <ProductID>2</ProductID>
      <ProductName>sample string 11</ProductName>
      <Quantity>3</Quantity>
      <SaleRate>5</SaleRate>
      <Tax>8</Tax>
      <Total>7</Total>
    </OrderQtyViewModel>
  </lstOrderQty>
</OrderViewModel>

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 'OrderViewModel'.