POST api/invoice/post-addCharges

Request Information

URI Parameters

None.

Body Parameters

AddChargesDTO
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

PreferedChargeType

string

None.

AdditionalCharge

decimal number

None.

TotalInvoiceAmount

decimal number

None.

DeductCharges

decimal number

None.

ChargesPercentageOrAmount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceId": 1,
  "PreferedChargeType": "sample string 2",
  "AdditionalCharge": 3.0,
  "TotalInvoiceAmount": 4.0,
  "DeductCharges": 5.0,
  "ChargesPercentageOrAmount": 6.0
}

application/xml, text/xml

Sample:
<AddChargesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.Invoices">
  <AdditionalCharge>3</AdditionalCharge>
  <ChargesPercentageOrAmount>6</ChargesPercentageOrAmount>
  <DeductCharges>5</DeductCharges>
  <InvoiceId>1</InvoiceId>
  <PreferedChargeType>sample string 2</PreferedChargeType>
  <TotalInvoiceAmount>4</TotalInvoiceAmount>
</AddChargesDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>