Search reservations

This endpoint allows for the efficient searching and filtering of reservation records based on specified query parameters such as email, first name, last name and other fields. It is designed to support operations that require accessing detailed reservation information quickly and effectively.

Endpoint and Usage:

  • Endpoint: GET /api/reservations/search/

  • Base URL: https://api.vomevolunteer.com

Query Parameters:

Core Filters

id (uuid): Filters reservations by the ID.

arrival_time: (string): Filters reservations by arrival_time.

depature_time: (string): Filters reservations by the departure_time.

status: (string): Filters reservations by the status.

Reservation Statuses

  • 0: Shift request pending

  • 1: Reserved

  • 2: Shift request declined

  • 3: Attendance confirmed

  • 4: Absent

  • 5: Checked-in

  • 6: Hours logged

  • 7: Hour claim pending

Sample Requests

User Filters:

user.email (string): Filters reservations by the email associated with the user who made the reservation.

user.first_name (string): Filters reservations by the first name of the user.

user.last_name (string): Filters reservations by the last name of the user.

Sample Requests

Shift Filters:

shift.id (uuid): Filters reservations by the ID of the associated shift.

shift.shift_title (string): Filters reservations by the name of the associated shift.

Example Requests:

Opportunity Filters

Search by opportunity filters:

opportunity.id (uuid): Filters reservations by the ID of the associated opportunity.

opportunity.title (string): Filters reservations by the Title of the associated opportunity.

Authorization:

Requests to this endpoint require an API-KEY in the header for authentication.

Response Structure:

The response from this endpoint returns a list of reservations that match the query parameters, including detailed information about each reservation's associated shift and enrollment info.

Example Response Object:

To format the JSON response structure without altering any content, organize it with clear headings and subheadings for each part. Here's a suggested format:

Example Response Structure

Summary Information

For a complete description of each field in this response object, you can visit: Reservations

Last updated