GET api/totInvoice/get-invoice-history/{stockEntryId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
stockEntryId

integer

Required

Body Parameters

None.

Response Information

Resource Description

InvoiceDetailDTO
NameDescriptionTypeAdditional 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",
      "RoleTypeId": 8
    },
    {
      "StockEntryId": 1,
      "Amount": 2.0,
      "AdditionalCharges": 3.0,
      "DeductCharges": 4.0,
      "TotalInvoiceAmount": 5.0,
      "UserName": "sample string 6",
      "Product": "sample string 7",
      "RoleTypeId": 8
    }
  ],
  "InvoiceHistoryDTOs": [
    {
      "InvoiceId": 1,
      "TotalInvoiceAmount": 2.0,
      "PaidAmount": 3.0,
      "PaymentDate": "sample string 4",
      "Mode": "sample string 5",
      "StatusName": "sample string 6",
      "DueAmount": 7.0
    },
    {
      "InvoiceId": 1,
      "TotalInvoiceAmount": 2.0,
      "PaidAmount": 3.0,
      "PaymentDate": "sample string 4",
      "Mode": "sample string 5",
      "StatusName": "sample string 6",
      "DueAmount": 7.0
    }
  ]
}

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>
      <RoleTypeId>8</RoleTypeId>
      <StockEntryId>1</StockEntryId>
      <TotalInvoiceAmount>5</TotalInvoiceAmount>
      <UserName>sample string 6</UserName>
    </InvoiceBaseDTO>
    <InvoiceBaseDTO>
      <AdditionalCharges>3</AdditionalCharges>
      <Amount>2</Amount>
      <DeductCharges>4</DeductCharges>
      <Product>sample string 7</Product>
      <RoleTypeId>8</RoleTypeId>
      <StockEntryId>1</StockEntryId>
      <TotalInvoiceAmount>5</TotalInvoiceAmount>
      <UserName>sample string 6</UserName>
    </InvoiceBaseDTO>
  </InvoiceBaseDTOs>
  <InvoiceHistoryDTOs>
    <InvoiceHistoryDTO>
      <DueAmount>7</DueAmount>
      <InvoiceId>1</InvoiceId>
      <Mode>sample string 5</Mode>
      <PaidAmount>3</PaidAmount>
      <PaymentDate>sample string 4</PaymentDate>
      <StatusName>sample string 6</StatusName>
      <TotalInvoiceAmount>2</TotalInvoiceAmount>
    </InvoiceHistoryDTO>
    <InvoiceHistoryDTO>
      <DueAmount>7</DueAmount>
      <InvoiceId>1</InvoiceId>
      <Mode>sample string 5</Mode>
      <PaidAmount>3</PaidAmount>
      <PaymentDate>sample string 4</PaymentDate>
      <StatusName>sample string 6</StatusName>
      <TotalInvoiceAmount>2</TotalInvoiceAmount>
    </InvoiceHistoryDTO>
  </InvoiceHistoryDTOs>
</InvoiceDetailDTO>