POST api/orders/save

Request Information

URI Parameters

None.

Body Parameters

Collection of cOrderDetails
NameDescriptionTypeAdditional information
OrderNo

string

None.

OrderDate

string

None.

PaymentType

string

None.

ItemCode

string

None.

ItemName

string

None.

Qty

decimal number

None.

ItemRate

decimal number

None.

TotalAmount

decimal number

None.

DeviceNo

string

None.

BusinessId

integer

None.

LocationName

string

None.

CGSTPercentage

decimal number

None.

SGSTPercentage

decimal number

None.

CGSTAmount

decimal number

None.

SGSTAmount

decimal number

None.

TotalTax

decimal number

None.

Username

string

None.

GrandTotal

decimal number

None.

arrdetails

Collection of Object

None.

_arrdetails

Collection of Object

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "_arrdetails": [
      {},
      {}
    ],
    "OrderNo": "sample string 1",
    "OrderDate": "sample string 2",
    "PaymentType": "sample string 3",
    "ItemCode": "sample string 4",
    "ItemName": "sample string 5",
    "Qty": 6.0,
    "ItemRate": 7.0,
    "TotalAmount": 8.0,
    "DeviceNo": "sample string 9",
    "BusinessId": 10,
    "LocationName": "sample string 11",
    "CGSTPercentage": 12.0,
    "SGSTPercentage": 13.0,
    "CGSTAmount": 14.0,
    "SGSTAmount": 15.0,
    "TotalTax": 16.0,
    "Username": "sample string 17",
    "GrandTotal": 18.0,
    "arrdetails": [
      {},
      {}
    ]
  },
  {
    "_arrdetails": [
      {},
      {}
    ],
    "OrderNo": "sample string 1",
    "OrderDate": "sample string 2",
    "PaymentType": "sample string 3",
    "ItemCode": "sample string 4",
    "ItemName": "sample string 5",
    "Qty": 6.0,
    "ItemRate": 7.0,
    "TotalAmount": 8.0,
    "DeviceNo": "sample string 9",
    "BusinessId": 10,
    "LocationName": "sample string 11",
    "CGSTPercentage": 12.0,
    "SGSTPercentage": 13.0,
    "CGSTAmount": 14.0,
    "SGSTAmount": 15.0,
    "TotalTax": 16.0,
    "Username": "sample string 17",
    "GrandTotal": 18.0,
    "arrdetails": [
      {},
      {}
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfcOrderDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AppLogic">
  <cOrderDetails>
    <BusinessId>10</BusinessId>
    <CGSTAmount>14</CGSTAmount>
    <CGSTPercentage>12</CGSTPercentage>
    <DeviceNo>sample string 9</DeviceNo>
    <GrandTotal>18</GrandTotal>
    <ItemCode>sample string 4</ItemCode>
    <ItemName>sample string 5</ItemName>
    <ItemRate>7</ItemRate>
    <LocationName>sample string 11</LocationName>
    <OrderDate>sample string 2</OrderDate>
    <OrderNo>sample string 1</OrderNo>
    <PaymentType>sample string 3</PaymentType>
    <Qty>6</Qty>
    <SGSTAmount>15</SGSTAmount>
    <SGSTPercentage>13</SGSTPercentage>
    <TotalAmount>8</TotalAmount>
    <TotalTax>16</TotalTax>
    <Username>sample string 17</Username>
    <_arrdetails xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:anyType />
      <d3p1:anyType />
    </_arrdetails>
    <arrdetails xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:anyType />
      <d3p1:anyType />
    </arrdetails>
  </cOrderDetails>
  <cOrderDetails>
    <BusinessId>10</BusinessId>
    <CGSTAmount>14</CGSTAmount>
    <CGSTPercentage>12</CGSTPercentage>
    <DeviceNo>sample string 9</DeviceNo>
    <GrandTotal>18</GrandTotal>
    <ItemCode>sample string 4</ItemCode>
    <ItemName>sample string 5</ItemName>
    <ItemRate>7</ItemRate>
    <LocationName>sample string 11</LocationName>
    <OrderDate>sample string 2</OrderDate>
    <OrderNo>sample string 1</OrderNo>
    <PaymentType>sample string 3</PaymentType>
    <Qty>6</Qty>
    <SGSTAmount>15</SGSTAmount>
    <SGSTPercentage>13</SGSTPercentage>
    <TotalAmount>8</TotalAmount>
    <TotalTax>16</TotalTax>
    <Username>sample string 17</Username>
    <_arrdetails xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:anyType />
      <d3p1:anyType />
    </_arrdetails>
    <arrdetails xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:anyType />
      <d3p1:anyType />
    </arrdetails>
  </cOrderDetails>
</ArrayOfcOrderDetails>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.