PUT api/PurchaseInvoiceServiceDetail/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

PurchaseInvoiceServiceDetail
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.

Service

Service

None.

TaxTemplate

TaxTemplate

None.

PurchaseInvoiceServiceDetailTax

Collection of PurchaseInvoiceServiceDetailTax

None.

Uom

Uom

None.

CreatedDate

date

Data type: DateTime

CreatedBy

string

None.

CreatedByUserId

integer

None.

Request 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,
  "Service": {
    "ServiceId": 1,
    "ServiceName": "sample string 2",
    "ServiceCharge": 3.1,
    "ActiveFlag": true,
    "ServiceCode": "sample string 5",
    "ServiceDescription": "sample string 6",
    "UomId": 7,
    "HsnCode": "sample string 8",
    "uom": {
      "UomId": 1,
      "UomName": "sample string 2",
      "UomAbbrevation": "sample string 3",
      "CreatedDate": "2026-07-21T15:51:03.1534581+05:30",
      "CreatedBy": "sample string 5",
      "CreatedByUserId": 6
    },
    "CreatedDate": "2026-07-21T15:51:03.1534581+05:30",
    "CreatedBy": "sample string 10",
    "CreatedByUserId": 11
  },
  "TaxTemplate": {
    "TaxTemplateId": 1,
    "TaxTemplateName": "sample string 2",
    "CreatedDate": "2026-07-21T15:51:03.1534581+05:30",
    "CreatedBy": "sample string 4",
    "CreatedByUserId": 5
  },
  "PurchaseInvoiceServiceDetailTax": [
    {
      "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:51:03.1534581+05:30",
        "CreatedBy": "sample string 8",
        "CreatedByUserId": 9
      },
      "CreatedDate": "2026-07-21T15:51:03.1534581+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:51:03.1534581+05:30",
        "CreatedBy": "sample string 8",
        "CreatedByUserId": 9
      },
      "CreatedDate": "2026-07-21T15:51:03.1534581+05:30",
      "CreatedBy": "sample string 7",
      "CreatedByUserId": 8
    }
  ],
  "Uom": {
    "UomId": 1,
    "UomName": "sample string 2",
    "UomAbbrevation": "sample string 3",
    "CreatedDate": "2026-07-21T15:51:03.1534581+05:30",
    "CreatedBy": "sample string 5",
    "CreatedByUserId": 6
  },
  "CreatedDate": "2026-07-21T15:51:03.1534581+05:30",
  "CreatedBy": "sample string 11",
  "CreatedByUserId": 12
}

application/xml, text/xml

Sample:
<PurchaseInvoiceServiceDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netsoft.Domain.Entities">
  <CreatedBy>sample string 11</CreatedBy>
  <CreatedByUserId>12</CreatedByUserId>
  <CreatedDate>2026-07-21T15:51:03.1534581+05:30</CreatedDate>
  <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>
  <PurchaseInvoiceServiceDetailTax>
    <PurchaseInvoiceServiceDetailTax>
      <CreatedBy>sample string 7</CreatedBy>
      <CreatedByUserId>8</CreatedByUserId>
      <CreatedDate>2026-07-21T15:51:03.1534581+05:30</CreatedDate>
      <Amount>5.1</Amount>
      <PurchaseInvoiceServiceDetailId>2</PurchaseInvoiceServiceDetailId>
      <PurchaseInvoiceServiceDetailTaxId>1</PurchaseInvoiceServiceDetailTaxId>
      <Rate>4.1</Rate>
      <Tax>
        <CreatedBy>sample string 8</CreatedBy>
        <CreatedByUserId>9</CreatedByUserId>
        <CreatedDate>2026-07-21T15:51:03.1534581+05:30</CreatedDate>
        <DisplayName>sample string 3</DisplayName>
        <Rate>4.1</Rate>
        <TaxId>1</TaxId>
        <TaxName>sample string 2</TaxName>
        <TaxStatusId>6</TaxStatusId>
        <TaxTypeId>5</TaxTypeId>
      </Tax>
      <TaxId>3</TaxId>
    </PurchaseInvoiceServiceDetailTax>
    <PurchaseInvoiceServiceDetailTax>
      <CreatedBy>sample string 7</CreatedBy>
      <CreatedByUserId>8</CreatedByUserId>
      <CreatedDate>2026-07-21T15:51:03.1534581+05:30</CreatedDate>
      <Amount>5.1</Amount>
      <PurchaseInvoiceServiceDetailId>2</PurchaseInvoiceServiceDetailId>
      <PurchaseInvoiceServiceDetailTaxId>1</PurchaseInvoiceServiceDetailTaxId>
      <Rate>4.1</Rate>
      <Tax>
        <CreatedBy>sample string 8</CreatedBy>
        <CreatedByUserId>9</CreatedByUserId>
        <CreatedDate>2026-07-21T15:51:03.1534581+05:30</CreatedDate>
        <DisplayName>sample string 3</DisplayName>
        <Rate>4.1</Rate>
        <TaxId>1</TaxId>
        <TaxName>sample string 2</TaxName>
        <TaxStatusId>6</TaxStatusId>
        <TaxTypeId>5</TaxTypeId>
      </Tax>
      <TaxId>3</TaxId>
    </PurchaseInvoiceServiceDetailTax>
  </PurchaseInvoiceServiceDetailTax>
  <Service>
    <CreatedBy>sample string 10</CreatedBy>
    <CreatedByUserId>11</CreatedByUserId>
    <CreatedDate>2026-07-21T15:51:03.1534581+05:30</CreatedDate>
    <ActiveFlag>true</ActiveFlag>
    <HsnCode>sample string 8</HsnCode>
    <ServiceCharge>3.1</ServiceCharge>
    <ServiceCode>sample string 5</ServiceCode>
    <ServiceDescription>sample string 6</ServiceDescription>
    <ServiceId>1</ServiceId>
    <ServiceName>sample string 2</ServiceName>
    <UomId>7</UomId>
    <uom>
      <CreatedBy>sample string 5</CreatedBy>
      <CreatedByUserId>6</CreatedByUserId>
      <CreatedDate>2026-07-21T15:51:03.1534581+05:30</CreatedDate>
      <UomAbbrevation>sample string 3</UomAbbrevation>
      <UomId>1</UomId>
      <UomName>sample string 2</UomName>
    </uom>
  </Service>
  <ServiceId>3</ServiceId>
  <TaxTemplate>
    <CreatedBy>sample string 4</CreatedBy>
    <CreatedByUserId>5</CreatedByUserId>
    <CreatedDate>2026-07-21T15:51:03.1534581+05:30</CreatedDate>
    <TaxTemplateId>1</TaxTemplateId>
    <TaxTemplateName>sample string 2</TaxTemplateName>
  </TaxTemplate>
  <TaxTemplateId>1</TaxTemplateId>
  <Uom>
    <CreatedBy>sample string 5</CreatedBy>
    <CreatedByUserId>6</CreatedByUserId>
    <CreatedDate>2026-07-21T15:51:03.1534581+05:30</CreatedDate>
    <UomAbbrevation>sample string 3</UomAbbrevation>
    <UomId>1</UomId>
    <UomName>sample string 2</UomName>
  </Uom>
  <UomId>5</UomId>
</PurchaseInvoiceServiceDetail>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.