GET api/totInvoice/get-invoice-history/{stockEntryId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| stockEntryId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
InvoiceDetailDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| InvoiceBaseDTOs | Collection of InvoiceBaseDTO |
None. |
|
| InvoiceHistoryDTOs | Collection of InvoiceHistoryDTO |
None. |
Response Formats
application/json, text/json
Sample:
{
"InvoiceBaseDTOs": [
{
"StockEntryId": 1,
"Amount": 2.0,
"AdditionalCharges": 3.0,
"DeductCharges": 4.0,
"TotalInvoiceAmount": 5.0,
"UserName": "sample string 6",
"Product": "sample string 7",
"UserTypeId": 8,
"TransId": "sample string 9"
},
{
"StockEntryId": 1,
"Amount": 2.0,
"AdditionalCharges": 3.0,
"DeductCharges": 4.0,
"TotalInvoiceAmount": 5.0,
"UserName": "sample string 6",
"Product": "sample string 7",
"UserTypeId": 8,
"TransId": "sample string 9"
}
],
"InvoiceHistoryDTOs": [
{
"Id": 1,
"InvoiceId": 2,
"TotalInvoiceAmount": 3.0,
"PaidAmount": 4.0,
"PaymentDate": "sample string 5",
"Mode": "sample string 6",
"StatusName": "sample string 7",
"DueAmount": 8.0,
"PaymentEntryId": 9
},
{
"Id": 1,
"InvoiceId": 2,
"TotalInvoiceAmount": 3.0,
"PaidAmount": 4.0,
"PaymentDate": "sample string 5",
"Mode": "sample string 6",
"StatusName": "sample string 7",
"DueAmount": 8.0,
"PaymentEntryId": 9
}
]
}
application/xml, text/xml
Sample:
<InvoiceDetailDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.Invoices">
<InvoiceBaseDTOs>
<InvoiceBaseDTO>
<AdditionalCharges>3</AdditionalCharges>
<Amount>2</Amount>
<DeductCharges>4</DeductCharges>
<Product>sample string 7</Product>
<StockEntryId>1</StockEntryId>
<TotalInvoiceAmount>5</TotalInvoiceAmount>
<TransId>sample string 9</TransId>
<UserName>sample string 6</UserName>
<UserTypeId>8</UserTypeId>
</InvoiceBaseDTO>
<InvoiceBaseDTO>
<AdditionalCharges>3</AdditionalCharges>
<Amount>2</Amount>
<DeductCharges>4</DeductCharges>
<Product>sample string 7</Product>
<StockEntryId>1</StockEntryId>
<TotalInvoiceAmount>5</TotalInvoiceAmount>
<TransId>sample string 9</TransId>
<UserName>sample string 6</UserName>
<UserTypeId>8</UserTypeId>
</InvoiceBaseDTO>
</InvoiceBaseDTOs>
<InvoiceHistoryDTOs>
<InvoiceHistoryDTO>
<DueAmount>8</DueAmount>
<Id>1</Id>
<InvoiceId>2</InvoiceId>
<Mode>sample string 6</Mode>
<PaidAmount>4</PaidAmount>
<PaymentDate>sample string 5</PaymentDate>
<PaymentEntryId>9</PaymentEntryId>
<StatusName>sample string 7</StatusName>
<TotalInvoiceAmount>3</TotalInvoiceAmount>
</InvoiceHistoryDTO>
<InvoiceHistoryDTO>
<DueAmount>8</DueAmount>
<Id>1</Id>
<InvoiceId>2</InvoiceId>
<Mode>sample string 6</Mode>
<PaidAmount>4</PaidAmount>
<PaymentDate>sample string 5</PaymentDate>
<PaymentEntryId>9</PaymentEntryId>
<StatusName>sample string 7</StatusName>
<TotalInvoiceAmount>3</TotalInvoiceAmount>
</InvoiceHistoryDTO>
</InvoiceHistoryDTOs>
</InvoiceDetailDTO>