POST api/order/insertOrder
Request Information
URI Parameters
None.
Body Parameters
SaleHeaderModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Date | date |
None. |
|
| LedgerId | integer |
None. |
|
| SubTotal | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| Total | decimal number |
None. |
|
| ReceivedAmount | decimal number |
None. |
|
| Narration | string |
None. |
|
| PaymentType | string |
None. |
|
| BankId | integer |
None. |
|
| SaleId | integer |
None. |
|
| SaleDetail | Collection of SaleDetailModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Date": "2026-07-08T19:10:53.9931324+05:30",
"LedgerId": 2,
"SubTotal": 3.0,
"Discount": 4.0,
"Total": 5.0,
"ReceivedAmount": 6.0,
"Narration": "sample string 7",
"PaymentType": "sample string 8",
"BankId": 9,
"SaleId": 10,
"SaleDetail": [
{
"ItemId": 1,
"Price": 2.0
},
{
"ItemId": 1,
"Price": 2.0
}
]
}
application/xml, text/xml
Sample:
<SaleHeaderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MasAuto.Models.DAOModels">
<BankId>9</BankId>
<Date>2026-07-08T19:10:53.9931324+05:30</Date>
<Discount>4</Discount>
<LedgerId>2</LedgerId>
<Narration>sample string 7</Narration>
<PaymentType>sample string 8</PaymentType>
<ReceivedAmount>6</ReceivedAmount>
<SaleDetail>
<SaleDetailModel>
<ItemId>1</ItemId>
<Price>2</Price>
</SaleDetailModel>
<SaleDetailModel>
<ItemId>1</ItemId>
<Price>2</Price>
</SaleDetailModel>
</SaleDetail>
<SaleId>10</SaleId>
<SubTotal>3</SubTotal>
<Total>5</Total>
</SaleHeaderModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseWrapper| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseCode | integer |
None. |
|
| Message | string |
None. |
|
| Response | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResponseCode": 1,
"Message": "sample string 2",
"Response": {}
}
application/xml, text/xml
Sample:
<ResponseWrapper xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MasAuto.Models"> <Message>sample string 2</Message> <Response /> <ResponseCode>1</ResponseCode> </ResponseWrapper>