Α ReservationContract is used to describe the time-span of an active contract, which assigned to a reservation.
| Resource | Description |
|---|---|
| GET /v1/ReservationContract/{reservationId} | Get an associated reservation contract with a reservation with reservationId. |
| POST /v1/ReservationContract | Adding a reservation contract to a reservation. |
| PUT /v1/ReservationContract | Update a reservation contract for a reservation. |
| DELETE /v1/ReservationContract/{id} | Removing a reservation contract from a reservation. |
Get an associated reservation contract with a reservation with reservationId.
Request parameters
| Name | Value |
|---|---|
| reservationId | The id of the reservation |
Response
The result is a reservation contract object.
Example Response
{
"id": 3,
"contractStart": "2020-02-01T00:00:00",
"contractEnd": "2020-05-31T00:00:00",
"reservationId": 12731
}
Adding a reservation contract to a reservation.
Request parameters
| Name | Value |
|---|---|
| ContractStart | The start date of the contract |
| ContractEnd | The end date of the contract |
| ReservationId | The ID of an associated reservation |
Response
The ID of a new reservation contract.
Example Request
{
"ContractStart": "2020-02-01",
"ContractEnd": "2020-05-31",
"ReservationId": 12731
}
Update a reservation contract for a reservation.
Request parameters
| Name | Value |
|---|---|
| Id | The ID of a reservation contract |
| ContractStart | The start date of the contract |
| ContractEnd | The end date of the contract |
| ReservationId | The ID of an associated reservation |
Response
The ID of a new reservation contract.
Example Request
{
"Id": 4,
"ContractStart": "2020-02-01",
"ContractEnd": "2020-05-31",
"ReservationId": 12731
}
Delete a reservation contract from a reservation.
| Name | Value |
|---|---|
| Id | The ID of a reservation contract |