PUT api/LS_Invoice

Request Information

URI Parameters

None.

Body Parameters

LeasingInvoice
NameDescriptionTypeAdditional information
Id

integer

None.

Customer

integer

None.

Date

date

None.

AMOUNT

decimal number

None.

BALANCE

decimal number

None.

PaymentDate

date

None.

SUMMARY

string

None.

DriverRemark

string

None.

UploadId

integer

None.

Items

Collection of LeasingInvoiceItem

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Customer": 2,
  "Date": "2025-04-28T18:30:28.8653051+00:00",
  "AMOUNT": 3.0,
  "BALANCE": 4.0,
  "PaymentDate": "2025-04-28T18:30:28.8809304+00:00",
  "SUMMARY": "sample string 5",
  "DriverRemark": "sample string 6",
  "UploadId": 7,
  "Items": [
    {
      "Selected": true,
      "Type": 2,
      "RecordId": 3,
      "Description": "sample string 4",
      "Amount": 5.0
    },
    {
      "Selected": true,
      "Type": 2,
      "RecordId": 3,
      "Description": "sample string 4",
      "Amount": 5.0
    }
  ]
}

application/xml, text/xml

Sample:
<LeasingInvoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MIS.Data.DTO.v2">
  <AMOUNT>3</AMOUNT>
  <BALANCE>4</BALANCE>
  <Customer>2</Customer>
  <Date>2025-04-28T18:30:28.8653051+00:00</Date>
  <DriverRemark>sample string 6</DriverRemark>
  <Id>1</Id>
  <Items>
    <LeasingInvoiceItem>
      <Amount>5</Amount>
      <Description>sample string 4</Description>
      <RecordId>3</RecordId>
      <Selected>true</Selected>
      <Type>2</Type>
    </LeasingInvoiceItem>
    <LeasingInvoiceItem>
      <Amount>5</Amount>
      <Description>sample string 4</Description>
      <RecordId>3</RecordId>
      <Selected>true</Selected>
      <Type>2</Type>
    </LeasingInvoiceItem>
  </Items>
  <PaymentDate>2025-04-28T18:30:28.8809304+00:00</PaymentDate>
  <SUMMARY>sample string 5</SUMMARY>
  <UploadId>7</UploadId>
</LeasingInvoice>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LeasingInvoice'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.