GET api/SystemApi/GetAllInvoiceDetailsForProducts?productsId={productsId}&start={start}&end={end}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| productsId | integer |
Required |
|
| start | date |
Required |
|
| end | date |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of 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. |
Response 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:09:37.1276557-08:00",
"Total": 13.1
},
{
"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:09:37.1276557-08:00",
"Total": 13.1
}
]
application/xml, text/xml
Sample:
<ArrayOfInvoiceDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlsamanodyPosApi.Models">
<InvoiceDetails>
<BuyPrice>10.1</BuyPrice>
<DateTime>2025-12-22T13:09:37.1276557-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>
<InvoiceDetails>
<BuyPrice>10.1</BuyPrice>
<DateTime>2025-12-22T13:09:37.1276557-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>
</ArrayOfInvoiceDetails>