POST api/Invoices

Adiciona uma nova fatura.

Request Information

URI Parameters

None.

Body Parameters

Objeto fatura a adicionar.

Invoice
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

BookingId

integer

None.

IssueDate

date

None.

StayTotal

decimal number

None.

ExtrasTotal

decimal number

None.

PaymentMethod

integer

None.

Total

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "InvoiceId": 1,
  "BookingId": 1,
  "IssueDate": "2025-06-16T05:21:20.5210885-05:00",
  "StayTotal": 4.0,
  "ExtrasTotal": 5.0,
  "PaymentMethod": 6,
  "Total": 7.0
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Mensagem de sucesso ou erro.

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.