POST api/Order/AddOrder

Request Information

URI Parameters

None.

Body Parameters

OrderDTO
NameDescriptionTypeAdditional information
orderno

string

None.

customername

string

None.

orderdate

string

None.

deliverydate

string

None.

customercode

string

None.

orderrefno

string

None.

ordertotal

decimal number

None.

repcode

string

None.

paymentmethod

string

None.

longitude

decimal number

None.

latitude

decimal number

None.

isupload

integer

None.

unitid

integer

None.

locationid

integer

None.

refundtotal

decimal number

None.

zno

integer

None.

datecode

integer

None.

salesmanid

integer

None.

salesman

string

None.

orderchannel

string

None.

orderitemdtls

Collection of CSalesOrderDtl

None.

Request Formats

application/json, text/json

Sample:
{
  "orderno": "sample string 1",
  "customername": "sample string 2",
  "orderdate": "sample string 3",
  "deliverydate": "sample string 4",
  "customercode": "sample string 5",
  "orderrefno": "sample string 6",
  "ordertotal": 7.0,
  "repcode": "sample string 8",
  "paymentmethod": "sample string 9",
  "longitude": 10.0,
  "latitude": 11.0,
  "isupload": 12,
  "unitid": 13,
  "locationid": 14,
  "refundtotal": 15.0,
  "zno": 16,
  "datecode": 17,
  "salesmanid": 18,
  "salesman": "sample string 19",
  "orderchannel": "sample string 20",
  "orderitemdtls": [
    {
      "orderno": "sample string 1",
      "invproductmasterid": 2,
      "productname": "sample string 3",
      "sellingprice": 4.0,
      "discount": 5.0,
      "qty": 6.0,
      "freeqty": 7.0,
      "amount": 8.0,
      "orderdtlid": 9,
      "unitid": 10,
      "refundreason": "sample string 11",
      "refundstatus": "sample string 12",
      "stockstatus": 13
    },
    {
      "orderno": "sample string 1",
      "invproductmasterid": 2,
      "productname": "sample string 3",
      "sellingprice": 4.0,
      "discount": 5.0,
      "qty": 6.0,
      "freeqty": 7.0,
      "amount": 8.0,
      "orderdtlid": 9,
      "unitid": 10,
      "refundreason": "sample string 11",
      "refundstatus": "sample string 12",
      "stockstatus": 13
    }
  ]
}

application/xml, text/xml

Sample:
<OrderDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webapitemplate">
  <customercode>sample string 5</customercode>
  <customername>sample string 2</customername>
  <datecode>17</datecode>
  <deliverydate>sample string 4</deliverydate>
  <isupload>12</isupload>
  <latitude>11</latitude>
  <locationid>14</locationid>
  <longitude>10</longitude>
  <orderchannel>sample string 20</orderchannel>
  <orderdate>sample string 3</orderdate>
  <orderitemdtls>
    <CSalesOrderDtl>
      <amount>8</amount>
      <discount>5</discount>
      <freeqty>7</freeqty>
      <invproductmasterid>2</invproductmasterid>
      <orderdtlid>9</orderdtlid>
      <orderno>sample string 1</orderno>
      <productname>sample string 3</productname>
      <qty>6</qty>
      <refundreason>sample string 11</refundreason>
      <refundstatus>sample string 12</refundstatus>
      <sellingprice>4</sellingprice>
      <stockstatus>13</stockstatus>
      <unitid>10</unitid>
    </CSalesOrderDtl>
    <CSalesOrderDtl>
      <amount>8</amount>
      <discount>5</discount>
      <freeqty>7</freeqty>
      <invproductmasterid>2</invproductmasterid>
      <orderdtlid>9</orderdtlid>
      <orderno>sample string 1</orderno>
      <productname>sample string 3</productname>
      <qty>6</qty>
      <refundreason>sample string 11</refundreason>
      <refundstatus>sample string 12</refundstatus>
      <sellingprice>4</sellingprice>
      <stockstatus>13</stockstatus>
      <unitid>10</unitid>
    </CSalesOrderDtl>
  </orderitemdtls>
  <orderno>sample string 1</orderno>
  <orderrefno>sample string 6</orderrefno>
  <ordertotal>7</ordertotal>
  <paymentmethod>sample string 9</paymentmethod>
  <refundtotal>15</refundtotal>
  <repcode>sample string 8</repcode>
  <salesman>sample string 19</salesman>
  <salesmanid>18</salesmanid>
  <unitid>13</unitid>
  <zno>16</zno>
</OrderDTO>

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.