# Bookings

## Quick Reference

| Method  | Endpoint                            | Description |
| ------- | ----------------------------------- | ----------- |
| 🟢 GET  | `/bookings/event/{id}/availability` | -           |
| 🟡 POST | `/bookings/availability`            | -           |
| 🟡 POST | `/bookings/listing/availability`    | -           |
| 🟡 POST | `/bookings/request`                 | -           |
| 🟡 POST | `/bookings/{id}/update-payment`     | -           |
| 🟡 POST | `/bookings/{id}/update-food`        | -           |
| 🟡 POST | `/bookings/calculate-totals`        | -           |
| 🟡 POST | `/bookings/update`                  | -           |
| 🟡 POST | `/bookings/validate-discount-code`  | -           |
| 🟡 POST | `/bookings/{id}/token-payment`      | -           |
| 🟡 POST | `/bookings/{id}/credit-payment`     | -           |
| 🟡 POST | `/bookings/{id}/cancel`             | -           |
| 🟡 POST | `/bookings/{id}/complete`           | -           |
| 🟡 POST | `/bookings/{id}/confirm`            | -           |
| 🟡 POST | `/bookings/{id}/reject`             | -           |
| 🟡 POST | `/bookings/{id}/check-in`           | -           |
| 🟡 POST | `/bookings/{id}/check-out`          | -           |
| 🟡 POST | `/bookings/admin`                   | -           |
| 🟡 POST | `/bookings/payment`                 | -           |
| 🟡 POST | `/bookings/payment/confirmation`    | -           |
| 🟡 POST | `/bookings/{id}/send-to-friend`     | -           |

***

## Endpoints

### 🟢 GET `/bookings/event/{id}/availability`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/availability`

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/listing/availability`

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/request`

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/{id}/update-payment`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/{id}/update-food`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/calculate-totals`

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/update`

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/validate-discount-code`

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/{id}/token-payment`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/{id}/credit-payment`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/{id}/cancel`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/{id}/complete`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/{id}/confirm`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/{id}/reject`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/{id}/check-in`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/{id}/check-out`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/admin`

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/payment`

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/payment/confirmation`

#### Responses

✅ **200** - OK

***

### 🟡 POST `/bookings/{id}/send-to-friend`

#### Parameters

| Name | Type     | In   | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |
| `id` | `string` | path | ✅ Yes    | -           |

#### Responses

✅ **200** - OK

***
