PUT api/Invoices/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Invoice
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

ReservationId

integer

None.

IssueDate

date

None.

InvoiceStatus

string

None.

Payments

Collection of Payment

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceId": 1,
  "ReservationId": 1,
  "IssueDate": "2026-08-24T21:38:54.7047538-05:00",
  "InvoiceStatus": "sample string 4",
  "Payments": [
    {
      "PaymentId": 1,
      "PaymentType": "sample string 2",
      "AmountPaid": 3.0,
      "PaymentDate": "2026-08-24T21:38:54.7047538-05:00",
      "InvoiceId": 1
    }
  ]
}

application/xml, text/xml

Sample:
<Invoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HotelManagement.API">
  <InvoiceId>1</InvoiceId>
  <ReservationId>1</ReservationId>
  <IssueDate>2026-08-24T21:38:54.7047538-05:00</IssueDate>
  <InvoiceStatus>sample string 4</InvoiceStatus>
  <Payments>
    <Payment>
      <PaymentId>1</PaymentId>
      <PaymentType>sample string 2</PaymentType>
      <AmountPaid>3</AmountPaid>
      <PaymentDate>2026-08-24T21:38:54.7047538-05:00</PaymentDate>
      <InvoiceId>1</InvoiceId>
    </Payment>
  </Payments>
</Invoice>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.