POST api/order/insertSale
Request Information
URI Parameters
None.
Body Parameters
SaleModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Date | date |
None. |
|
| ItemId | integer |
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. |
Request Formats
application/json, text/json
Sample:
{
"Date": "2026-07-08T19:11:17.2641527+05:30",
"ItemId": 2,
"LedgerId": 3,
"SubTotal": 4.0,
"Discount": 5.0,
"Total": 6.0,
"ReceivedAmount": 7.0,
"Narration": "sample string 8",
"PaymentType": "sample string 9",
"BankId": 10,
"SaleId": 11
}
application/xml, text/xml
Sample:
<SaleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MasAuto.Models"> <BankId>10</BankId> <Date>2026-07-08T19:11:17.2641527+05:30</Date> <Discount>5</Discount> <ItemId>2</ItemId> <LedgerId>3</LedgerId> <Narration>sample string 8</Narration> <PaymentType>sample string 9</PaymentType> <ReceivedAmount>7</ReceivedAmount> <SaleId>11</SaleId> <SubTotal>4</SubTotal> <Total>6</Total> </SaleModel>
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>