POST api/reservations/create

Request Information

URI Parameters

None.

Body Parameters

Reservation
NameDescriptionTypeAdditional information
ReservationId

integer

None.

PayerId

integer

None.

ServiceId

integer

None.

ServiceDate

date

None.

PersonsCount

integer

None.

Nationality

string

None.

TotalAmount

decimal number

None.

IdTransaction

integer

None.

ExtraData

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ReservationId": 1,
  "PayerId": 2,
  "ServiceId": 3,
  "ServiceDate": "2025-12-05T23:19:43.0874291-05:00",
  "PersonsCount": 5,
  "Nationality": "sample string 6",
  "TotalAmount": 7.0,
  "IdTransaction": 8,
  "ExtraData": "sample string 9"
}

application/xml, text/xml

Sample:
<Reservation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiArvi.Models">
  <ExtraData>sample string 9</ExtraData>
  <IdTransaction>8</IdTransaction>
  <Nationality>sample string 6</Nationality>
  <PayerId>2</PayerId>
  <PersonsCount>5</PersonsCount>
  <ReservationId>1</ReservationId>
  <ServiceDate>2025-12-05T23:19:43.0874291-05:00</ServiceDate>
  <ServiceId>3</ServiceId>
  <TotalAmount>7</TotalAmount>
</Reservation>

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.