Skip to main content
GET
/
bookings
/
get-bookings-by-user-id-and-type
Get Bookings by User ID and Type
curl --request GET \
  --url http://localhost:3000/api/bookings/get-bookings-by-user-id-and-type
{
  "bookings": [
    {
      "id": "<string>",
      "status": "<string>",
      "dateTimestamp": 123,
      "startTime": 123,
      "endTime": 123,
      "totalFee": "<string>",
      "depositFee": "<string>",
      "location": "<string>"
    }
  ],
  "totalCount": 123
}

Query Parameters

userId
string
required

The ID of the user

type
enum<string>
required

The type of user (artist or customer)

Available options:
artist,
customer

Response

200 - application/json

Bookings retrieved successfully

bookings
object[]
totalCount
number