{
  "openapi": "3.0.3",
  "info": {
    "title": "Eveenty API",
    "description": "Public API specification for Eveenty festivals, booths, tickets, orders, and user resources.",
    "version": "1.1.0"
  },
  "servers": [
    {
      "url": "https://api.eveenty.com/api/v1",
      "description": "Production"
    }
  ],
  "tags": [
    { "name": "Users" },
    { "name": "Festivals" },
    { "name": "Booths" },
    { "name": "Tickets" },
    { "name": "Orders" },
    { "name": "Sales" },
    { "name": "Registration" },
    { "name": "Sponsors" }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "cookieAuth": {
        "type": "apiKey",
        "in": "cookie",
        "name": "token"
      }
    },
    "schemas": {
      "ApiEnvelope": {
        "type": "object",
        "properties": {
          "data": { "type": "object", "additionalProperties": true },
          "status": { "type": "string", "example": "success" }
        },
        "required": ["data"]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": { "type": "string", "example": "Request failed" },
          "message": { "type": "string" }
        }
      },
      "Festival": {
        "type": "object",
        "properties": {
          "festivalID": { "type": "string" },
          "name": { "type": "string" },
          "description": { "type": "string" },
          "slug": { "type": "string" },

          "startTime": {
            "type": "string",
            "format": "date-time"
          },
          "endTime": {
            "type": "string",
            "format": "date-time"
          },

          "timeZone": { "type": "string" },

          "address": { "type": "string" },
          "placeName": { "type": "string" },

          "latitude": { "type": "number" },
          "longitude": { "type": "number" },

          "festivalImage": { "type": "string" },
          "logoImage": { "type": "string" },

          "currency": { "type": "string" },

          "tickets": { "type": "boolean" },
          "activities": { "type": "boolean" },
          "donations": { "type": "boolean" },

          "isOnlineEvent": { "type": "boolean" },
          "published": { "type": "boolean" },
          "isTop": { "type": "boolean" },

          "createdAt": {
            "type": "string",
            "format": "date-time"
          },

          "primaryOrganizer": {
            "type": "object",
            "properties": {
              "userID": { "type": "string" },
              "firstName": { "type": "string" },
              "lastName": { "type": "string" },
              "email": { "type": "string" },
              "businessName": { "type": "string" }
            }
          }
        }
      },
      "FestivalDetailsResponse": {
        "type": "object",
        "properties": {
          "booths": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": { "type": "string" },
                "price": { "type": "number" },
                "booth_id": { "type": "string" },
                "is_available": { "type": "boolean" },
                "category_name": { "type": "string" },
                "primary_image": { "type": ["string", "null"] },
                "category_image": { "type": ["string", "null"] },
                "booth_category_id": { "type": "string" }
              }
            }
          },

          "schedules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "schedule_id": { "type": "string" },
                "start_time": { "type": "string", "format": "date-time" },
                "end_time": { "type": "string", "format": "date-time" },
                "festival_schedule_events": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "event_id": { "type": "string" },
                      "event_title": { "type": "string" },
                      "event_description": { "type": "string" },
                      "event_image": { "type": ["string", "null"] },
                      "start_time": { "type": "string", "format": "date-time" },
                      "end_time": { "type": "string", "format": "date-time" }
                    }
                  }
                }
              }
            }
          },

          "ticket_types": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ticket_type_id": { "type": "string" },
                "name": { "type": "string" },
                "price": { "type": "number" },
                "description": { "type": "string" },
                "is_available": { "type": "boolean" }
              }
            }
          },

          "festival_base": {
            "type": "object",
            "properties": {
              "festival_id": { "type": "string" },
              "name": { "type": "string" },
              "slug": { "type": "string" },
              "description": { "type": "string" },
              "start_time": { "type": "string", "format": "date-time" },
              "end_time": { "type": "string", "format": "date-time" },
              "currency": { "type": "string" },
              "address": { "type": "string" }
            }
          }
        }
      },
      "FestivalListResponse": {
        "type": "object",
        "properties": {
          "festivals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Festival"
            }
          },
          "count": { "type": "integer", "example": 124 }
        }
      },
      "BoothListResponse": {
        "type": "object",
        "properties": {
          "booths": {
            "type": "array",
            "items": { "type": "object", "additionalProperties": true }
          },
          "count": { "type": "integer", "example": 18 }
        }
      },
      "TicketTotalRequest": {
        "type": "object",
        "properties": {
          "tickets": {
            "type": "array",
            "items": { "type": "object", "additionalProperties": true }
          },
          "promoCode": { "type": "string", "example": "SPRING25" }
        },
        "required": ["tickets"]
      },
      "SponsorPackagesResponse": {
        "type": "object",
        "properties": {
          "festivalInfo": {
            "$ref": "#/components/schemas/FestivalInfo"
          },
          "sponsorPackages": {
            "$ref": "#/components/schemas/SponsorPackages"
          }
        }
      },
      "FestivalInfo": {
        "type": "object",
        "properties": {
          "currency": { "type": "string", "example": "usd" },
          "logoImage": { "type": "string" },
          "name": { "type": "string" }
        }
      },
      "SponsorPackages": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "example": 10
          },
          "sponsorPackages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SponsorPackage"
            }
          }
        }
      },
      "SponsorPackage": {
        "type": "object",
        "properties": {
          "packageID": { "type": "string" },
          "festivalID": { "type": "string" },
          "packageName": { "type": "string" },
          "PackageType": { "type": ["string", "null"] },
          "packagDescription": { "type": ["string", "null"] },
          "packagePrice": { "type": "number" },
          "createdAt": { "type": ["string", "null"], "format": "date-time" },
          "deletedAt": { "type": ["string", "null"], "format": "date-time" },
          "note": { "type": ["string", "null"] },
          "refundPolicy": { "type": ["string", "null"] },
          "termsAndConditions": { "type": ["string", "null"] },
          "availableToBeSold": { "type": "boolean" },
          "quantity": { "type": "integer" },
          "NumberOfsoldPackages": { "type": "integer" },
          "NumberOfRefundedPackages": { "type": "integer" },
          "NumberOfPendingPackages": { "type": "integer" },
          "packageImage": { "type": ["string", "null"] },
          "sort": { "type": "integer" },
          "installmentMethodID": { "type": ["string", "null"] }
        }
      }
    },
    "responses": {
      "SuccessEnvelope": {
        "description": "Successful response",
        "content": {
          "application/json": {
            "schema": { "$ref": "#/components/schemas/ApiEnvelope" }
          }
        }
      },
      "ErrorDefault": {
        "description": "Error response",
        "content": {
          "application/json": {
            "schema": { "$ref": "#/components/schemas/ErrorResponse" }
          }
        }
      }
    },
    "parameters": {
      "Limit": {
        "name": "limit",
        "in": "query",
        "schema": { "type": "integer", "minimum": 1, "default": 10 }
      },
      "Offset": {
        "name": "offset",
        "in": "query",
        "schema": { "type": "integer", "minimum": 0, "default": 0 }
      }
    }
  },
  "paths": {
    "/users/{id}/info": {
      "get": {
        "tags": ["Users"],
        "operationId": "getUserInfo",
        "summary": "Get user info by ID",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": { "type": "string" }
          }
        ],
        "security": [{ "bearerAuth": [] }, { "cookieAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals": {
      "get": {
        "tags": ["Festivals"],
        "operationId": "listFestivals",
        "summary": "List festivals",
        "description": "Returns paginated festivals and supports filtering by name and status fields.",
        "parameters": [
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" },
          { "name": "name", "in": "query", "schema": { "type": "string" } },
          { "name": "published", "in": "query", "schema": { "type": "boolean" } },
          { "name": "active", "in": "query", "schema": { "type": "boolean" } },
          { "name": "isTop", "in": "query", "schema": { "type": "boolean" } },
          { "name": "categoryID", "in": "query", "schema": { "type": "string" } },
          { "name": "startTime", "in": "query", "schema": { "type": "string", "format": "date-time" } },
          { "name": "endTime", "in": "query", "schema": { "type": "string", "format": "date-time" } }
        ],
        "responses": {
          "200": {
            "description": "Festival list",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/FestivalListResponse" }
              }
            }
          },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/categories": {
      "get": {
        "tags": ["Festivals"],
        "operationId": "listFestivalCategories",
        "summary": "List festival categories",
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{slug}/details": {
      "get": {
        "tags": ["Festivals"],
        "operationId": "getFestivalDetailsBySlug",
        "summary": "Get festival details by slug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "description": "Festival full details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FestivalDetailsResponse"
                }
              }
            }
          },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}": {
      "get": {
        "tags": ["Festivals"],
        "operationId": "getFestivalById",
        "summary": "Get festival by ID",
        "parameters": [
          {
            "name": "festivalId",
            "in": "path",
            "required": true,
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/activities": {
      "get": {
        "tags": ["Festivals"],
        "operationId": "listFestivalKidsActivities",
        "summary": "List kids activities for a festival",
        "parameters": [
          {
            "name": "festivalId",
            "in": "path",
            "required": true,
            "schema": { "type": "string" }
          },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/details/activities/{activityId}": {
      "get": {
        "tags": ["Festivals"],
        "operationId": "getFestivalKidsActivityDetails",
        "summary": "Get kids activity details in a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "activityId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/details/donations": {
      "get": {
        "tags": ["Festivals"],
        "operationId": "getFestivalDonationsDetails",
        "summary": "Get donation details for a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/booths": {
      "get": {
        "tags": ["Booths"],
        "operationId": "listFestivalBooths",
        "summary": "List booths in a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" }
        ],
        "responses": {
          "200": {
            "description": "Booth list",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/BoothListResponse" }
              }
            }
          },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/booths/categories": {
      "get": {
        "tags": ["Booths"],
        "operationId": "listFestivalBoothCategories",
        "summary": "List booth categories in a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "showInList", "in": "query", "schema": { "type": "boolean" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/details/booths": {
      "get": {
        "tags": ["Booths"],
        "operationId": "getFestivalBoothDetails",
        "summary": "Get booth-oriented festival details",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/details/booths/{boothId}": {
      "get": {
        "tags": ["Booths"],
        "operationId": "getFestivalBoothById",
        "summary": "Get specific booth details in a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "boothId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/skip_the_line/booths": {
      "get": {
        "tags": ["Booths"],
        "operationId": "listSkipTheLineBooths",
        "summary": "List skip-the-line booths",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "name": "categoryID", "in": "query", "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/{boothId}": {
      "get": {
        "tags": ["Booths"],
        "operationId": "getBoothById",
        "summary": "Get booth by ID",
        "parameters": [
          { "name": "boothId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/{boothId}/products": {
      "get": {
        "tags": ["Booths"],
        "operationId": "listBoothProducts",
        "summary": "List products in a booth",
        "parameters": [
          { "name": "boothId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/{boothId}/products/stats": {
      "get": {
        "tags": ["Booths"],
        "operationId": "getBoothProductStats",
        "summary": "Get booth product stats",
        "parameters": [
          { "name": "boothId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" },
          { "name": "search", "in": "query", "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/{boothId}/sales": {
      "get": {
        "tags": ["Sales"],
        "operationId": "getBoothSales",
        "summary": "Get booth sales",
        "parameters": [
          { "name": "boothId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" },
          { "name": "search", "in": "query", "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/{boothId}/sale/calculate": {
      "get": {
        "tags": ["Sales"],
        "operationId": "calculateBoothSale",
        "summary": "Calculate booth sale cart total",
        "parameters": [
          { "name": "boothId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/sales/{saleId}/redeem": {
      "post": {
        "tags": ["Sales"],
        "operationId": "redeemBoothSale",
        "summary": "Redeem vendor sale",
        "parameters": [
          { "name": "saleId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/sales/{saleId}/completed": {
      "post": {
        "tags": ["Sales"],
        "operationId": "completeBoothSale",
        "summary": "Mark vendor sale as completed",
        "parameters": [
          { "name": "saleId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/sales/phone_numbers/verifications": {
      "post": {
        "tags": ["Sales"],
        "operationId": "createSalePhoneVerification",
        "summary": "Create phone verification for sale pickup",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "phoneNumber": { "type": "string", "example": "+201001234567" }
                },
                "required": ["phoneNumber"]
              }
            }
          }
        },
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/sales/phone_numbers/verifications/{verificationId}/verify": {
      "post": {
        "tags": ["Sales"],
        "operationId": "verifySalePhoneCode",
        "summary": "Verify phone code for vendor sale",
        "parameters": [
          { "name": "verificationId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "verificationCode": { "type": "string", "example": "123456" }
                },
                "required": ["verificationCode"]
              }
            }
          }
        },
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{eventId}/details/tickets": {
      "get": {
        "tags": ["Tickets"],
        "operationId": "getFestivalTicketPageDetails",
        "summary": "Get ticket page details",
        "parameters": [
          { "name": "eventId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{eventId}/tickets/types": {
      "get": {
        "tags": ["Tickets"],
        "operationId": "listFestivalTicketTypes",
        "summary": "List festival ticket types",
        "parameters": [
          { "name": "eventId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" },
          { "name": "ticketCategoryID", "in": "query", "schema": { "type": "string" } },
          { "name": "name", "in": "query", "schema": { "type": "string" } },
          { "name": "availability", "in": "query", "schema": { "type": "string", "enum": ["all", "available_now", "sold"] } },
          { "name": "price_min", "in": "query", "schema": { "type": "number" } },
          { "name": "price_max", "in": "query", "schema": { "type": "number" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{eventId}/tickets/types/all": {
      "get": {
        "tags": ["Tickets"],
        "operationId": "listAllFestivalTicketTypes",
        "summary": "List all ticket types for festival",
        "parameters": [
          { "name": "eventId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/ticket/total": {
      "post": {
        "tags": ["Tickets"],
        "operationId": "calculateFestivalTicketTotal",
        "summary": "Calculate ticket total",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/TicketTotalRequest" }
            }
          }
        },
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/vendor/{userId}/sales": {
      "get": {
        "tags": ["Orders"],
        "operationId": "getVendorSalesHistory",
        "summary": "Get vendor order/sales history",
        "parameters": [
          { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/sale/{orderId}": {
      "get": {
        "tags": ["Orders"],
        "operationId": "getSaleOrderById",
        "summary": "Get sale order by ID",
        "parameters": [
          { "name": "orderId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/{boothId}/orders": {
      "get": {
        "tags": ["Orders"],
        "operationId": "listBoothOrders",
        "summary": "List booth orders",
        "parameters": [
          { "name": "boothId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" },
          { "name": "order_status", "in": "query", "schema": { "type": "string", "enum": ["in_preparation", "ready_for_pickup", "done"] } },
          { "name": "search", "in": "query", "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/users/{userId}/stats": {
      "get": {
        "tags": ["Booths"],
        "operationId": "getUserBoothStats",
        "summary": "Get vendor booth stats",
        "parameters": [
          { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" },
          { "name": "boothName", "in": "query", "schema": { "type": "string" } },
          { "name": "status", "in": "query", "schema": { "type": "string", "enum": ["coming", "in progress", "done"] } },
          { "name": "excludePastEvents", "in": "query", "schema": { "type": "boolean" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/booths/users/{userId}/stats/kpis": {
      "get": {
        "tags": ["Booths"],
        "operationId": "getUserBoothStatsKpis",
        "summary": "Get vendor booth KPI stats",
        "parameters": [
          { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/products/{productId}": {
      "get": {
        "tags": ["Booths"],
        "operationId": "getProductById",
        "summary": "Get product by ID",
        "parameters": [
          { "name": "productId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      },
      "put": {
        "tags": ["Booths"],
        "operationId": "updateProductById",
        "summary": "Update product by ID",
        "parameters": [
          { "name": "productId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "type": "object", "additionalProperties": true }
            }
          }
        },
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      },
      "delete": {
        "tags": ["Booths"],
        "operationId": "deleteProductById",
        "summary": "Delete product by ID",
        "parameters": [
          { "name": "productId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/product/{productId}/image": {
      "post": {
        "tags": ["Booths"],
        "operationId": "uploadProductImage",
        "summary": "Upload product image",
        "parameters": [
          { "name": "productId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "productImage": { "type": "string", "format": "binary" }
                },
                "required": ["productImage"]
              }
            }
          }
        },
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/sponsors/packages": {
      "get": {
        "tags": ["Sponsors"],
        "operationId": "getFestivalSponsorPackages",
        "summary": "Get sponsor packages for a festival",
        "parameters": [
          {
            "name": "festivalId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Sponsor packages with festival info",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SponsorPackagesResponse"
                }
              }
            }
          }
        },
        "example": {
          "festivalInfo": {
            "currency": "usd",
            "logoImage": "image-id",
            "name": "Music Festival"
          },
          "sponsorPackages": {
            "count": 2,
            "sponsorPackages": [
              {
                "packageID": "123",
                "packageName": "Gold Sponsor",
                "packagePrice": 5000,
                "availableToBeSold": true
              }
            ]
          }
        }
      }
    },
    "/festivals/{festivalId}/tickets": {
      "get": {
        "tags": ["Tickets"],
        "operationId": "listFestivalTickets",
        "summary": "List tickets for a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/tickets/categories": {
      "get": {
        "tags": ["Tickets"],
        "operationId": "listFestivalTicketCategories",
        "summary": "List ticket categories for a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/services": {
      "get": {
        "tags": ["Festivals"],
        "operationId": "listFestivalServices",
        "summary": "List services for a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/services/categories": {
      "get": {
        "tags": ["Festivals"],
        "operationId": "listFestivalServiceCategories",
        "summary": "List service categories for a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/vendors": {
      "get": {
        "tags": ["Booths"],
        "operationId": "listFestivalVendors",
        "summary": "List vendors for a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/rooms/bookings/info": {
      "get": {
        "tags": ["Festivals"],
        "operationId": "getFestivalRoomBookingsInfo",
        "summary": "Get room bookings info for a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } },
          { "$ref": "#/components/parameters/Limit" },
          { "$ref": "#/components/parameters/Offset" }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/{festivalId}/external_payment_methods": {
      "get": {
        "tags": ["Festivals"],
        "operationId": "getFestivalExternalPaymentMethods",
        "summary": "Get external payment methods for a festival",
        "parameters": [
          { "name": "festivalId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/registration/volunteers/{userId}": {
      "get": {
        "tags": ["Registration"],
        "operationId": "getVolunteerRegistrationByUser",
        "summary": "Get volunteer registration info",
        "parameters": [
          { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/registration/artist/{userId}": {
      "get": {
        "tags": ["Registration"],
        "operationId": "getArtistRegistrationByUser",
        "summary": "Get artist registration info",
        "parameters": [
          { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    },
    "/festivals/registration/speaker/{userId}": {
      "get": {
        "tags": ["Registration"],
        "operationId": "getSpeakerRegistrationByUser",
        "summary": "Get spreaker registration info",
        "parameters": [
          { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } }
        ],
        "security": [{ "bearerAuth": [] }],
        "responses": {
          "200": { "$ref": "#/components/responses/SuccessEnvelope" },
          "default": { "$ref": "#/components/responses/ErrorDefault" }
        }
      }
    }
  }
}