{
 "openapi": "3.1.0",
 "info": {
  "title": "Brigly API",
  "version": "1.1.0",
  "summary": "Restaurant websites, menus, reservations, operations, signed webhooks, and Brigly Vendor wholesale supplier APIs.",
  "description": "Everything a restaurant and a food supplier run in Brigly, accessible over clean JSON REST endpoints and outbound HMAC webhooks. Every response includes X-Request-Id and rate-limit headers (X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset). Conditional reads support ETag / If-None-Match (304). Critical POST writes support Idempotency-Key.",
  "contact": {
   "name": "Brigly",
   "url": "https://brigly.app/docs.html",
   "email": "support@brigly.app"
  }
 },
 "servers": [
  {
   "url": "https://impartial-toad-141.convex.site",
   "description": "Production"
  }
 ],
 "tags": [
  {
   "name": "Restaurant"
  },
  {
   "name": "Menu"
  },
  {
   "name": "Reservations"
  },
  {
   "name": "Waitlist"
  },
  {
   "name": "Specials"
  },
  {
   "name": "Requests"
  },
  {
   "name": "Operations"
  },
  {
   "name": "Feedback"
  },
  {
   "name": "Jobs"
  },
  {
   "name": "Webhooks"
  },
  {
   "name": "Floor plan"
  },
  {
   "name": "Vendor"
  },
  {
   "name": "Discovery"
  }
 ],
 "components": {
  "schemas": {
   "Error": {
    "type": "object",
    "required": [
     "error",
     "code",
     "requestId"
    ],
    "properties": {
     "error": {
      "type": "string",
      "description": "A plain sentence for the person who made the call.",
      "example": "No table is free for 4 at 19:30. Try another time or a smaller party."
     },
     "code": {
      "type": "string",
      "enum": [
       "invalid_key",
       "revoked_key",
       "api_disabled",
       "insufficient_scope",
       "rate_limited",
       "idempotency_conflict",
       "catalog_private",
       "news_private",
       "forbidden",
       "not_found",
       "conflict",
       "validation_error",
       "internal_error"
      ],
      "example": "validation_error"
     },
     "requestId": {
      "type": "string",
      "example": "req_a1b2c3d4e5f6"
     }
    }
   },
   "Restaurant": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "currency": {
      "type": "string",
      "example": "USD"
     },
     "country": {
      "type": "string",
      "example": "US"
     },
     "timezone": {
      "type": "string",
      "example": "America/New_York"
     },
     "locale": {
      "type": "string",
      "example": "en-US"
     }
    }
   },
   "RestaurantProfile": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "currency": {
      "type": "string",
      "example": "USD"
     },
     "country": {
      "type": "string",
      "example": "US"
     },
     "timezone": {
      "type": "string",
      "example": "America/New_York"
     },
     "locale": {
      "type": "string",
      "example": "en-US"
     },
     "website": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     },
     "email": {
      "type": "string"
     },
     "address": {
      "type": "object",
      "properties": {
       "street": {
        "type": "string"
       },
       "city": {
        "type": "string"
       },
       "region": {
        "type": "string"
       },
       "postal": {
        "type": "string"
       },
       "country": {
        "type": "string"
       }
      }
     },
     "services": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "start": {
         "type": "string"
        },
        "end": {
         "type": "string"
        },
        "lastSeating": {
         "type": "string"
        },
        "active": {
         "type": "boolean"
        }
       }
      }
     },
     "turnMinutes": {
      "type": "integer"
     },
     "stepMinutes": {
      "type": "integer"
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "ModifierOption": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "example": "Medium rare"
     },
     "price": {
      "type": "number",
      "example": 0
     }
    }
   },
   "ModifierGroup": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "example": "temp"
     },
     "name": {
      "type": "string",
      "example": "Cooking temperature"
     },
     "required": {
      "type": "boolean"
     },
     "multi": {
      "type": "boolean"
     },
     "options": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ModifierOption"
      }
     }
    }
   },
   "Availability": {
    "type": "object",
    "properties": {
     "status": {
      "type": "string",
      "enum": [
       "ok",
       "low",
       "limited",
       "ingredient-reported",
       "86",
       "ingredient",
       "service",
       "soldout",
       "archived"
      ],
      "description": "Why a dish can or cannot be ordered. ok, low, limited and ingredient-reported are orderable."
     },
     "label": {
      "type": "string",
      "example": "86’d"
     },
     "reason": {
      "type": "string"
     }
    }
   },
   "MenuItemRef": {
    "type": "object",
    "description": "A dish as another dish points at it.",
    "properties": {
     "id": {
      "type": "string",
      "example": "mi-house-white-glass"
     },
     "name": {
      "type": "string",
      "example": "House white · glass"
     },
     "category": {
      "type": "string",
      "example": "wine"
     },
     "description": {
      "type": "string"
     },
     "price": {
      "type": "number",
      "example": 11,
      "description": "The menu price."
     },
     "available": {
      "type": "boolean",
      "description": "False while it is 86’d or sold out."
     }
    }
   },
   "MenuItem": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "example": "mi-pan-roasted-halibut"
     },
     "name": {
      "type": "string"
     },
     "category": {
      "type": "string"
     },
     "course": {
      "type": "string",
      "enum": [
       "Drinks",
       "Starters",
       "Mains",
       "Sides",
       "Desserts"
      ]
     },
     "station": {
      "type": "string"
     },
     "price": {
      "type": "number",
      "example": 38,
      "description": "Eligible selling price for the requested service, or the base price when no offer applies."
     },
     "basePrice": {
      "type": "number",
      "description": "Normal menu price, included when an offer applies."
     },
     "offerId": {
      "type": "string",
      "description": "The promotion that supplied the lowest eligible item price."
     },
     "description": {
      "type": "string"
     },
     "image": {
      "type": [
       "string",
       "null"
      ],
      "format": "uri",
      "description": "Public URL of the dish photo (uploaded, AI-generated, or bundled demo image), else null."
     },
     "icon": {
      "type": "string",
      "description": "Suggested Brigly icon name for the dish category."
     },
     "dietary": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "example": [
       "Gluten-free"
      ]
     },
     "allergens": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "example": [
       "Fish",
       "Milk"
      ]
     },
     "mayContain": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "allergensRecorded": {
      "type": "boolean",
      "description": "True when staff have explicitly recorded or verified allergen flags for this dish."
     },
     "tags": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "available": {
      "type": "boolean"
     },
     "availability": {
      "$ref": "#/components/schemas/Availability"
     },
     "remaining": {
      "type": "integer",
      "description": "Portions left when the kitchen set a count."
     },
     "substitute": {
      "type": "object",
      "properties": {
       "itemId": {
        "type": "string"
       },
       "name": {
        "type": "string"
       }
      }
     },
     "pairings": {
      "type": "array",
      "description": "What the restaurant pairs the dish with (a wine, a cocktail, a side), the best match first. Chosen on the dish in Brigly. A pairing that is not served at this service is left out; one that is 86’d stays, with available false.",
      "items": {
       "$ref": "#/components/schemas/MenuItemRef"
      }
     },
     "alternatives": {
      "type": "array",
      "description": "What to have instead when the dish is off: the dish the kitchen named on the 86 first, then the restaurant’s own picks for it, else dishes of its category. Only dishes that can be ordered right now, up to four.",
      "items": {
       "$ref": "#/components/schemas/MenuItemRef"
      }
     },
     "modifiers": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Ids of the modifier groups listed at the top level."
     },
     "updatedAt": {
      "type": "string"
     }
    }
   },
   "MenuCategory": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "course": {
      "type": "string"
     },
     "station": {
      "type": "string"
     },
     "services": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Empty means every service."
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/MenuItem"
      }
     }
    }
   },
   "Menu": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "service": {
      "type": "string",
      "example": "Dinner"
     },
     "categories": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/MenuCategory"
      }
     },
     "modifiers": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ModifierGroup"
      }
     },
     "allergenCodes": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "updatedAt": {
      "type": "integer",
      "description": "Milliseconds since the epoch of the last dish change."
     }
    }
   },
   "MenuItems": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "date": {
      "type": "string"
     },
     "service": {
      "type": "string"
     },
     "items": {
      "type": "array",
      "items": {
       "allOf": [
        {
         "$ref": "#/components/schemas/MenuItem"
        },
        {
         "type": "object",
         "properties": {
          "categoryName": {
           "type": "string"
          }
         }
        }
       ]
      }
     },
     "modifiers": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ModifierGroup"
      }
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "EightySix": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "date": {
      "type": "string"
     },
     "service": {
      "type": "string"
     },
     "items": {
      "type": "array",
      "description": "Dishes on the 86 board.",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "category": {
         "type": "string"
        },
        "reason": {
         "type": "string"
        },
        "status": {
         "type": "string",
         "enum": [
          "Approved",
          "Reported"
         ]
        },
        "substitute": {
         "type": "string"
        },
        "substituteId": {
         "type": "string"
        }
       }
      }
     },
     "ingredients": {
      "type": "array",
      "description": "Ingredients out, with the dishes they take down.",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "reason": {
         "type": "string"
        },
        "status": {
         "type": "string"
        },
        "station": {
         "type": "string"
        },
        "affects": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "id": {
            "type": "string"
           },
           "name": {
            "type": "string"
           }
          }
         }
        },
        "substitute": {
         "type": "string"
        }
       }
      }
     },
     "soldOut": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "reason": {
         "type": "string"
        }
       }
      }
     },
     "unavailable": {
      "type": "array",
      "description": "Every dish that cannot be ordered right now, whatever the cause.",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "status": {
         "type": "string"
        },
        "label": {
         "type": "string"
        }
       }
      }
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "EightySixInput": {
    "type": "object",
    "description": "Provide either itemId/id (dish) or ingredientId (ingredient).",
    "properties": {
     "itemId": {
      "type": "string",
      "example": "mi-pan-roasted-halibut"
     },
     "ingredientId": {
      "type": "string"
     },
     "reason": {
      "type": "string",
      "maxLength": 160,
      "example": "Sold out during lunch"
     },
     "substitute": {
      "type": "string",
      "description": "Optional replacement dish id or name."
     },
     "action": {
      "type": "string",
      "enum": [
       "86",
       "soldout"
      ]
     }
    }
   },
   "PortionLimitInput": {
    "type": "object",
    "required": [
     "qty"
    ],
    "properties": {
     "qty": {
      "type": [
       "integer",
       "null"
      ],
      "minimum": 0,
      "description": "Remaining portion count, or null to clear the cap.",
      "example": 8
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "service": {
      "type": "string"
     }
    }
   },
   "Slot": {
    "type": "object",
    "properties": {
     "time": {
      "type": "string",
      "example": "18:30"
     },
     "available": {
      "type": "boolean"
     },
     "rooms": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "tablesAvailable": {
         "type": "integer"
        }
       }
      }
     },
     "suggestedTables": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "example": [
       "3",
       "14"
      ]
     },
     "joined": {
      "type": "boolean",
      "description": "True when the suggestion joins two neighbouring tables."
     }
    }
   },
   "AvailabilityResponse": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "service": {
      "type": "string"
     },
     "guests": {
      "type": "integer"
     },
     "turnMinutes": {
      "type": "integer",
      "example": 120
     },
     "stepMinutes": {
      "type": "integer",
      "example": 30
     },
     "open": {
      "type": "string",
      "example": "17:00"
     },
     "lastSeating": {
      "type": "string",
      "example": "21:30"
     },
     "rooms": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "tables": {
         "type": "integer"
        },
        "seats": {
         "type": "integer"
        }
       }
      }
     },
     "availableSlots": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Slot"
      }
     }
    }
   },
   "PreorderModifier": {
    "type": "object",
    "required": [
     "group",
     "option"
    ],
    "properties": {
     "group": {
      "type": "string",
      "description": "Modifier group id or name.",
      "example": "temp"
     },
     "option": {
      "type": "string",
      "example": "Medium rare"
     },
     "price": {
      "type": "number",
      "readOnly": true
     }
    }
   },
   "PreorderInput": {
    "type": "object",
    "required": [
     "itemId"
    ],
    "properties": {
     "itemId": {
      "type": "string",
      "example": "mi-rib-eye-steak"
     },
     "qty": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20,
      "default": 1
     },
     "modifiers": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PreorderModifier"
      }
     },
     "notes": {
      "type": "string",
      "maxLength": 300,
      "example": "Dressing on the side"
     },
     "guestIndex": {
      "type": "integer",
      "minimum": 0,
      "maximum": 60,
      "description": "Which guest at the table the plate is for (0 = the table)."
     }
    }
   },
   "Preorder": {
    "allOf": [
     {
      "$ref": "#/components/schemas/PreorderInput"
     },
     {
      "type": "object",
      "properties": {
       "id": {
        "type": "string"
       },
       "name": {
        "type": "string"
       },
       "course": {
        "type": "string"
       },
       "price": {
        "type": "number",
        "description": "The accepted price for the booked service time, including any eligible offer on the base item."
       },
       "lineTotal": {
        "type": "number"
       }
      }
     }
    ]
   },
   "ReservationInput": {
    "type": "object",
    "required": [
     "date",
     "time",
     "guests",
     "name"
    ],
    "properties": {
     "date": {
      "type": "string",
      "format": "date",
      "example": "2026-11-05"
     },
     "time": {
      "type": "string",
      "example": "19:30"
     },
     "guests": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20
     },
     "service": {
      "type": "string",
      "description": "Lunch, Dinner… Defaults to the service the time falls in."
     },
     "name": {
      "type": "string",
      "maxLength": 100
     },
     "email": {
      "type": "string",
      "format": "email"
     },
     "phone": {
      "type": "string"
     },
     "contact": {
      "type": "string",
      "description": "Shown to the floor; defaults to the phone or the email."
     },
     "note": {
      "type": "string",
      "maxLength": 2000,
      "example": "Window table if possible."
     },
     "allergies": {
      "type": "array",
      "description": "What the guests are allergic to: any of the fourteen allergen names, their codes (G, Cr, E, F, P, So, M, N, Ce, Mu, Se, Su, L, Mo) or everyday words such as dairy or shellfish. Anything else is added to allergyNote. Any allergy tags the booking Allergy.",
      "items": {
       "type": "string"
      },
      "example": [
       "Peanuts",
       "Milk"
      ]
     },
     "allergyNote": {
      "type": "string",
      "maxLength": 200,
      "description": "The guest’s own words for anything the list does not cover.",
      "example": "Kiwi. Severe peanut allergy, carries an EpiPen."
     },
     "diets": {
      "type": "array",
      "description": "Diets the party follows, from the ones a dish can be marked with. Other diets belong in note.",
      "items": {
       "type": "string",
       "enum": [
        "Vegetarian",
        "Vegan",
        "Gluten-free",
        "Dairy-free",
        "Nut-free"
       ]
      },
      "example": [
       "Vegetarian"
      ]
     },
     "tablePreference": {
      "type": "string",
      "description": "A table label from the floor plan; the booking is refused when that table is not open for the party.",
      "example": "7"
     },
     "occasion": {
      "type": "string",
      "example": "Anniversary"
     },
     "tags": {
      "type": "array",
      "items": {
       "type": "string",
       "enum": [
        "VIP",
        "Regular",
        "Birthday",
        "Anniversary",
        "Allergy",
        "Window",
        "Quiet",
        "High chair",
        "Wheelchair",
        "Business",
        "Large party"
       ]
      }
     },
     "roomPreference": {
      "type": "string",
      "description": "Room id or name; honoured when a table there is free.",
      "example": "courtyard"
     },
     "duration": {
      "type": "integer",
      "description": "Turn time in minutes; defaults to the restaurant’s."
     },
     "preorders": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PreorderInput"
      }
     },
     "membershipAccess": {
      "type": "string",
      "writeOnly": true,
      "pattern": "^[a-f0-9]{64}$",
      "description": "Optional secret from a guest membership link issued by this restaurant. Verifies the member profile for this booking. Keep it out of URLs and logs. A booking manage key does not serve as membership proof."
     }
    }
   },
   "Reservation": {
    "type": "object",
    "properties": {
     "bookingId": {
      "type": "string",
      "example": "res-3f9a1c2b"
     },
     "status": {
      "type": "string",
      "enum": [
       "Confirmed",
       "Seated",
       "Completed",
       "Cancelled",
       "No-show"
      ]
     },
     "date": {
      "type": "string"
     },
     "service": {
      "type": "string"
     },
     "time": {
      "type": "string"
     },
     "endTime": {
      "type": "string"
     },
     "durationMinutes": {
      "type": "integer"
     },
     "guests": {
      "type": "integer"
     },
     "name": {
      "type": "string"
     },
     "email": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     },
     "contact": {
      "type": "string"
     },
     "note": {
      "type": "string"
     },
     "occasion": {
      "type": "string"
     },
     "tags": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "allergies": {
      "type": "array",
      "items": {
       "type": "string",
       "enum": [
        "Gluten",
        "Crustaceans",
        "Eggs",
        "Fish",
        "Peanuts",
        "Soy",
        "Milk",
        "Tree nuts",
        "Celery",
        "Mustard",
        "Sesame",
        "Sulphites",
        "Lupin",
        "Molluscs"
       ]
      }
     },
     "allergyNote": {
      "type": "string"
     },
     "diets": {
      "type": "array",
      "items": {
       "type": "string",
       "enum": [
        "Vegetarian",
        "Vegan",
        "Gluten-free",
        "Dairy-free",
        "Nut-free"
       ]
      }
     },
     "allergyWarnings": {
      "type": "array",
      "description": "Pre-ordered dishes that contain, or may contain, one of the party’s allergens.",
      "items": {
       "type": "object",
       "properties": {
        "preorderId": {
         "type": "string"
        },
        "itemId": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "contains": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "mayContain": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       }
      }
     },
     "source": {
      "type": "string",
      "example": "API"
     },
     "tables": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "room": {
      "type": "object",
      "nullable": true,
      "properties": {
       "id": {
        "type": "string"
       },
       "name": {
        "type": "string"
       }
      }
     },
     "preorders": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Preorder"
      }
     },
     "preorderCount": {
      "type": "integer"
     },
     "preorderTotal": {
      "type": "number"
     },
     "currency": {
      "type": "string"
     },
     "createdAt": {
      "type": "string"
     },
     "updatedAt": {
      "type": "string"
     },
     "restaurantId": {
      "type": "string"
     },
     "manageUrl": {
      "type": "string",
      "description": "A link that reads, changes or cancels this booking without an API key."
     },
     "manageKey": {
      "type": "string",
      "description": "Returned once, at creation. Send it as ?key= or X-Brigly-Manage-Key to manage the booking."
     }
    }
   },
   "ReservationsList": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "reservations": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Reservation"
      }
     },
     "nextCursor": {
      "type": "string"
     },
     "hasMore": {
      "type": "boolean"
     },
     "total": {
      "type": "integer"
     }
    }
   },
   "ReservationPatch": {
    "type": "object",
    "properties": {
     "date": {
      "type": "string",
      "format": "date"
     },
     "time": {
      "type": "string"
     },
     "guests": {
      "type": "integer"
     },
     "service": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "email": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     },
     "note": {
      "type": "string"
     },
     "occasion": {
      "type": "string"
     },
     "tags": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "allergies": {
      "type": "array",
      "description": "Replaces the list; an empty list removes it.",
      "items": {
       "type": "string"
      }
     },
     "allergyNote": {
      "type": "string",
      "maxLength": 200
     },
     "diets": {
      "type": "array",
      "description": "Replaces the list; an empty list removes it.",
      "items": {
       "type": "string",
       "enum": [
        "Vegetarian",
        "Vegan",
        "Gluten-free",
        "Dairy-free",
        "Nut-free"
       ]
      }
     },
     "tablePreference": {
      "type": "string"
     },
     "roomPreference": {
      "type": "string"
     },
     "preorders": {
      "type": "array",
      "description": "Replaces the pre-orders; an empty list removes them.",
      "items": {
       "$ref": "#/components/schemas/PreorderInput"
      }
     },
     "status": {
      "type": "string",
      "enum": [
       "Confirmed",
       "Seated",
       "Completed",
       "Cancelled",
       "No-show"
      ],
      "description": "Optional floor status transition (bearer API key only)."
     },
     "manageKey": {
      "type": "string"
     },
     "membershipAccess": {
      "type": "string",
      "writeOnly": true,
      "pattern": "^[a-f0-9]{64}$",
      "description": "For a move into the earlier member booking window, supply a membership secret that matches the existing guest. The booking manage key remains required when an API key is absent."
     }
    }
   },
   "WaitlistQuote": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "service": {
      "type": "string"
     },
     "guests": {
      "type": "integer"
     },
     "quotedMinutes": {
      "type": "integer",
      "nullable": true
     },
     "waitingCount": {
      "type": "integer"
     },
     "openNow": {
      "type": "boolean"
     }
    }
   },
   "WaitlistEntry": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "service": {
      "type": "string"
     },
     "guests": {
      "type": "integer"
     },
     "name": {
      "type": "string"
     },
     "contact": {
      "type": "string"
     },
     "note": {
      "type": "string"
     },
     "quotedMin": {
      "type": "integer",
      "nullable": true
     },
     "status": {
      "type": "string",
      "enum": [
       "waiting",
       "seated",
       "left"
      ]
     },
     "createdAt": {
      "type": "string"
     }
    }
   },
   "WaitlistInput": {
    "type": "object",
    "required": [
     "guests",
     "name"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "service": {
      "type": "string"
     },
     "guests": {
      "type": "integer",
      "minimum": 1,
      "maximum": 20
     },
     "name": {
      "type": "string",
      "maxLength": 100
     },
     "contact": {
      "type": "string",
      "maxLength": 120
     },
     "note": {
      "type": "string",
      "maxLength": 300
     },
     "quotedMin": {
      "type": "integer",
      "minimum": 0,
      "maximum": 240
     }
    }
   },
   "PromotionItem": {
    "type": "object",
    "properties": {
     "menuItemId": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "basePrice": {
      "type": "number"
     },
     "price": {
      "type": "number"
     },
     "available": {
      "type": "boolean"
     },
     "allergens": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "mayContain": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   },
   "Special": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "kind": {
      "type": "string",
      "enum": [
       "special",
       "happy_hour",
       "event"
      ]
     },
     "name": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "price": {
      "type": "number"
     },
     "currency": {
      "type": "string"
     },
     "date": {
      "type": "string"
     },
     "weekday": {
      "type": "string"
     },
     "service": {
      "type": "string"
     },
     "time": {
      "type": "string",
      "example": "16:00–18:00"
     },
     "start": {
      "type": "string"
     },
     "end": {
      "type": "string"
     },
     "note": {
      "type": "string",
      "description": "Allergen note (special) or terms (happy hour). Events carry no note: their staging notes stay inside the restaurant."
     },
     "icon": {
      "type": "string",
      "description": "The picture as a name from Brigly’s icon set (ev-music, cat-cocktail, specials…): the one picked, else the linked dish’s, else one that fits the name and kind.",
      "example": "cat-bowl"
     },
     "image": {
      "type": [
       "string",
       "null"
      ],
      "format": "uri",
      "description": "The photo: the feature’s own, else its linked dish’s. Null when there is none."
     },
     "menuItemId": {
      "type": [
       "string",
       "null"
      ],
      "description": "The dish on the menu this feature is linked to (see /v1/menu/items)."
     },
     "allergens": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Allergens: the linked dish’s, kept live, plus any the note names."
     },
     "mayContain": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "allergensConfirmed": {
      "type": "boolean",
      "description": "True only when the restaurant confirmed this feature carries none of the fourteen allergens. An empty allergens list without it means nobody has recorded them: ask the restaurant."
     },
     "items": {
      "type": "array",
      "description": "Menu items linked to this promotion.",
      "items": {
       "$ref": "#/components/schemas/PromotionItem"
      }
     },
     "paymentMode": {
      "type": "string",
      "enum": [
       "free",
       "venue"
      ],
      "description": "Only present when event pricing is configured. An omitted value does not indicate free admission."
     },
     "priceBasis": {
      "type": "string",
      "enum": [
       "person",
       "party"
      ]
     },
     "active": {
      "type": "boolean"
     }
    }
   },
   "Specials": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "date": {
      "type": "string"
     },
     "service": {
      "type": "string"
     },
     "specials": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Special"
      }
     },
     "happyHours": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Special"
      }
     },
     "events": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Special"
      }
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "HappyHours": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "from": {
      "type": "string"
     },
     "happyHours": {
      "type": "array",
      "items": {
       "allOf": [
        {
         "$ref": "#/components/schemas/Special"
        },
        {
         "type": "object",
         "properties": {
          "terms": {
           "type": "string"
          },
          "activeNow": {
           "type": "boolean"
          }
         }
        }
       ]
      }
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "Event": {
    "allOf": [
     {
      "$ref": "#/components/schemas/Special"
     },
     {
      "type": "object",
      "properties": {
       "booking": {
        "$ref": "#/components/schemas/EventBooking"
       },
       "ticketed": {
        "type": "boolean",
        "description": "Retained compatibility field. Always false."
       },
       "ticketPrice": {
        "type": "integer",
        "description": "Retained compatibility field. Always 0."
       },
       "seatsLeft": {
        "type": "integer",
        "description": "Retained compatibility field. Always 0."
       },
       "capacity": {
        "type": "integer",
        "description": "Retained compatibility field. Always 0."
       },
       "soldOut": {
        "type": "boolean",
        "description": "Retained compatibility field. Always false."
       },
       "maxPerOrder": {
        "type": "integer",
        "description": "Retained compatibility field. Always 0."
       },
       "checkoutUrl": {
        "type": "string",
        "description": "Retained compatibility field. Always empty."
       },
       "eventsUrl": {
        "type": "string",
        "description": "The restaurant’s public events page."
       },
       "reservationUrl": {
        "type": "string",
        "description": "Public link for an occurrence with reservations configured."
       }
      }
     }
    ]
   },
   "Events": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "from": {
      "type": "string"
     },
     "events": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Event"
      }
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "EventBooking": {
    "type": "object",
    "description": "What a website needs to take places at an event on its own page. Present while the event can still be booked.",
    "properties": {
     "occurrenceId": {
      "type": "string"
     },
     "version": {
      "type": "string",
      "description": "Changes when the terms, the price, the hours or the meal change. Send it back with the booking."
     },
     "open": {
      "type": "boolean"
     },
     "available": {
      "type": "integer",
      "description": "Places left."
     },
     "minParty": {
      "type": "integer"
     },
     "maxParty": {
      "type": "integer"
     },
     "terms": {
      "type": "string"
     },
     "menuGroups": {
      "type": "array",
      "description": "The meal to choose, when the event has one: for each group, between min and max of its options.",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "min": {
         "type": "integer"
        },
        "max": {
         "type": "integer"
        },
        "quantity": {
         "type": "number"
        },
        "basis": {
         "type": "string",
         "enum": [
          "person",
          "party"
         ]
        },
        "options": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "id": {
            "type": "string"
           },
           "name": {
            "type": "string"
           },
           "allergens": {
            "type": "array",
            "items": {
             "type": "string"
            }
           },
           "mayContain": {
            "type": "array",
            "items": {
             "type": "string"
            }
           }
          }
         }
        }
       }
      }
     }
    }
   },
   "EventReservationInput": {
    "type": "object",
    "required": [
     "version",
     "guests",
     "name"
    ],
    "description": "Give an email or a phone number.",
    "properties": {
     "version": {
      "type": "string",
      "description": "The booking.version the guest was shown."
     },
     "guests": {
      "type": "integer"
     },
     "name": {
      "type": "string",
      "maxLength": 100
     },
     "email": {
      "type": "string",
      "format": "email"
     },
     "phone": {
      "type": "string"
     },
     "dietary": {
      "type": "string",
      "maxLength": 300
     },
     "meals": {
      "type": "object",
      "description": "For each meal group id, the option ids chosen.",
      "additionalProperties": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   },
   "EventReservation": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "eventId": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "date": {
      "type": "string"
     },
     "time": {
      "type": "string"
     },
     "guests": {
      "type": "integer"
     },
     "status": {
      "type": "string",
      "example": "Confirmed"
     },
     "startAt": {
      "type": "integer"
     },
     "endAt": {
      "type": "integer"
     },
     "payment": {
      "type": "string",
      "enum": [
       "free",
       "venue"
      ]
     },
     "basis": {
      "type": "string",
      "enum": [
       "person",
       "party"
      ]
     },
     "priceCents": {
      "type": "integer"
     },
     "currency": {
      "type": "string"
     },
     "terms": {
      "type": "string"
     },
     "restaurantId": {
      "type": "string"
     },
     "manageKey": {
      "type": "string",
      "description": "Returned once, when the places are taken. Send it as ?key= or X-Brigly-Manage-Key to read or cancel the reservation."
     }
    }
   },
   "CateringOffer": {
    "type": "object",
    "description": "One thing the restaurant offers for a larger party: food for somewhere else (catering) or its own room (private-event).",
    "properties": {
     "id": {
      "type": "string"
     },
     "channel": {
      "type": "string",
      "enum": [
       "catering",
       "private-event"
      ]
     },
     "kind": {
      "type": "string"
     },
     "name": {
      "type": "string",
      "example": "Private dining"
     },
     "description": {
      "type": "string"
     },
     "inclusions": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "services": {
      "type": "array",
      "items": {
       "type": "string",
       "enum": [
        "pickup",
        "delivery",
        "on-site"
       ]
      }
     },
     "from": {
      "type": "string",
      "format": "date"
     },
     "through": {
      "type": "string",
      "format": "date"
     },
     "start": {
      "type": "string",
      "example": "10:00"
     },
     "end": {
      "type": "string",
      "example": "22:00"
     },
     "blackouts": {
      "type": "array",
      "items": {
       "type": "string",
       "format": "date"
      }
     },
     "minGuests": {
      "type": "integer"
     },
     "maxGuests": {
      "type": "integer"
     },
     "leadDays": {
      "type": "integer",
      "description": "Days of notice the restaurant needs: the first date it takes is today plus this."
     },
     "packagePrice": {
      "type": "number"
     },
     "personPrice": {
      "type": "number"
     },
     "minTotal": {
      "type": "number"
     },
     "deliveryFee": {
      "type": "number"
     },
     "setupFee": {
      "type": "number"
     },
     "terms": {
      "type": "string"
     },
     "lines": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "groups": {
      "type": "array",
      "description": "Choices the guest makes, each with its options.",
      "items": {
       "type": "object"
      }
     },
     "image": {
      "type": "string",
      "nullable": true
     },
     "occasions": {
      "type": "array",
      "description": "private-event only: the occasions a request may name.",
      "items": {
       "type": "string"
      }
     }
    }
   },
   "CateringOffers": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "offerings": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/CateringOffer"
      }
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "CateringRequestInput": {
    "type": "object",
    "required": [
     "offeringId",
     "name",
     "service",
     "date",
     "time",
     "guests"
    ],
    "description": "Give an email or a phone number. The restaurant checks the request against the offer: the date window and notice, the guest count, the service and, for delivery, the postal code.",
    "properties": {
     "id": {
      "type": "string",
      "description": "Your own reference (8 to 60 letters, digits, - or _). One is made when left out."
     },
     "offeringId": {
      "type": "string"
     },
     "name": {
      "type": "string",
      "maxLength": 120
     },
     "email": {
      "type": "string",
      "format": "email"
     },
     "phone": {
      "type": "string"
     },
     "organization": {
      "type": "string"
     },
     "service": {
      "type": "string",
      "enum": [
       "pickup",
       "delivery",
       "on-site"
      ]
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "time": {
      "type": "string",
      "example": "18:00"
     },
     "guests": {
      "type": "integer"
     },
     "duration": {
      "type": "integer",
      "description": "Minutes; defaults to 120."
     },
     "occasion": {
      "type": "string",
      "description": "private-event: one of the offer’s occasions.",
      "example": "Birthday"
     },
     "customOccasion": {
      "type": "string",
      "description": "The occasion in the guest’s words when occasion is Other."
     },
     "note": {
      "type": "string",
      "maxLength": 2000
     },
     "dietary": {
      "type": "string",
      "maxLength": 1000
     },
     "address": {
      "type": "string",
      "description": "Where to serve, for delivery."
     },
     "postal": {
      "type": "string"
     },
     "access": {
      "type": "string"
     },
     "onSiteContact": {
      "type": "string"
     },
     "selections": {
      "type": "array",
      "description": "Choices from the offer’s groups.",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "quantity": {
         "type": "integer"
        }
       }
      }
     }
    }
   },
   "CateringRequest": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "example": "req-3f9a1c2b"
     },
     "channel": {
      "type": "string",
      "enum": [
       "catering",
       "private-event"
      ]
     },
     "status": {
      "type": "string",
      "example": "requested"
     },
     "request": {
      "type": "object",
      "description": "What was asked for, as the restaurant priced it."
     },
     "offered": {
      "type": "object",
      "nullable": true,
      "description": "The quote the restaurant sent, while it is open."
     },
     "accepted": {
      "type": "object",
      "nullable": true
     },
     "quoteExpired": {
      "type": "boolean"
     },
     "canCancel": {
      "type": "boolean"
     },
     "name": {
      "type": "string"
     },
     "email": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     },
     "restaurantId": {
      "type": "string"
     },
     "manageKey": {
      "type": "string",
      "description": "Returned once, when the request is sent. Send it as ?key= or X-Brigly-Manage-Key to read or withdraw the request."
     }
    }
   },
   "MembershipPlan": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string",
      "example": "Regulars"
     },
     "description": {
      "type": "string"
     },
     "paid": {
      "type": "string",
      "enum": [
       "free",
       "once",
       "recurring",
       "fixed"
      ],
      "description": "Free, paid once, paid again every `months`, or paid for a fixed term of `months`."
     },
     "price": {
      "type": "number"
     },
     "currency": {
      "type": "string"
     },
     "months": {
      "type": "integer"
     },
     "benefits": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "label": {
         "type": "string",
         "example": "Welcome treat"
        },
        "amount": {
         "type": "number"
        },
        "unit": {
         "type": "string"
        },
        "period": {
         "type": "string",
         "example": "month"
        }
       }
      }
     },
     "requestable": {
      "type": "boolean",
      "description": "True when a guest can ask to join this plan with POST /v1/memberships/requests: the restaurant takes requests online, and the plan is not one that is joined at the restaurant only."
     }
    }
   },
   "MembershipRequestInput": {
    "type": "object",
    "required": [
     "planId",
     "name"
    ],
    "description": "Give an email or a phone number: one way for the restaurant to reach the guest. Nothing else about the guest is kept.",
    "properties": {
     "id": {
      "type": "string",
      "description": "Your own reference (8 to 60 letters, digits, - or _). One is made when left out."
     },
     "planId": {
      "type": "string",
      "description": "The id of a plan from GET /v1/memberships whose requestable is true."
     },
     "name": {
      "type": "string",
      "maxLength": 100
     },
     "email": {
      "type": "string",
      "format": "email"
     },
     "phone": {
      "type": "string"
     }
    }
   },
   "MembershipRequest": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "example": "join-3f9a1c2b"
     },
     "status": {
      "type": "string",
      "enum": [
       "waiting",
       "accepted",
       "declined",
       "withdrawn"
      ],
      "description": "waiting until the restaurant answers; accepted once staff have added the membership."
     },
     "planId": {
      "type": "string"
     },
     "plan": {
      "type": "string",
      "example": "Regulars"
     },
     "name": {
      "type": "string",
      "description": "Empty once the request is answered or withdrawn."
     },
     "requestedAt": {
      "type": "integer"
     },
     "canWithdraw": {
      "type": "boolean"
     },
     "restaurantId": {
      "type": "string"
     },
     "manageKey": {
      "type": "string",
      "description": "Returned once, when the request is sent. Send it as ?key= or X-Brigly-Manage-Key to read or withdraw the request."
     }
    }
   },
   "Memberships": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "plans": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/MembershipPlan"
      }
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "StockItem": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "category": {
      "type": "string"
     },
     "unit": {
      "type": "string"
     },
     "onHand": {
      "type": "number"
     },
     "par": {
      "type": "number"
     },
     "reorderPoint": {
      "type": "number"
     },
     "low": {
      "type": "boolean"
     },
     "active": {
      "type": "boolean"
     },
     "sku": {
      "type": "string"
     },
     "image": {
      "type": [
       "string",
       "null"
      ],
      "format": "uri",
      "description": "Public URL of the stock item photo, or null if none."
     }
    }
   },
   "StockOrder": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "number": {
      "type": "string"
     },
     "supplierName": {
      "type": "string"
     },
     "status": {
      "type": "string"
     },
     "deliveryDate": {
      "type": "string",
      "format": "date"
     },
     "totalCents": {
      "type": "integer"
     },
     "currency": {
      "type": "string"
     },
     "lineCount": {
      "type": "integer"
     },
     "createdAt": {
      "type": "string"
     }
    }
   },
   "ScheduleShift": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "personId": {
      "type": "string"
     },
     "personName": {
      "type": "string"
     },
     "role": {
      "type": "string"
     },
     "station": {
      "type": "string"
     },
     "start": {
      "type": "string"
     },
     "end": {
      "type": "string"
     },
     "status": {
      "type": "string"
     }
    }
   },
   "Briefing": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "service": {
      "type": "string"
     },
     "notes": {
      "type": "string"
     },
     "highlights": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "approvedAt": {
      "type": "string"
     }
    }
   },
   "FeedbackInput": {
    "type": "object",
    "required": [
     "rating"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "rating": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5
     },
     "text": {
      "type": "string",
      "maxLength": 1000
     },
     "locale": {
      "type": "string"
     },
     "contact": {
      "type": "string",
      "maxLength": 120
     }
    }
   },
   "GuestFeedback": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "rating": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5
     },
     "text": {
      "type": "string"
     },
     "locale": {
      "type": "string"
     },
     "handled": {
      "type": "boolean"
     },
     "context": {
      "type": "object"
     },
     "at": {
      "type": "string"
     },
     "restaurantId": {
      "type": "string"
     }
    }
   },
   "JobQuestion": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "prompt": {
      "type": "string"
     },
     "required": {
      "type": "boolean"
     }
    }
   },
   "JobPay": {
    "type": "object",
    "nullable": true,
    "properties": {
     "min": {
      "type": "number",
      "nullable": true
     },
     "max": {
      "type": "number",
      "nullable": true
     },
     "unit": {
      "type": "string",
      "enum": [
       "",
       "hour",
       "year",
       "shift"
      ]
     },
     "currency": {
      "type": "string",
      "example": "USD"
     },
     "note": {
      "type": "string"
     }
    }
   },
   "Job": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "example": "job-line-cook"
     },
     "title": {
      "type": "string",
      "example": "Line cook"
     },
     "role": {
      "type": "string",
      "example": "Cook"
     },
     "station": {
      "type": "string",
      "example": "Hot Line"
     },
     "employmentType": {
      "type": "string",
      "enum": [
       "Full-time",
       "Part-time",
       "Seasonal",
       "Contractor"
      ]
     },
     "schedule": {
      "type": "string",
      "example": "Wed–Sun evenings"
     },
     "pay": {
      "$ref": "#/components/schemas/JobPay"
     },
     "description": {
      "type": "string"
     },
     "requirements": {
      "type": "string"
     },
     "questions": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/JobQuestion"
      }
     },
     "accepting": {
      "type": "boolean"
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "JobsResponse": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "workspaceKind": {
      "type": "string",
      "enum": [
       "restaurant",
       "supplier"
      ]
     },
     "accepting": {
      "type": "boolean"
     },
     "intro": {
      "type": "string"
     },
     "jobs": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Job"
      }
     },
     "applyUrl": {
      "type": "string"
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "JobApplicationInput": {
    "type": "object",
    "required": [
     "jobId",
     "name"
    ],
    "description": "Give an email or a phone number so the team can reply. Keep tax, bank and work-authorization documents inside Team after hiring.",
    "properties": {
     "id": {
      "type": "string",
      "description": "Your own reference (8 to 60 letters, digits, - or _). One is made when left out."
     },
     "jobId": {
      "type": "string",
      "description": "The id of an open role from GET /v1/jobs."
     },
     "name": {
      "type": "string",
      "maxLength": 80
     },
     "email": {
      "type": "string",
      "format": "email"
     },
     "phone": {
      "type": "string",
      "maxLength": 60
     },
     "availability": {
      "type": "string",
      "maxLength": 240
     },
     "experience": {
      "type": "string",
      "maxLength": 2000
     },
     "link": {
      "type": "string",
      "format": "uri",
      "description": "Optional https:// portfolio or profile URL."
     },
     "answers": {
      "type": "array",
      "description": "Answers to the role’s screening questions.",
      "items": {
       "type": "object",
       "properties": {
        "questionId": {
         "type": "string"
        },
        "answer": {
         "type": "string",
         "maxLength": 600
        }
       }
      }
     }
    }
   },
   "JobApplication": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "example": "app-3f9a1c2b"
     },
     "jobId": {
      "type": "string"
     },
     "jobTitle": {
      "type": "string"
     },
     "status": {
      "type": "string",
      "enum": [
       "new",
       "reviewing",
       "interview",
       "offered",
       "hired",
       "declined",
       "withdrawn"
      ]
     },
     "name": {
      "type": "string",
      "description": "Empty once the applicant withdraws or the manager clears personal details."
     },
     "submittedAt": {
      "type": "integer"
     },
     "updatedAt": {
      "type": "integer"
     },
     "canWithdraw": {
      "type": "boolean"
     },
     "restaurantId": {
      "type": "string"
     },
     "manageUrl": {
      "type": "string",
      "description": "Link to follow or withdraw this application without an API key."
     },
     "manageKey": {
      "type": "string",
      "description": "Returned once at creation. Send it as ?key= or X-Brigly-Manage-Key to check status or withdraw."
     },
     "role": {
      "type": "string"
     },
     "station": {
      "type": "string"
     },
     "email": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     },
     "availability": {
      "type": "string"
     },
     "experience": {
      "type": "string"
     },
     "link": {
      "type": "string"
     },
     "answers": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "questionId": {
         "type": "string"
        },
        "prompt": {
         "type": "string"
        },
        "answer": {
         "type": "string"
        }
       }
      }
     },
     "source": {
      "type": "string",
      "enum": [
       "website",
       "page",
       "brigly",
       "manual"
      ]
     },
     "notes": {
      "type": "string"
     },
     "interviewAt": {
      "type": "string"
     },
     "hiredPersonId": {
      "type": "string"
     }
    }
   },
   "ApplicationsResponse": {
    "type": "object",
    "properties": {
     "restaurant": {
      "$ref": "#/components/schemas/Restaurant"
     },
     "applications": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/JobApplication"
      }
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "WebhookInput": {
    "type": "object",
    "required": [
     "url",
     "events"
    ],
    "properties": {
     "url": {
      "type": "string",
      "format": "uri",
      "example": "https://example.com/hooks/brigly"
     },
     "events": {
      "type": "array",
      "items": {
       "type": "string",
       "enum": [
        "menu.updated",
        "item.86ed",
        "restaurant.updated",
        "reservation.created",
        "reservation.updated",
        "reservation.cancelled",
        "specials.updated",
        "floor.updated",
        "catering.requested",
        "catering.updated",
        "membership.requested",
        "membership.updated",
        "jobs.updated",
        "application.received",
        "application.updated",
        "feedback.received"
       ]
      }
     },
     "active": {
      "type": "boolean",
      "default": true
     }
    }
   },
   "WebhookPatch": {
    "type": "object",
    "properties": {
     "url": {
      "type": "string",
      "format": "uri"
     },
     "events": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "active": {
      "type": "boolean"
     }
    }
   },
   "Webhook": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "url": {
      "type": "string"
     },
     "events": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "active": {
      "type": "boolean"
     },
     "createdAt": {
      "type": "integer"
     },
     "lastStatus": {
      "type": "string",
      "example": "200 OK"
     },
     "lastDeliveredAt": {
      "type": "integer",
      "nullable": true
     },
     "secretHint": {
      "type": "string"
     },
     "secret": {
      "type": "string",
      "description": "Returned once, at creation (whsec_…). Verify deliveries with HMAC-SHA256 over the raw body."
     }
    }
   },
   "WebhookDeliveryRecord": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "jobId": {
      "type": "string"
     },
     "webhookId": {
      "type": "string"
     },
     "deliveryId": {
      "type": "string"
     },
     "event": {
      "type": "string"
     },
     "url": {
      "type": "string"
     },
     "code": {
      "type": "integer"
     },
     "status": {
      "type": "string"
     },
     "state": {
      "type": "string",
      "enum": [
       "queued",
       "sending",
       "retrying",
       "delivered",
       "failed",
       "stopped"
      ]
     },
     "attempts": {
      "type": "integer"
     },
     "latencyMs": {
      "type": "integer",
      "nullable": true
     },
     "nextAttemptAt": {
      "type": "integer"
     },
     "replayable": {
      "type": "boolean"
     },
     "at": {
      "type": "integer"
     }
    }
   },
   "WebhookDelivery": {
    "type": "object",
    "description": "At-least-once delivery: deduplicate by event id. Headers: X-Brigly-Event, X-Brigly-Signature (sha256=<hex HMAC of the raw body>), X-Brigly-Delivery, X-Brigly-Timestamp. Retries and replays preserve the event id, body, signature and original event timestamp. Network errors, 408, 425, 429 and 5xx receive up to six attempts, with retry delays of 1m, 5m, 30m, 2h and 6h. Non-transient 4xx responses fail immediately.",
    "properties": {
     "id": {
      "type": "string",
      "example": "evt_6b1c…"
     },
     "event": {
      "type": "string"
     },
     "restaurantId": {
      "type": "string"
     },
     "vendorId": {
      "type": "string"
     },
     "timestamp": {
      "type": "integer"
     },
     "data": {
      "type": "object"
     }
    }
   },
   "VendorProfile": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "category": {
      "type": "string"
     },
     "city": {
      "type": "string"
     },
     "deliveryDays": {
      "type": "array",
      "items": {
       "type": "integer"
      }
     },
     "cutOffTime": {
      "type": "string"
     },
     "leadDays": {
      "type": "integer"
     },
     "orderMinimum": {
      "type": "number"
     },
     "currency": {
      "type": "string",
      "example": "USD"
     },
     "plan": {
      "type": "string"
     },
     "status": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "websiteUrl": {
      "type": "string"
     },
     "logo": {
      "type": "object",
      "nullable": true,
      "properties": {
       "src": {
        "type": "string"
       },
       "tone": {
        "type": "string",
        "enum": [
         "light",
         "dark"
        ]
       }
      }
     },
     "categories": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "nextDelivery": {
      "type": "object",
      "nullable": true,
      "properties": {
       "deliveryDate": {
        "type": "string",
        "format": "date"
       },
       "orderBy": {
        "type": "integer"
       }
      }
     },
     "privacy": {
      "type": "object",
      "properties": {
       "publicCatalog": {
        "type": "boolean"
       },
       "publicPrices": {
        "type": "boolean"
       },
       "publicNews": {
        "type": "boolean"
       },
       "publicContact": {
        "type": "boolean"
       }
      }
     },
     "news": {
      "type": "string",
      "description": "Included when called with a bearer key or when publicNews is true."
     },
     "newsAt": {
      "type": "integer"
     },
     "contactName": {
      "type": "string",
      "description": "Included when called with a bearer key or when publicContact is true."
     },
     "email": {
      "type": "string"
     },
     "phone": {
      "type": "string"
     }
    }
   },
   "VendorCatalogItem": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "sku": {
      "type": "string",
      "example": "JUN-BAG-12"
     },
     "name": {
      "type": "string"
     },
     "category": {
      "type": "string"
     },
     "pack": {
      "type": "string"
     },
     "unit": {
      "type": "string"
     },
     "available": {
      "type": "boolean"
     },
     "catchWeight": {
      "type": "boolean"
     },
     "featured": {
      "type": "boolean"
     },
     "alt": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "price": {
      "type": "number",
      "description": "Omitted in public mode unless both publicCatalog and publicPrices are enabled."
     },
     "priceCents": {
      "type": "integer"
     },
     "currency": {
      "type": "string",
      "example": "USD"
     },
     "today": {
      "type": "object",
      "description": "Bearer key only: today’s available count.",
      "properties": {
       "date": {
        "type": "string"
       },
       "qty": {
        "type": "number"
       },
       "at": {
        "type": "integer"
       }
      }
     },
     "priceHistory": {
      "type": "array",
      "description": "Bearer key with include_history=true only.",
      "items": {
       "type": "object",
       "properties": {
        "at": {
         "type": "integer"
        },
        "from": {
         "type": "number"
        },
        "to": {
         "type": "number"
        },
        "source": {
         "type": "string"
        }
       }
      }
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "VendorCatalog": {
    "type": "object",
    "properties": {
     "vendorId": {
      "type": "string"
     },
     "vendorName": {
      "type": "string"
     },
     "pricesVisible": {
      "type": "boolean"
     },
     "categories": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/VendorCatalogItem"
      }
     },
     "nextCursor": {
      "type": "string"
     },
     "hasMore": {
      "type": "boolean"
     },
     "total": {
      "type": "integer"
     }
    }
   },
   "VendorCatalogInput": {
    "type": "object",
    "required": [
     "name",
     "unit",
     "price"
    ],
    "properties": {
     "name": {
      "type": "string",
      "maxLength": 100
     },
     "category": {
      "type": "string",
      "maxLength": 40
     },
     "sku": {
      "type": "string",
      "maxLength": 60
     },
     "pack": {
      "type": "string",
      "maxLength": 80
     },
     "unit": {
      "type": "string",
      "maxLength": 40
     },
     "price": {
      "type": "number",
      "minimum": 0,
      "maximum": 100000
     },
     "available": {
      "type": "boolean",
      "default": true
     },
     "catchWeight": {
      "type": "boolean"
     },
     "featured": {
      "type": "boolean"
     },
     "alt": {
      "type": "string",
      "maxLength": 60
     },
     "description": {
      "type": "string",
      "maxLength": 300
     }
    }
   },
   "VendorAvailabilityInput": {
    "type": "object",
    "required": [
     "items"
    ],
    "properties": {
     "date": {
      "type": "string",
      "format": "date",
      "description": "Today or tomorrow on the supplier’s clock."
     },
     "items": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "sku",
        "qty"
       ],
       "properties": {
        "sku": {
         "type": "string"
        },
        "qty": {
         "type": [
          "number",
          "null"
         ]
        }
       }
      }
     }
    }
   },
   "VendorNews": {
    "type": "object",
    "properties": {
     "vendorId": {
      "type": "string"
     },
     "vendorName": {
      "type": "string"
     },
     "news": {
      "type": "string"
     },
     "newsAt": {
      "type": "integer"
     },
     "maxLength": {
      "type": "integer"
     }
    }
   },
   "VendorOrder": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "restaurantId": {
      "type": "string"
     },
     "restaurantName": {
      "type": "string"
     },
     "poNumber": {
      "type": "string"
     },
     "status": {
      "type": "string"
     },
     "deliveryDate": {
      "type": "string",
      "format": "date"
     },
     "subtotal": {
      "type": "number"
     },
     "deliveredSubtotal": {
      "type": "number"
     },
     "currency": {
      "type": "string"
     },
     "items": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "shipments": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "notes": {
      "type": "string"
     },
     "createdAt": {
      "type": "integer"
     },
     "updatedAt": {
      "type": "integer"
     }
    }
   },
   "VendorOrderStatusInput": {
    "type": "object",
    "required": [
     "status"
    ],
    "properties": {
     "status": {
      "type": "string",
      "enum": [
       "acknowledged",
       "declined",
       "picking",
       "packed",
       "out_for_delivery",
       "delivered",
       "cancelled"
      ]
     },
     "reason": {
      "type": "string",
      "description": "Required when declining."
     },
     "receivedBy": {
      "type": "string",
      "description": "Signer name when delivered."
     },
     "itemsWithDeliveredQty": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "itemId": {
         "type": "string"
        },
        "deliveredQty": {
         "type": "number"
        }
       }
      }
     }
    }
   },
   "VendorWebhookInput": {
    "type": "object",
    "required": [
     "url",
     "events"
    ],
    "properties": {
     "url": {
      "type": "string",
      "format": "uri"
     },
     "events": {
      "type": "array",
      "items": {
       "type": "string",
       "enum": [
        "vendor.profile.updated",
        "vendor.catalog.updated",
        "vendor.order.received",
        "vendor.order.updated",
        "vendor.connection.requested",
        "vendor.connection.updated",
        "vendor.invoice.updated",
        "vendor.recall.sent"
       ]
      }
     },
     "active": {
      "type": "boolean",
      "default": true
     }
    }
   },
   "SpatialObject": {
    "type": "object",
    "required": [
     "id",
     "room",
     "x",
     "y",
     "w",
     "h",
     "rot"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "room": {
      "type": "string"
     },
     "kind": {
      "type": "string"
     },
     "label": {
      "type": "string"
     },
     "x": {
      "type": "number"
     },
     "y": {
      "type": "number"
     },
     "w": {
      "type": "number"
     },
     "h": {
      "type": "number"
     },
     "rot": {
      "type": "number"
     },
     "height": {
      "type": "number"
     },
     "material": {
      "type": "string"
     },
     "shape": {
      "type": "string"
     },
     "seats": {
      "type": "integer"
     },
     "max": {
      "type": "integer"
     },
     "asset": {
      "type": "string",
      "pattern": "^copper:v1:[a-z0-9-]{1,60}$",
      "description": "Optional immutable bundled geometry template. Saved position, rotation and size remain authoritative. Unknown templates use the ordinary geometry; this is never a URL."
     },
     "available": {
      "type": "boolean",
      "description": "Whether this table is open for the requested party and complete turn window. Rechecked atomically when booking."
     }
    }
   },
   "SpatialPlan": {
    "type": "object",
    "required": [
     "version",
     "revision",
     "layoutId",
     "layoutRevision",
     "asOf",
     "validUntil",
     "rooms",
     "tables",
     "items",
     "levels"
    ],
    "properties": {
     "version": {
      "type": "integer",
      "enum": [
       1
      ]
     },
     "revision": {
      "type": "integer"
     },
     "layoutId": {
      "type": "string"
     },
     "layoutRevision": {
      "type": "integer"
     },
     "date": {
      "type": "string",
      "format": "date"
     },
     "service": {
      "type": "string"
     },
     "time": {
      "type": "string"
     },
     "guests": {
      "type": "integer"
     },
     "asOf": {
      "type": "string",
      "format": "date-time"
     },
     "validUntil": {
      "type": "string",
      "format": "date-time",
      "description": "Refresh by this instant, including when no webhook arrives. Clock-based layout changes need no write. Hide stale availability after this instant."
     },
     "units": {
      "type": "object",
      "description": "Horizontal coordinates are legacy grid cells; cellMetres is null when unmeasured. Elevation and height use metres."
     },
     "axes": {
      "type": "object"
     },
     "levels": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "elevation": {
         "type": "number"
        }
       }
      }
     },
     "rooms": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "levelId": {
         "type": "string"
        },
        "cols": {
         "type": "number"
        },
        "rows": {
         "type": "number"
        },
        "x": {
         "type": "number"
        },
        "y": {
         "type": "number"
        },
        "height": {
         "type": "number"
        },
        "floorMaterial": {
         "type": "string",
         "enum": [
          "wood",
          "tile",
          "carpet",
          "stone"
         ]
        },
        "wallMaterial": {
         "type": "string",
         "enum": [
          "light",
          "dark",
          "brick"
         ]
        },
        "asset": {
         "type": "string",
         "pattern": "^copper:v1:[a-z0-9-]{1,60}$",
         "description": "Optional immutable bundled geometry template. Saved position, rotation and size remain authoritative. Unknown templates use the ordinary geometry; this is never a URL."
        }
       }
      }
     },
     "tables": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/SpatialObject"
      }
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/SpatialObject"
      }
     },
     "groups": {
      "type": "array",
      "items": {
       "type": "object",
       "required": [
        "id",
        "tables",
        "seats",
        "max",
        "available"
       ],
       "properties": {
        "id": {
         "type": "string"
        },
        "tables": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "seats": {
         "type": "integer"
        },
        "max": {
         "type": "integer"
        },
        "available": {
         "type": "boolean"
        }
       }
      }
     }
    }
   },
   "SpatialPrivatePlan": {
    "type": "object",
    "required": [
     "version",
     "revision",
     "layoutId",
     "layoutRevision",
     "plan",
     "asOf",
     "validUntil"
    ],
    "properties": {
     "version": {
      "type": "integer",
      "enum": [
       1
      ]
     },
     "revision": {
      "type": "integer"
     },
     "layoutId": {
      "type": "string"
     },
     "layoutRevision": {
      "type": "integer"
     },
     "plan": {
      "type": "object",
      "description": "Resolved geometry: settings, rooms, tables, items and saved groups; no waitlist, bookings, draft, team or stock records."
     },
     "levels": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "name": {
         "type": "string"
        },
        "elevation": {
         "type": "number"
        }
       }
      }
     },
     "heldTableIds": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "asOf": {
      "type": "string",
      "format": "date-time"
     },
     "validUntil": {
      "type": "string",
      "format": "date-time"
     }
    }
   }
  },
  "securitySchemes": {
   "apiKey": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "brigly_live_<32 hex>",
    "description": "Restaurant API key (brigly_live_…). Covers public and private restaurant scopes including restaurant:read, menu:read/write, reservations:read/write, waitlist:read/write, specials:read, stock:read, schedule:read, feedback:read/write, jobs:read, applications:read/write, floor:read/write, webhooks:manage."
   },
   "publicToken": {
    "type": "apiKey",
    "in": "query",
    "name": "r",
    "description": "The restaurant or supplier team workspace id. Allows public reads and guest writes (menu:read, restaurant:read, specials:read, availability, reservation booking, waitlist quote, feedback:write, floor:public, jobs:read, applications:write) at the public rate limit."
   },
   "vendorBearerAuth": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "brigly_vendor_<32 hex>",
    "description": "Supplier API key (brigly_vendor_…) created under Supplier Settings > Developer & API. Grants access to private catalog items, daily availability, purchase orders, pick lists, restaurants, standing orders, routes, invoices, recalls, and webhooks."
   },
   "vendorPublicToken": {
    "type": "apiKey",
    "in": "query",
    "name": "vendor",
    "description": "Supplier account id for opt-in public storefront websites (GET /v1/vendor, opted-in /v1/vendor/catalog, /v1/vendor/news, /v1/vendor/jobs, POST /v1/vendor/applications). Default privacy keeps catalogs, prices, and contact info off until enabled."
   }
  }
 },
 "paths": {
  "/v1": {
   "get": {
    "tags": [
     "Discovery"
    ],
    "summary": "API root discovery index",
    "operationId": "getRoot",
    "responses": {
     "200": {
      "description": "Links to OpenAPI, llms.txt, AI skill, docs, and endpoint URLs."
     }
    }
   }
  },
  "/v1/llms.txt": {
   "get": {
    "tags": [
     "Discovery"
    ],
    "summary": "Concise LLM/agent API guide (text/plain)",
    "operationId": "getLlmsTxt",
    "responses": {
     "200": {
      "description": "Markdown summary for coding agents.",
      "content": {
       "text/plain": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/v1/skill.md": {
   "get": {
    "tags": [
     "Discovery"
    ],
    "summary": "Installable AI Agent Skill definition (text/markdown)",
    "operationId": "getSkillMd",
    "responses": {
     "200": {
      "description": "SKILL.md instructions for AI coding agents.",
      "content": {
       "text/markdown": {
        "schema": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  },
  "/v1/restaurant": {
   "get": {
    "tags": [
     "Restaurant"
    ],
    "summary": "Public restaurant profile, address, hours, services and dining rules",
    "operationId": "getRestaurant",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Restaurant profile.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RestaurantProfile"
        }
       }
      }
     },
     "304": {
      "description": "Not modified."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/menu": {
   "get": {
    "tags": [
     "Menu"
    ],
    "summary": "The live menu with photos, 86 status, pairings, alternatives and allergen filtering",
    "operationId": "getMenu",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "service",
      "in": "query",
      "description": "Lunch, Dinner… Defaults to the service running or next to open at the restaurant.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "category",
      "in": "query",
      "description": "A category id or name.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "dietary",
      "in": "query",
      "description": "Keep only dishes with this dietary mark (Vegan, Gluten-free…).",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "exclude_allergens",
      "in": "query",
      "description": "Comma-separated allergen names or codes to omit (e.g. Peanuts,M).",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "q",
      "in": "query",
      "description": "Search dish name, description, or tag.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "tag",
      "in": "query",
      "description": "Filter by tag name.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "include_86",
      "in": "query",
      "description": "false leaves sold-out dishes out instead of flagging them.",
      "schema": {
       "type": "boolean",
       "default": true
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Categories, dishes, modifiers.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Menu"
        }
       }
      }
     },
     "304": {
      "description": "Not modified."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/menu/items": {
   "get": {
    "tags": [
     "Menu"
    ],
    "summary": "The menu as one flat list with allergen/search filtering",
    "operationId": "getMenuItems",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "service",
      "in": "query",
      "description": "Lunch, Dinner… Defaults to the service running or next to open at the restaurant.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "category",
      "in": "query",
      "description": "A category id or name.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "dietary",
      "in": "query",
      "description": "Keep only dishes with this dietary mark.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "exclude_allergens",
      "in": "query",
      "description": "Comma-separated allergens to exclude.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "q",
      "in": "query",
      "description": "Search dish name, description, or tag.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "tag",
      "in": "query",
      "description": "Filter by tag name.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "include_86",
      "in": "query",
      "description": "false leaves sold-out dishes out.",
      "schema": {
       "type": "boolean",
       "default": true
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Dishes with their category name.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MenuItems"
        }
       }
      }
     },
     "304": {
      "description": "Not modified."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/menu/items/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "r",
     "in": "query",
     "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "service",
     "in": "query",
     "description": "Lunch, Dinner… Defaults to the service running or next to open at the restaurant.",
     "schema": {
      "type": "string"
     }
    }
   ],
   "get": {
    "tags": [
     "Menu"
    ],
    "summary": "Single dish details with photo, allergens, pairings and live availability",
    "operationId": "getMenuItem",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "responses": {
     "200": {
      "description": "Dish detail.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MenuItem"
        }
       }
      }
     },
     "304": {
      "description": "Not modified."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/menu/items/{id}/limit": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    }
   ],
   "patch": {
    "tags": [
     "Menu"
    ],
    "summary": "Set or clear remaining portions on a dish (menu:write bearer key)",
    "operationId": "setMenuItemLimit",
    "security": [
     {
      "apiKey": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PortionLimitInput"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Updated portion limit."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/menu/86": {
   "get": {
    "tags": [
     "Menu"
    ],
    "summary": "What is sold out right now",
    "operationId": "get86",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "service",
      "in": "query",
      "description": "Lunch, Dinner… Defaults to the service running or next to open at the restaurant.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Dishes and ingredients off, and what they take down.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EightySix"
        }
       }
      }
     },
     "304": {
      "description": "Not modified."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "Menu"
    ],
    "summary": "Mark a dish or ingredient 86’d (menu:write bearer key)",
    "operationId": "mark86",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "description": "Unique client token (1 to 128 chars) for safely retrying POST writes within 24 hours.",
      "schema": {
       "type": "string",
       "maxLength": 128
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EightySixInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "86 entry created."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/menu/86/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    }
   ],
   "delete": {
    "tags": [
     "Menu"
    ],
    "summary": "Restore an 86’d dish or ingredient back onto the menu (menu:write bearer key)",
    "operationId": "restore86",
    "security": [
     {
      "apiKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Restored to available."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/reservations/availability": {
   "get": {
    "tags": [
     "Reservations"
    ],
    "summary": "Free time slots for a party",
    "operationId": "getAvailability",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "date",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      },
      "required": true
     },
     {
      "name": "guests",
      "in": "query",
      "description": "1 to 20",
      "schema": {
       "type": "integer"
      },
      "required": true
     },
     {
      "name": "service",
      "in": "query",
      "description": "Lunch, Dinner… Defaults to the service running or next to open at the restaurant.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "duration",
      "in": "query",
      "description": "Turn time in minutes; defaults to the restaurant’s.",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "step",
      "in": "query",
      "description": "15, 30 or 60 minutes between slots (default 30).",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "X-Brigly-Membership-Access",
      "in": "header",
      "schema": {
       "type": "string",
       "pattern": "^[a-f0-9]{64}$"
      },
      "description": "Optional membership secret to check the earlier window and protected tables."
     }
    ],
    "responses": {
     "200": {
      "description": "Slots across the service with rooms and suggested tables.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AvailabilityResponse"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/reservations": {
   "get": {
    "tags": [
     "Reservations"
    ],
    "summary": "List reservations across dates and statuses (reservations:read bearer key)",
    "operationId": "listReservations",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "date",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "from",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "to",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "service",
      "in": "query",
      "description": "Lunch, Dinner… Defaults to the service running or next to open at the restaurant.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "status",
      "in": "query",
      "description": "Filter status.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "source",
      "in": "query",
      "description": "Filter source (API, Phone, Walk-in…).",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated bookings.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReservationsList"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "Reservations"
    ],
    "summary": "Book a table, optionally with the meal pre-ordered",
    "operationId": "createReservation",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "description": "Unique client token (1 to 128 chars) for safely retrying POST writes within 24 hours.",
      "schema": {
       "type": "string",
       "maxLength": 128
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReservationInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "The confirmed booking with its table, pre-orders and manage key.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Reservation"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/reservations/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "r",
     "in": "query",
     "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "key",
     "in": "query",
     "description": "The booking’s manage key (public token callers).",
     "schema": {
      "type": "string"
     }
    }
   ],
   "get": {
    "tags": [
     "Reservations"
    ],
    "summary": "Read a booking",
    "operationId": "getReservation",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "responses": {
     "200": {
      "description": "The booking.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Reservation"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "Reservations"
    ],
    "summary": "Change a booking (time, party, note, pre-orders, or status with bearer key)",
    "operationId": "updateReservation",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReservationPatch"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The booking after the change.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Reservation"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "Reservations"
    ],
    "summary": "Cancel a booking",
    "operationId": "cancelReservation",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "responses": {
     "200": {
      "description": "The cancelled booking.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Reservation"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/waitlist/quote": {
   "get": {
    "tags": [
     "Waitlist"
    ],
    "summary": "Estimated walk-in wait time quote",
    "operationId": "getWaitlistQuote",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "date",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "service",
      "in": "query",
      "description": "Lunch, Dinner… Defaults to the service running or next to open at the restaurant.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "guests",
      "in": "query",
      "description": "Party size 1 to 20",
      "schema": {
       "type": "integer",
       "default": 2
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Wait quote and queue size.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WaitlistQuote"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/waitlist": {
   "get": {
    "tags": [
     "Waitlist"
    ],
    "summary": "List current waitlist parties (waitlist:read bearer key)",
    "operationId": "listWaitlist",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "date",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "service",
      "in": "query",
      "description": "Lunch, Dinner… Defaults to the service running or next to open at the restaurant.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "status",
      "in": "query",
      "description": "waiting, seated, or left.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Waitlist entries."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "Waitlist"
    ],
    "summary": "Add a party to the waitlist (waitlist:write bearer key)",
    "operationId": "addWaitlist",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "description": "Unique client token (1 to 128 chars) for safely retrying POST writes within 24 hours.",
      "schema": {
       "type": "string",
       "maxLength": 128
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WaitlistInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Created waitlist entry.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WaitlistEntry"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/waitlist/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "reason",
     "in": "query",
     "description": "Optional reason for leaving.",
     "schema": {
      "type": "string"
     }
    }
   ],
   "delete": {
    "tags": [
     "Waitlist"
    ],
    "summary": "Remove a party from the waitlist (waitlist:write bearer key)",
    "operationId": "leaveWaitlist",
    "security": [
     {
      "apiKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Removed waitlist entry.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/WaitlistEntry"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/specials": {
   "get": {
    "tags": [
     "Specials"
    ],
    "summary": "Today’s specials, happy hours and events",
    "operationId": "getSpecials",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "date",
      "in": "query",
      "description": "YYYY-MM-DD; defaults to today.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "service",
      "in": "query",
      "description": "Lunch, Dinner… Defaults to the service running or next to open at the restaurant.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "kind",
      "in": "query",
      "description": "special, happy_hour or event.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "By kind.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Specials"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/happy-hours": {
   "get": {
    "tags": [
     "Specials"
    ],
    "summary": "Happy hours from a day on",
    "operationId": "getHappyHours",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "from",
      "in": "query",
      "description": "YYYY-MM-DD; defaults to today.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Windows, terms and whether one runs right now.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HappyHours"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/events": {
   "get": {
    "tags": [
     "Specials"
    ],
    "summary": "Upcoming public events",
    "operationId": "getEvents",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "from",
      "in": "query",
      "description": "YYYY-MM-DD; defaults to today.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Event details and links to the public events page. Retained ticket fields are inactive.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Events"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/events/{id}/reservations": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    }
   ],
   "get": {
    "tags": [
     "Specials"
    ],
    "summary": "List bookings for a specific event (reservations:read bearer key)",
    "operationId": "listEventReservations",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "description": "Filter status.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Event reservations list."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "Specials"
    ],
    "summary": "Take places at an event",
    "operationId": "createEventReservation",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "description": "Unique client token (1 to 128 chars) for safely retrying POST writes within 24 hours.",
      "schema": {
       "type": "string",
       "maxLength": 128
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EventReservationInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "The reservation, with the key to read or cancel it.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EventReservation"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/events/reservations/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "r",
     "in": "query",
     "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "key",
     "in": "query",
     "description": "The manage key returned when the places were taken; also accepted as X-Brigly-Manage-Key.",
     "schema": {
      "type": "string"
     }
    }
   ],
   "get": {
    "tags": [
     "Specials"
    ],
    "summary": "An event reservation",
    "operationId": "getEventReservation",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "responses": {
     "200": {
      "description": "The reservation.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EventReservation"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "Specials"
    ],
    "summary": "Cancel an event reservation",
    "operationId": "cancelEventReservation",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "responses": {
     "200": {
      "description": "The reservation, now cancelled.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/EventReservation"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/catering": {
   "get": {
    "tags": [
     "Requests"
    ],
    "summary": "Catering and private dining the restaurant offers",
    "operationId": "getCatering",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "channel",
      "in": "query",
      "description": "catering or private-event; both when left out.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The offers that take requests today.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CateringOffers"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/catering/requests": {
   "get": {
    "tags": [
     "Requests"
    ],
    "summary": "List catering and private-dining inquiries (reservations:read bearer key)",
    "operationId": "listCateringRequests",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "channel",
      "in": "query",
      "description": "catering or private-event.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "status",
      "in": "query",
      "description": "requested, quoted, accepted, declined, cancelled.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated catering inquiries."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "Requests"
    ],
    "summary": "Send a catering or private dining request",
    "operationId": "createCateringRequest",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "description": "Unique client token (1 to 128 chars) for safely retrying POST writes within 24 hours.",
      "schema": {
       "type": "string",
       "maxLength": 128
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CateringRequestInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "The request as the restaurant received it, with the key to follow or withdraw it.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CateringRequest"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/catering/requests/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "r",
     "in": "query",
     "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "key",
     "in": "query",
     "description": "The manage key returned when the request was sent; also accepted as X-Brigly-Manage-Key.",
     "schema": {
      "type": "string"
     }
    }
   ],
   "get": {
    "tags": [
     "Requests"
    ],
    "summary": "Where a request stands",
    "operationId": "getCateringRequest",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "responses": {
     "200": {
      "description": "The request, its status and the quote the restaurant offered.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CateringRequest"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "Requests"
    ],
    "summary": "Withdraw a request",
    "operationId": "cancelCateringRequest",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "responses": {
     "200": {
      "description": "The request, now cancelled.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CateringRequest"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/memberships": {
   "get": {
    "tags": [
     "Requests"
    ],
    "summary": "The membership plans the restaurant offers",
    "operationId": "getMemberships",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Plans with their price and what each gives. No member data.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Memberships"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/memberships/requests": {
   "get": {
    "tags": [
     "Requests"
    ],
    "summary": "List membership join requests (reservations:read bearer key)",
    "operationId": "listMembershipRequests",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "planId",
      "in": "query",
      "description": "Filter to one plan.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "status",
      "in": "query",
      "description": "waiting, accepted, declined, withdrawn.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated membership requests."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "Requests"
    ],
    "summary": "Ask to join a membership plan",
    "operationId": "createMembershipRequest",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "description": "Unique client token (1 to 128 chars) for safely retrying POST writes within 24 hours.",
      "schema": {
       "type": "string",
       "maxLength": 128
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MembershipRequestInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "The request as the restaurant received it, waiting for its answer, with the key to follow or withdraw it.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MembershipRequest"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/memberships/requests/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "r",
     "in": "query",
     "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "key",
     "in": "query",
     "description": "The manage key returned when the request was sent; also accepted as X-Brigly-Manage-Key.",
     "schema": {
      "type": "string"
     }
    }
   ],
   "get": {
    "tags": [
     "Requests"
    ],
    "summary": "Where a membership request stands",
    "operationId": "getMembershipRequest",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "responses": {
     "200": {
      "description": "The request and its status.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MembershipRequest"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "Requests"
    ],
    "summary": "Withdraw a membership request",
    "operationId": "cancelMembershipRequest",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "responses": {
     "200": {
      "description": "The request, withdrawn if it was still waiting.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MembershipRequest"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/stock/items": {
   "get": {
    "tags": [
     "Operations"
    ],
    "summary": "List inventory items and par levels (stock:read bearer key)",
    "operationId": "listStockItems",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "category",
      "in": "query",
      "description": "Filter category.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "low_stock",
      "in": "query",
      "description": "true for below-par items only.",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "q",
      "in": "query",
      "description": "Search SKU or name.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "include_inactive",
      "in": "query",
      "description": "Include inactive items.",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated stock items."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/stock/orders": {
   "get": {
    "tags": [
     "Operations"
    ],
    "summary": "List supplier purchase orders (stock:read bearer key)",
    "operationId": "listStockOrders",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "description": "Filter PO status.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "from",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "to",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated purchase orders."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/schedule": {
   "get": {
    "tags": [
     "Operations"
    ],
    "summary": "Published staff shifts (schedule:read bearer key)",
    "operationId": "getSchedule",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "from",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "to",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Published shifts."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/briefings": {
   "get": {
    "tags": [
     "Operations"
    ],
    "summary": "Approved service briefings (schedule:read bearer key)",
    "operationId": "getBriefings",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "date",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "service",
      "in": "query",
      "description": "Lunch, Dinner… Defaults to the service running or next to open at the restaurant.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Approved service briefings."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/feedback": {
   "get": {
    "tags": [
     "Feedback"
    ],
    "summary": "List guest feedback (feedback:read bearer key)",
    "operationId": "listFeedback",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "handled",
      "in": "query",
      "description": "true or false.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "min_rating",
      "in": "query",
      "description": "Minimum star rating 1 to 5.",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "max_rating",
      "in": "query",
      "description": "Maximum star rating 1 to 5.",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated guest feedback."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "Feedback"
    ],
    "summary": "Submit guest feedback (public token or feedback:write key)",
    "operationId": "submitFeedback",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "description": "Unique client token (1 to 128 chars) for safely retrying POST writes within 24 hours.",
      "schema": {
       "type": "string",
       "maxLength": 128
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/FeedbackInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Saved feedback.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/GuestFeedback"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/jobs": {
   "get": {
    "tags": [
     "Jobs"
    ],
    "summary": "Open roles for a restaurant or supplier team",
    "operationId": "getJobs",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "station",
      "in": "query",
      "description": "Filter by station or role name.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "type",
      "in": "query",
      "description": "Filter by employment type (Full-time, Part-time, Seasonal, Contractor).",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Whether online applications are open, intro copy and open roles with pay and screening questions.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobsResponse"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/applications": {
   "get": {
    "tags": [
     "Jobs"
    ],
    "summary": "Submitted job applications (bearer API key only)",
    "operationId": "listApplications",
    "security": [
     {
      "apiKey": []
     }
    ],
    "parameters": [
     {
      "name": "jobId",
      "in": "query",
      "description": "Filter to one job id.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "status",
      "in": "query",
      "description": "Filter by stage (new, reviewing, interview, offered, hired, declined, withdrawn).",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Applications submitted for the workspace. Requires applications:read.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ApplicationsResponse"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "Jobs"
    ],
    "summary": "Apply for an open role",
    "operationId": "submitApplication",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "description": "Unique client token (1 to 128 chars) for safely retrying POST writes within 24 hours.",
      "schema": {
       "type": "string",
       "maxLength": 128
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/JobApplicationInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "The saved application with the manage key and link to check status or withdraw.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobApplication"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/applications/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "r",
     "in": "query",
     "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "key",
     "in": "query",
     "description": "The application’s manage key (public token callers); also accepted as X-Brigly-Manage-Key.",
     "schema": {
      "type": "string"
     }
    }
   ],
   "get": {
    "tags": [
     "Jobs"
    ],
    "summary": "Check an application’s status or inspect an application",
    "operationId": "getApplication",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "responses": {
     "200": {
      "description": "Status view with the manage key, or full details with an applications:read API key.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobApplication"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "Jobs"
    ],
    "summary": "Withdraw an active application",
    "operationId": "withdrawApplication",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "responses": {
     "200": {
      "description": "The withdrawn application, with personal details cleared.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobApplication"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/webhooks": {
   "get": {
    "tags": [
     "Webhooks"
    ],
    "summary": "List webhooks",
    "operationId": "listWebhooks",
    "security": [
     {
      "apiKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Registered webhooks.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "webhooks": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Webhook"
           }
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "Webhooks"
    ],
    "summary": "Register a webhook",
    "operationId": "createWebhook",
    "security": [
     {
      "apiKey": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "The webhook with its signing secret, shown once.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Webhook"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/webhooks/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    }
   ],
   "patch": {
    "tags": [
     "Webhooks"
    ],
    "summary": "Update a webhook URL, subscribed events, or active state",
    "operationId": "updateWebhook",
    "security": [
     {
      "apiKey": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookPatch"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Updated webhook.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Webhook"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "Webhooks"
    ],
    "summary": "Remove a webhook",
    "operationId": "deleteWebhook",
    "security": [
     {
      "apiKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Removed.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "ok": {
           "type": "boolean"
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/webhooks/{id}/ping": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    }
   ],
   "post": {
    "tags": [
     "Webhooks"
    ],
    "summary": "Send a signed test ping delivery to a webhook",
    "operationId": "pingWebhook",
    "security": [
     {
      "apiKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Test ping queued."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/webhooks/{id}/deliveries": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "limit",
     "in": "query",
     "description": "Maximum items per page.",
     "schema": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200
     }
    },
    {
     "name": "cursor",
     "in": "query",
     "description": "Opaque pagination cursor returned in nextCursor.",
     "schema": {
      "type": "string"
     }
    }
   ],
   "get": {
    "tags": [
     "Webhooks"
    ],
    "summary": "List delivery attempts for a webhook",
    "operationId": "listWebhookDeliveries",
    "security": [
     {
      "apiKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Webhook delivery history."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/webhooks/{id}/deliveries/{deliveryId}/replay": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "deliveryId",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    }
   ],
   "post": {
    "tags": [
     "Webhooks"
    ],
    "summary": "Replay a failed or stopped webhook delivery while retained",
    "operationId": "replayWebhookDelivery",
    "security": [
     {
      "apiKey": []
     }
    ],
    "responses": {
     "200": {
      "description": "Delivery queued for replay."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/floor-plan": {
   "get": {
    "tags": [
     "Floor plan"
    ],
    "summary": "Published restaurant geometry and table availability",
    "description": "Opt-in projection of selected rooms and objects. Refresh every 10 seconds, before validUntil, or on floor.updated. Supports ETag/If-None-Match. Use private=true with a floor:read bearer key for private geometry.",
    "operationId": "getFloorPlan",
    "security": [
     {
      "apiKey": []
     },
     {
      "publicToken": []
     }
    ],
    "parameters": [
     {
      "name": "r",
      "in": "query",
      "description": "The restaurant id, for calls without an API key (the public token). Ignored when a key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "date",
      "in": "query",
      "description": "Restaurant service day, YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "service",
      "in": "query",
      "description": "Lunch, Dinner… Defaults to the service running or next to open at the restaurant.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "time",
      "in": "query",
      "description": "Local arrival time, HH:MM",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "guests",
      "in": "query",
      "description": "Party size, defaults to 2",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 20
      }
     },
     {
      "name": "duration",
      "in": "query",
      "description": "Turn duration in minutes",
      "schema": {
       "type": "integer",
       "minimum": 30,
       "maximum": 360
      }
     },
     {
      "name": "private",
      "in": "query",
      "description": "Requires floor:read; returns private geometry only",
      "schema": {
       "type": "boolean"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The current published geometry and anonymous availability.",
      "content": {
       "application/json": {
        "schema": {
         "oneOf": [
          {
           "$ref": "#/components/schemas/SpatialPlan"
          },
          {
           "$ref": "#/components/schemas/SpatialPrivatePlan"
          }
         ]
        }
       }
      }
     },
     "304": {
      "description": "Unchanged projection."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "Floor plan"
    ],
    "summary": "Change a restaurant layout through its shared reducer",
    "description": "Requires a floor:write bearer key.",
    "operationId": "changeFloorPlan",
    "security": [
     {
      "apiKey": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "type"
        ],
        "properties": {
         "type": {
          "type": "string"
         },
         "layoutId": {
          "type": "string"
         },
         "baseRevision": {
          "type": "integer"
         },
         "draftRevision": {
          "type": "integer"
         },
         "revision": {
          "type": "integer"
         },
         "restoreRevision": {
          "type": "integer"
         },
         "edit": {
          "type": "object"
         },
         "edits": {
          "type": "array",
          "minItems": 1,
          "maxItems": 50,
          "items": {
           "type": "object"
          }
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "The new restaurant revision and affected layout id."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Supplier profile, delivery schedule, cutoff rules and privacy flags",
    "operationId": "getVendorProfile",
    "security": [
     {
      "vendorBearerAuth": []
     },
     {
      "vendorPublicToken": []
     }
    ],
    "parameters": [
     {
      "name": "vendor",
      "in": "query",
      "description": "The supplier id, for unauthenticated calls to public supplier endpoints. Ignored when a bearer key is sent.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Supplier profile.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VendorProfile"
        }
       }
      }
     },
     "304": {
      "description": "Not modified."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/catalog": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Supplier product catalog (public opt-in or bearer key)",
    "operationId": "listVendorCatalog",
    "security": [
     {
      "vendorBearerAuth": []
     },
     {
      "vendorPublicToken": []
     }
    ],
    "parameters": [
     {
      "name": "vendor",
      "in": "query",
      "description": "The supplier id, for unauthenticated calls to public supplier endpoints. Ignored when a bearer key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "category",
      "in": "query",
      "description": "Filter category.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "q",
      "in": "query",
      "description": "Search product name, SKU, pack or description.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "available",
      "in": "query",
      "description": "true or false.",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "featured",
      "in": "query",
      "description": "true for featured products.",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "include_history",
      "in": "query",
      "description": "Include priceHistory with bearer key.",
      "schema": {
       "type": "boolean"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated supplier catalog. Returns 403 catalog_private unless opted in or using a bearer key.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VendorCatalog"
        }
       }
      }
     },
     "304": {
      "description": "Not modified."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "Vendor"
    ],
    "summary": "Create a catalog product (vendor.catalog:write bearer key)",
    "operationId": "createVendorCatalogItem",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "description": "Unique client token (1 to 128 chars) for safely retrying POST writes within 24 hours.",
      "schema": {
       "type": "string",
       "maxLength": 128
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VendorCatalogInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Created product.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VendorCatalogItem"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/catalog/availability": {
   "put": {
    "tags": [
     "Vendor"
    ],
    "summary": "Set daily stock counts for today or tomorrow (vendor.catalog:write bearer key)",
    "operationId": "setVendorAvailability",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VendorAvailabilityInput"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Updated daily stock counts."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/catalog/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "description": "Product document id or SKU.",
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "vendor",
     "in": "query",
     "description": "The supplier id, for unauthenticated calls to public supplier endpoints. Ignored when a bearer key is sent.",
     "schema": {
      "type": "string"
     }
    }
   ],
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Single supplier catalog product by id or SKU",
    "operationId": "getVendorCatalogItem",
    "security": [
     {
      "vendorBearerAuth": []
     },
     {
      "vendorPublicToken": []
     }
    ],
    "parameters": [
     {
      "name": "include_history",
      "in": "query",
      "description": "Include priceHistory with bearer key.",
      "schema": {
       "type": "boolean"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Product details.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VendorCatalogItem"
        }
       }
      }
     },
     "304": {
      "description": "Not modified."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "Vendor"
    ],
    "summary": "Update a catalog product (vendor.catalog:write bearer key)",
    "operationId": "updateVendorCatalogItem",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VendorCatalogInput"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Updated product.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VendorCatalogItem"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "Vendor"
    ],
    "summary": "Delete a catalog product (vendor.catalog:write bearer key)",
    "operationId": "deleteVendorCatalogItem",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "responses": {
     "200": {
      "description": "Deleted."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/news": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Supplier seasonal announcement note",
    "operationId": "getVendorNews",
    "security": [
     {
      "vendorBearerAuth": []
     },
     {
      "vendorPublicToken": []
     }
    ],
    "parameters": [
     {
      "name": "vendor",
      "in": "query",
      "description": "The supplier id, for unauthenticated calls to public supplier endpoints. Ignored when a bearer key is sent.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Latest announcement note.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VendorNews"
        }
       }
      }
     },
     "304": {
      "description": "Not modified."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "put": {
    "tags": [
     "Vendor"
    ],
    "summary": "Update the announcement sent to restaurants and websites (vendor.catalog:write bearer key)",
    "operationId": "updateVendorNews",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "news"
        ],
        "properties": {
         "news": {
          "type": "string",
          "maxLength": 280
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Updated announcement.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VendorNews"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/orders": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "List incoming restaurant purchase orders (vendor.orders:read bearer key)",
    "operationId": "listVendorOrders",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "description": "Exact status or open / closed.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "delivery_date",
      "in": "query",
      "description": "YYYY-MM-DD",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "restaurant_id",
      "in": "query",
      "description": "Filter to one connected restaurant.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated purchase orders."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/orders/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "description": "Order id or PO number.",
     "schema": {
      "type": "string"
     }
    }
   ],
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Single purchase order details with customer card (vendor.orders:read bearer key)",
    "operationId": "getVendorOrder",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "responses": {
     "200": {
      "description": "Order details.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/VendorOrder"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "patch": {
    "tags": [
     "Vendor"
    ],
    "summary": "Acknowledge, decline, or advance order fulfillment status (vendor.orders:write bearer key)",
    "operationId": "updateVendorOrderStatus",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VendorOrderStatusInput"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Updated purchase order."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/pick-list": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Aggregated warehouse pick list for a delivery date (vendor.orders:read bearer key)",
    "operationId": "getVendorPickList",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "parameters": [
     {
      "name": "delivery_date",
      "in": "query",
      "description": "YYYY-MM-DD; defaults to supplier today.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Pick list grouped by SKU with today counts and shortages."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/restaurants": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Connected restaurants, terms, credit holds and price overrides (vendor.restaurants:read bearer key)",
    "operationId": "listVendorRestaurants",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "description": "requested, connected, declined, suspended, disconnected.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated restaurant connections."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/standing-orders": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Recurring standing orders from connected restaurants (vendor.restaurants:read bearer key)",
    "operationId": "listVendorStandingOrders",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated standing orders."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/routes": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Delivery routes, weekdays, drivers and stop sequences (vendor.orders:read bearer key)",
    "operationId": "listVendorRoutes",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "parameters": [
     {
      "name": "include_archived",
      "in": "query",
      "description": "Include archived routes.",
      "schema": {
       "type": "boolean"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Delivery routes."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/invoices": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Tracked invoices with version and payment status (vendor.invoices:read bearer key)",
    "operationId": "listVendorInvoices",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "parameters": [
     {
      "name": "status",
      "in": "query",
      "description": "draft, issued, approved, disputed, void, paid, credited.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "restaurant_id",
      "in": "query",
      "description": "Filter by restaurant.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated tracked invoices. Brigly never processes invoice payments."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/recalls": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Sent batch recalls and restaurant acknowledgement status (vendor.recalls:read bearer key)",
    "operationId": "listVendorRecalls",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "description": "Maximum items per page.",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 200
      }
     },
     {
      "name": "cursor",
      "in": "query",
      "description": "Opaque pagination cursor returned in nextCursor.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Paginated recalls."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/jobs": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "Open roles on the supplier’s team",
    "operationId": "getVendorJobs",
    "security": [
     {
      "vendorBearerAuth": []
     },
     {
      "vendorPublicToken": []
     }
    ],
    "parameters": [
     {
      "name": "vendor",
      "in": "query",
      "description": "The supplier id, for unauthenticated calls to public supplier endpoints. Ignored when a bearer key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "type",
      "in": "query",
      "description": "Filter by employment type.",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Open roles for this supplier.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobsResponse"
        }
       }
      }
     },
     "304": {
      "description": "Not modified."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/applications": {
   "post": {
    "tags": [
     "Vendor"
    ],
    "summary": "Submit a job application to a supplier team",
    "operationId": "submitVendorApplication",
    "security": [
     {
      "vendorBearerAuth": []
     },
     {
      "vendorPublicToken": []
     }
    ],
    "parameters": [
     {
      "name": "vendor",
      "in": "query",
      "description": "The supplier id, for unauthenticated calls to public supplier endpoints. Ignored when a bearer key is sent.",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "description": "Unique client token (1 to 128 chars) for safely retrying POST writes within 24 hours.",
      "schema": {
       "type": "string",
       "maxLength": 128
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/JobApplicationInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Saved application with manageKey.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/JobApplication"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/webhooks": {
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "List supplier webhooks (vendor.webhooks:manage bearer key)",
    "operationId": "listVendorWebhooks",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "responses": {
     "200": {
      "description": "Registered supplier webhooks."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "Vendor"
    ],
    "summary": "Register a signed supplier webhook (vendor.webhooks:manage bearer key)",
    "operationId": "createVendorWebhook",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VendorWebhookInput"
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Created webhook with one-time signing secret.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Webhook"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/webhooks/{id}": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    }
   ],
   "patch": {
    "tags": [
     "Vendor"
    ],
    "summary": "Update a supplier webhook",
    "operationId": "updateVendorWebhook",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookPatch"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Updated webhook.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Webhook"
        }
       }
      }
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "delete": {
    "tags": [
     "Vendor"
    ],
    "summary": "Delete a supplier webhook",
    "operationId": "deleteVendorWebhook",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "responses": {
     "200": {
      "description": "Deleted."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/webhooks/{id}/ping": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    }
   ],
   "post": {
    "tags": [
     "Vendor"
    ],
    "summary": "Send a test ping to a supplier webhook",
    "operationId": "pingVendorWebhook",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "responses": {
     "200": {
      "description": "Test ping queued."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/webhooks/{id}/deliveries": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "limit",
     "in": "query",
     "description": "Maximum items per page.",
     "schema": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200
     }
    },
    {
     "name": "cursor",
     "in": "query",
     "description": "Opaque pagination cursor returned in nextCursor.",
     "schema": {
      "type": "string"
     }
    }
   ],
   "get": {
    "tags": [
     "Vendor"
    ],
    "summary": "List delivery attempts for a supplier webhook",
    "operationId": "listVendorWebhookDeliveries",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "responses": {
     "200": {
      "description": "Webhook delivery history."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/v1/vendor/webhooks/{id}/deliveries/{deliveryId}/replay": {
   "parameters": [
    {
     "name": "id",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    },
    {
     "name": "deliveryId",
     "in": "path",
     "required": true,
     "schema": {
      "type": "string"
     }
    }
   ],
   "post": {
    "tags": [
     "Vendor"
    ],
    "summary": "Replay a failed or stopped supplier webhook delivery",
    "operationId": "replayVendorWebhookDelivery",
    "security": [
     {
      "vendorBearerAuth": []
     }
    ],
    "responses": {
     "200": {
      "description": "Delivery queued for replay."
     },
     "400": {
      "description": "The request could not be used. The error says what to fix.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "No key, a revoked key, or a key that is not valid.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "403": {
      "description": "The key lacks the permission, the resource is private, or the manage key does not match.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "No such restaurant, supplier, booking, or resource.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "409": {
      "description": "Resource state conflict or idempotency body mismatch.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded. Check X-RateLimit-Reset and Retry-After.",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  }
 },
 "webhooks": {
  "menu.updated": {
   "post": {
    "summary": "The menu or its availability changed",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Any 2xx acknowledges the delivery."
     }
    }
   }
  },
  "item.86ed": {
   "post": {
    "summary": "A dish or ingredient went on or off the 86 board",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "restaurant.updated": {
   "post": {
    "summary": "Restaurant profile, address or service hours changed",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "reservation.created": {
   "post": {
    "summary": "A booking was made",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "reservation.updated": {
   "post": {
    "summary": "A booking changed",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "reservation.cancelled": {
   "post": {
    "summary": "A booking was cancelled or marked a no-show",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "specials.updated": {
   "post": {
    "summary": "Specials, happy hours or events changed",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "floor.updated": {
   "post": {
    "summary": "The floor layout, schedule or public visibility changed",
    "description": "Contains restaurantId, revision, published and change only. Refetch the projection; scheduled transitions are covered by validUntil.",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Any 2xx acknowledges the delivery."
     }
    }
   }
  },
  "catering.requested": {
   "post": {
    "summary": "A catering or private-dining inquiry was submitted",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "catering.updated": {
   "post": {
    "summary": "A catering inquiry changed or was withdrawn",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "membership.requested": {
   "post": {
    "summary": "A guest requested to join a membership plan",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "membership.updated": {
   "post": {
    "summary": "A membership join request was answered or withdrawn",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "jobs.updated": {
   "post": {
    "summary": "Open roles or hiring settings changed",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "application.received": {
   "post": {
    "summary": "A candidate submitted a job application",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "application.updated": {
   "post": {
    "summary": "An application moved stages, was hired or was withdrawn",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "feedback.received": {
   "post": {
    "summary": "A guest submitted ratings or feedback",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "vendor.profile.updated": {
   "post": {
    "summary": "Supplier profile, delivery schedule, cutoff or logo changed",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "vendor.catalog.updated": {
   "post": {
    "summary": "Supplier catalog items, prices, availability counts or announcement changed",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "vendor.order.received": {
   "post": {
    "summary": "A connected restaurant submitted a new purchase order",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "vendor.order.updated": {
   "post": {
    "summary": "A purchase order was acknowledged, proposed, dispatched, delivered, or declined",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "vendor.connection.requested": {
   "post": {
    "summary": "A restaurant requested to connect to this supplier catalog",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "vendor.connection.updated": {
   "post": {
    "summary": "A restaurant connection status or agreed pricing changed",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "vendor.invoice.updated": {
   "post": {
    "summary": "A tracked invoice was created, issued, refreshed, approved, disputed, marked paid, or voided",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  },
  "vendor.recall.sent": {
   "post": {
    "summary": "A lot/batch recall notice was sent to affected restaurants",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WebhookDelivery"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Acknowledged."
     }
    }
   }
  }
 }
}
