POST api/SystemApi/AddInvoiceDetails
Request Information
URI Parameters
None.
Body Parameters
InvoiceDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| InvoiceHeader_Id | integer |
None. |
|
| ItemName | string |
None. |
|
| UnitName | string |
None. |
|
| Invoicetype | string |
None. |
|
| Product_Id | integer |
None. |
|
| Unit_Id | integer |
None. |
|
| Discount | decimal number |
None. |
|
| Price | decimal number |
None. |
|
| BuyPrice | decimal number |
None. |
|
| QTY | integer |
None. |
|
| DateTime | date |
None. |
|
| Total | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"InvoiceHeader_Id": 2,
"ItemName": "sample string 3",
"UnitName": "sample string 4",
"Invoicetype": "sample string 5",
"Product_Id": 6,
"Unit_Id": 7,
"Discount": 8.1,
"Price": 9.1,
"BuyPrice": 10.1,
"QTY": 11,
"DateTime": "2025-12-22T13:01:05.917727-08:00",
"Total": 13.1
}
application/xml, text/xml
Sample:
<InvoiceDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlsamanodyPosApi.Models"> <BuyPrice>10.1</BuyPrice> <DateTime>2025-12-22T13:01:05.917727-08:00</DateTime> <Discount>8.1</Discount> <Id>1</Id> <InvoiceHeader_Id>2</InvoiceHeader_Id> <Invoicetype>sample string 5</Invoicetype> <ItemName>sample string 3</ItemName> <Price>9.1</Price> <Product_Id>6</Product_Id> <QTY>11</QTY> <Total>13.1</Total> <UnitName>sample string 4</UnitName> <Unit_Id>7</Unit_Id> </InvoiceDetails>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.