GET Api/PurchaseInvoiceServiceDetail/GetByPurchaseInvoice/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of PurchaseInvoiceServiceDetailViewModel
NameDescriptionTypeAdditional information
PurchaseInvoiceServiceDetailId

integer

None.

PurchaseInvoiceId

integer

None.

ServiceId

integer

None.

ItemDescription

string

None.

UomId

integer

None.

InvoiceQty

decimal number

None.

ItemCost

decimal number

None.

Discount

decimal number

None.

DiscountAmount

decimal number

None.

TaxTemplateId

integer

None.

ServiceCode

string

None.

ServiceName

string

None.

UomAbbrevation

string

None.

UomName

string

None.

TaxTemplateName

string

None.

PurchaseInvoiceServiceDetailTaxes

Collection of PurchaseInvoiceServiceDetailTax

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "PurchaseInvoiceServiceDetailId": 1,
    "PurchaseInvoiceId": 2,
    "ServiceId": 3,
    "ItemDescription": "sample string 4",
    "UomId": 5,
    "InvoiceQty": 6.1,
    "ItemCost": 7.1,
    "Discount": 8.1,
    "DiscountAmount": 9.1,
    "TaxTemplateId": 1,
    "ServiceCode": "sample string 10",
    "ServiceName": "sample string 11",
    "UomAbbrevation": "sample string 12",
    "UomName": "sample string 13",
    "TaxTemplateName": "sample string 14",
    "PurchaseInvoiceServiceDetailTaxes": [
      {
        "PurchaseInvoiceServiceDetailTaxId": 1,
        "PurchaseInvoiceServiceDetailId": 2,
        "TaxId": 3,
        "Rate": 4.1,
        "Amount": 5.1,
        "Tax": {
          "TaxId": 1,
          "TaxName": "sample string 2",
          "DisplayName": "sample string 3",
          "Rate": 4.1,
          "TaxTypeId": 5,
          "TaxStatusId": 6,
          "CreatedDate": "2026-07-21T15:50:53.4971838+05:30",
          "CreatedBy": "sample string 8",
          "CreatedByUserId": 9
        },
        "CreatedDate": "2026-07-21T15:50:53.4971838+05:30",
        "CreatedBy": "sample string 7",
        "CreatedByUserId": 8
      },
      {
        "PurchaseInvoiceServiceDetailTaxId": 1,
        "PurchaseInvoiceServiceDetailId": 2,
        "TaxId": 3,
        "Rate": 4.1,
        "Amount": 5.1,
        "Tax": {
          "TaxId": 1,
          "TaxName": "sample string 2",
          "DisplayName": "sample string 3",
          "Rate": 4.1,
          "TaxTypeId": 5,
          "TaxStatusId": 6,
          "CreatedDate": "2026-07-21T15:50:53.4971838+05:30",
          "CreatedBy": "sample string 8",
          "CreatedByUserId": 9
        },
        "CreatedDate": "2026-07-21T15:50:53.4971838+05:30",
        "CreatedBy": "sample string 7",
        "CreatedByUserId": 8
      }
    ]
  },
  {
    "PurchaseInvoiceServiceDetailId": 1,
    "PurchaseInvoiceId": 2,
    "ServiceId": 3,
    "ItemDescription": "sample string 4",
    "UomId": 5,
    "InvoiceQty": 6.1,
    "ItemCost": 7.1,
    "Discount": 8.1,
    "DiscountAmount": 9.1,
    "TaxTemplateId": 1,
    "ServiceCode": "sample string 10",
    "ServiceName": "sample string 11",
    "UomAbbrevation": "sample string 12",
    "UomName": "sample string 13",
    "TaxTemplateName": "sample string 14",
    "PurchaseInvoiceServiceDetailTaxes": [
      {
        "PurchaseInvoiceServiceDetailTaxId": 1,
        "PurchaseInvoiceServiceDetailId": 2,
        "TaxId": 3,
        "Rate": 4.1,
        "Amount": 5.1,
        "Tax": {
          "TaxId": 1,
          "TaxName": "sample string 2",
          "DisplayName": "sample string 3",
          "Rate": 4.1,
          "TaxTypeId": 5,
          "TaxStatusId": 6,
          "CreatedDate": "2026-07-21T15:50:53.4971838+05:30",
          "CreatedBy": "sample string 8",
          "CreatedByUserId": 9
        },
        "CreatedDate": "2026-07-21T15:50:53.4971838+05:30",
        "CreatedBy": "sample string 7",
        "CreatedByUserId": 8
      },
      {
        "PurchaseInvoiceServiceDetailTaxId": 1,
        "PurchaseInvoiceServiceDetailId": 2,
        "TaxId": 3,
        "Rate": 4.1,
        "Amount": 5.1,
        "Tax": {
          "TaxId": 1,
          "TaxName": "sample string 2",
          "DisplayName": "sample string 3",
          "Rate": 4.1,
          "TaxTypeId": 5,
          "TaxStatusId": 6,
          "CreatedDate": "2026-07-21T15:50:53.4971838+05:30",
          "CreatedBy": "sample string 8",
          "CreatedByUserId": 9
        },
        "CreatedDate": "2026-07-21T15:50:53.4971838+05:30",
        "CreatedBy": "sample string 7",
        "CreatedByUserId": 8
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfPurchaseInvoiceServiceDetailViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netsoft.Web.Api.ViewModel">
  <PurchaseInvoiceServiceDetailViewModel>
    <Discount>8.1</Discount>
    <DiscountAmount>9.1</DiscountAmount>
    <InvoiceQty>6.1</InvoiceQty>
    <ItemCost>7.1</ItemCost>
    <ItemDescription>sample string 4</ItemDescription>
    <PurchaseInvoiceId>2</PurchaseInvoiceId>
    <PurchaseInvoiceServiceDetailId>1</PurchaseInvoiceServiceDetailId>
    <PurchaseInvoiceServiceDetailTaxes xmlns:d3p1="http://schemas.datacontract.org/2004/07/Netsoft.Domain.Entities">
      <d3p1:PurchaseInvoiceServiceDetailTax>
        <d3p1:CreatedBy>sample string 7</d3p1:CreatedBy>
        <d3p1:CreatedByUserId>8</d3p1:CreatedByUserId>
        <d3p1:CreatedDate>2026-07-21T15:50:53.4971838+05:30</d3p1:CreatedDate>
        <d3p1:Amount>5.1</d3p1:Amount>
        <d3p1:PurchaseInvoiceServiceDetailId>2</d3p1:PurchaseInvoiceServiceDetailId>
        <d3p1:PurchaseInvoiceServiceDetailTaxId>1</d3p1:PurchaseInvoiceServiceDetailTaxId>
        <d3p1:Rate>4.1</d3p1:Rate>
        <d3p1:Tax>
          <d3p1:CreatedBy>sample string 8</d3p1:CreatedBy>
          <d3p1:CreatedByUserId>9</d3p1:CreatedByUserId>
          <d3p1:CreatedDate>2026-07-21T15:50:53.4971838+05:30</d3p1:CreatedDate>
          <d3p1:DisplayName>sample string 3</d3p1:DisplayName>
          <d3p1:Rate>4.1</d3p1:Rate>
          <d3p1:TaxId>1</d3p1:TaxId>
          <d3p1:TaxName>sample string 2</d3p1:TaxName>
          <d3p1:TaxStatusId>6</d3p1:TaxStatusId>
          <d3p1:TaxTypeId>5</d3p1:TaxTypeId>
        </d3p1:Tax>
        <d3p1:TaxId>3</d3p1:TaxId>
      </d3p1:PurchaseInvoiceServiceDetailTax>
      <d3p1:PurchaseInvoiceServiceDetailTax>
        <d3p1:CreatedBy>sample string 7</d3p1:CreatedBy>
        <d3p1:CreatedByUserId>8</d3p1:CreatedByUserId>
        <d3p1:CreatedDate>2026-07-21T15:50:53.4971838+05:30</d3p1:CreatedDate>
        <d3p1:Amount>5.1</d3p1:Amount>
        <d3p1:PurchaseInvoiceServiceDetailId>2</d3p1:PurchaseInvoiceServiceDetailId>
        <d3p1:PurchaseInvoiceServiceDetailTaxId>1</d3p1:PurchaseInvoiceServiceDetailTaxId>
        <d3p1:Rate>4.1</d3p1:Rate>
        <d3p1:Tax>
          <d3p1:CreatedBy>sample string 8</d3p1:CreatedBy>
          <d3p1:CreatedByUserId>9</d3p1:CreatedByUserId>
          <d3p1:CreatedDate>2026-07-21T15:50:53.4971838+05:30</d3p1:CreatedDate>
          <d3p1:DisplayName>sample string 3</d3p1:DisplayName>
          <d3p1:Rate>4.1</d3p1:Rate>
          <d3p1:TaxId>1</d3p1:TaxId>
          <d3p1:TaxName>sample string 2</d3p1:TaxName>
          <d3p1:TaxStatusId>6</d3p1:TaxStatusId>
          <d3p1:TaxTypeId>5</d3p1:TaxTypeId>
        </d3p1:Tax>
        <d3p1:TaxId>3</d3p1:TaxId>
      </d3p1:PurchaseInvoiceServiceDetailTax>
    </PurchaseInvoiceServiceDetailTaxes>
    <ServiceCode>sample string 10</ServiceCode>
    <ServiceId>3</ServiceId>
    <ServiceName>sample string 11</ServiceName>
    <TaxTemplateId>1</TaxTemplateId>
    <TaxTemplateName>sample string 14</TaxTemplateName>
    <UomAbbrevation>sample string 12</UomAbbrevation>
    <UomId>5</UomId>
    <UomName>sample string 13</UomName>
  </PurchaseInvoiceServiceDetailViewModel>
  <PurchaseInvoiceServiceDetailViewModel>
    <Discount>8.1</Discount>
    <DiscountAmount>9.1</DiscountAmount>
    <InvoiceQty>6.1</InvoiceQty>
    <ItemCost>7.1</ItemCost>
    <ItemDescription>sample string 4</ItemDescription>
    <PurchaseInvoiceId>2</PurchaseInvoiceId>
    <PurchaseInvoiceServiceDetailId>1</PurchaseInvoiceServiceDetailId>
    <PurchaseInvoiceServiceDetailTaxes xmlns:d3p1="http://schemas.datacontract.org/2004/07/Netsoft.Domain.Entities">
      <d3p1:PurchaseInvoiceServiceDetailTax>
        <d3p1:CreatedBy>sample string 7</d3p1:CreatedBy>
        <d3p1:CreatedByUserId>8</d3p1:CreatedByUserId>
        <d3p1:CreatedDate>2026-07-21T15:50:53.4971838+05:30</d3p1:CreatedDate>
        <d3p1:Amount>5.1</d3p1:Amount>
        <d3p1:PurchaseInvoiceServiceDetailId>2</d3p1:PurchaseInvoiceServiceDetailId>
        <d3p1:PurchaseInvoiceServiceDetailTaxId>1</d3p1:PurchaseInvoiceServiceDetailTaxId>
        <d3p1:Rate>4.1</d3p1:Rate>
        <d3p1:Tax>
          <d3p1:CreatedBy>sample string 8</d3p1:CreatedBy>
          <d3p1:CreatedByUserId>9</d3p1:CreatedByUserId>
          <d3p1:CreatedDate>2026-07-21T15:50:53.4971838+05:30</d3p1:CreatedDate>
          <d3p1:DisplayName>sample string 3</d3p1:DisplayName>
          <d3p1:Rate>4.1</d3p1:Rate>
          <d3p1:TaxId>1</d3p1:TaxId>
          <d3p1:TaxName>sample string 2</d3p1:TaxName>
          <d3p1:TaxStatusId>6</d3p1:TaxStatusId>
          <d3p1:TaxTypeId>5</d3p1:TaxTypeId>
        </d3p1:Tax>
        <d3p1:TaxId>3</d3p1:TaxId>
      </d3p1:PurchaseInvoiceServiceDetailTax>
      <d3p1:PurchaseInvoiceServiceDetailTax>
        <d3p1:CreatedBy>sample string 7</d3p1:CreatedBy>
        <d3p1:CreatedByUserId>8</d3p1:CreatedByUserId>
        <d3p1:CreatedDate>2026-07-21T15:50:53.4971838+05:30</d3p1:CreatedDate>
        <d3p1:Amount>5.1</d3p1:Amount>
        <d3p1:PurchaseInvoiceServiceDetailId>2</d3p1:PurchaseInvoiceServiceDetailId>
        <d3p1:PurchaseInvoiceServiceDetailTaxId>1</d3p1:PurchaseInvoiceServiceDetailTaxId>
        <d3p1:Rate>4.1</d3p1:Rate>
        <d3p1:Tax>
          <d3p1:CreatedBy>sample string 8</d3p1:CreatedBy>
          <d3p1:CreatedByUserId>9</d3p1:CreatedByUserId>
          <d3p1:CreatedDate>2026-07-21T15:50:53.4971838+05:30</d3p1:CreatedDate>
          <d3p1:DisplayName>sample string 3</d3p1:DisplayName>
          <d3p1:Rate>4.1</d3p1:Rate>
          <d3p1:TaxId>1</d3p1:TaxId>
          <d3p1:TaxName>sample string 2</d3p1:TaxName>
          <d3p1:TaxStatusId>6</d3p1:TaxStatusId>
          <d3p1:TaxTypeId>5</d3p1:TaxTypeId>
        </d3p1:Tax>
        <d3p1:TaxId>3</d3p1:TaxId>
      </d3p1:PurchaseInvoiceServiceDetailTax>
    </PurchaseInvoiceServiceDetailTaxes>
    <ServiceCode>sample string 10</ServiceCode>
    <ServiceId>3</ServiceId>
    <ServiceName>sample string 11</ServiceName>
    <TaxTemplateId>1</TaxTemplateId>
    <TaxTemplateName>sample string 14</TaxTemplateName>
    <UomAbbrevation>sample string 12</UomAbbrevation>
    <UomId>5</UomId>
    <UomName>sample string 13</UomName>
  </PurchaseInvoiceServiceDetailViewModel>
</ArrayOfPurchaseInvoiceServiceDetailViewModel>