{
  "openapi": "3.0.3",
  "info": {
    "title": "Streamline API",
    "version": "1.0.0",
    "description": "**Streamline** is a multi-tenant booking & operations platform for service businesses\n(barbershops, salons, clinics and similar). This reference documents **every** HTTP\nendpoint, the request validation, the response envelopes, the permission model, and\nthe complete database schema.\n\n> \ud83d\uddc4 **[Open the full Database Schema \u2192](./database.html)** \u2014 all 75 tables, every\n> column, type, default, nullability and foreign key.\n\n---\n\n## API surfaces & base URLs\n\nThe API is split into four route surfaces, each mounted under its own prefix and a\nversion segment (`v1`). Pick the one matching the consumer:\n\n| Surface | Prefix | Audience |\n|---|---|---|\n| **General** | `/api/v1` | Shared lookups, multi-role auth, platform admin of geography/catalog/wallets |\n| **Admin** | `/admin/v1` | Back-office dashboard (vendors, packages, reports, statistics, content) |\n| **Vendor** | `/vendor/v1` | Vendor dashboard (branches, employees, services, bookings, invoices, ZATCA\u2026) |\n| **Customer** | `/customer/v1` | Customer storefront & app (browse, checkout, bookings, reviews) |\n\nSet the **server** (top of this page) to your API host. Every path already includes\nits surface prefix, e.g. `POST {baseUrl}/vendor/v1/bookings`.\n\n---\n\n## Authentication\n\nAuth uses **Laravel Passport personal-access tokens**.\n\n1. Call a **login** endpoint (`/api/v1/login`, `/admin/v1/login`,\n   `/vendor/v1/login`, `/customer/v1/login`). On success the user object in `data`\n   contains an **`access_token`** (the plain-text bearer token, created via\n   `createToken('authToken')`).\n2. Send it on every authenticated request:\n\n   ```\n   Authorization: Bearer <access_token>\n   ```\n\n3. **Logout** revokes the access token and its refresh token.\n\nToken lifetime uses Passport's default (long-lived; not overridden in config).\n\n**Guard behaviour**\n\n- `auth:api` \u2014 rejects missing/invalid tokens with **HTTP 401** `{\"message\":\"Unauthenticated.\"}`.\n- **Optional auth** \u2014 several Customer endpoints accept an optional token: they work\n  for guests but personalise the response when a token is present (e.g. favourites,\n  `in_favourites`). Some also read a **`device_token`** header to associate guest\n  favourites / branch-views, and `fcm_token` for push.\n\n---\n\n## Response envelopes\n\nTwo envelope shapes exist in the codebase. Each operation below documents which one\nit returns.\n\n### 1. Standard envelope (`successResponse` / `errorResponse`) \u2014 6 keys\n\nUsed by Auth controllers and all `BaseService` (Resource-backed) controllers.\n\n```json\n{\n  \"version\": 1,\n  \"success\": true,\n  \"status\": 200,\n  \"data\": { },\n  \"message\": \"updated_successfully\",\n  \"errors\": null\n}\n```\n\n### 2. Simple envelope (`apiSuccess` / `apiFail`) \u2014 3 keys\n\nUsed by the legacy `AbstractService` CRUD controllers (most General lookups, Admin\ncontent/settings/packages, vendor subscriptions & users).\n\n```json\n{ \"success\": true, \"message\": \"success\", \"data\": { } }\n```\n\nFor these endpoints the `data` is usually a **raw model row** (the database columns),\nwhich is why each such response references the matching **database table schema**.\n\n---\n\n## Pagination & filtering\n\nList endpoints come in two flavours:\n\n**Filter-based lists** (`BaseService::getItems`, most Resource lists):\n`per_page` (default **30**), `without_pagination=true`, `page`,\n`sort[field]` + `sort[direction]`, `q` (free-text), `is_active`, plus per-resource\nfilters documented on each endpoint. The `data` is a **Laravel length-aware\npaginator** (`data.data[]` + `current_page`, `last_page`, `per_page`, `total`,\n`links`, \u2026).\n\n**Legacy paginate lists** (`AbstractService`, controllers typed `PaginateRequest`):\n`paginate` (`true`/`false`), `limit` (default 20), `offset`, `sort` (`ASC`/`DESC`),\n`field`, `deleted`, and the parallel dynamic filter arrays\n`columns[]` + `operand[]` + `column_values[]` (equal length; operands like `=`,\n`like`, `>`), plus `with[]`.\n\n---\n\n## Permissions\n\nAuthorisation uses **spatie/laravel-permission**. Protected routes declare a single\nability via middleware (`permission:`, `adminPermission:`, `generalPermission:` \u2014\nall resolve through the same check). Each endpoint below lists its\n**required permission** where applicable. Missing the ability returns:\n\n```json\n{ \"version\": 1, \"success\": false, \"status\": 403,\n  \"data\": null, \"message\": \"You Dont have Permissions\", \"errors\": null }\n```\n\n---\n\n## Errors\n\n| HTTP | When | Body |\n|---|---|---|\n| **401** | Missing/invalid token | `{\"message\":\"Unauthenticated.\"}` |\n| **401 / 422** | Validation failed | Many FormRequests override `failedValidation` to return the 6-key envelope with **401** and `message: \"Validation Error\"` (and an `errors` map). Others use Laravel's default **422** `{message, errors}`. |\n| **403** | Lacks permission | 6-key envelope, `message: \"You Dont have Permissions\"` |\n| **404** | Not found / not owned | Error envelope (some ownership checks abort 403/404) |\n\n---\n\n## Localisation\n\nSend **`Accept-Language: ar`** or **`Accept-Language: en`** (first two characters are\nread and matched against the supported locales). Bilingual fields are stored as\n`*_ar` / `*_en` and resources surface the locale-appropriate value as `name` /\n`description`.\n\n## Media\n\nImage/file fields are uploaded as **`multipart/form-data`**. Stored files are served\nfrom the `public` disk (or S3 when configured); resources return absolute URLs.\n\n---\n\n## Conventions in this reference\n\n- **Request bodies** include the exact Laravel validation rules (verbatim) in each\n  schema's description, plus typed fields where they can be inferred.\n- **`*_id` / enum fields**: enum options (e.g. `in:0,1`) are surfaced as enums.\n- Fields tagged _\"only in detail/show responses\"_ are emitted only when a resource is\n  rendered as a single record (Streamline's `BaseResource` single-vs-collection split).\n- **PDF** endpoints (invoices, reports) return `application/pdf`; **payment callbacks**\n  return `text/html`.\n- **Updates with file uploads** use Laravel's `_method: PUT` override: send a `POST` with `multipart/form-data` and a `_method=PUT` field (the frontend does this for image-bearing updates).\n- **Rate limit:** authenticated callers get **200 requests / minute** (per token); anonymous/IP-keyed callers get **60 / minute**. Exceeding it returns **HTTP 429**.\n- **Package feature gates:** some vendor endpoints are additionally gated by the subscription's `features[]` (e.g. `google_calendar`, `google_reviews`, `advanced_reports`, `zatca`) via `checkFeature:<key>` middleware \u2014 a plan without the feature gets **403** with a localized message.\n\n\n---\n\n## Vendor dashboard \u2014 role-based visibility\n\nThe **business app**'s Bookings and Reviews list views are filtered by role.\nEvery employee lands on **their own** rows by default, and only roles\nholding the `employees.list` permission can broaden the scope via a\n**Mine / All** toggle.\n\n| Role | Default scope | Sees other employees? | Mine / All toggle |\n|---|---|---|---|\n| **Owner** (the vendor account) | Everything | \u2705 | \u2014 (uses the existing employee picker, which defaults to *all*) |\n| **Admin** \u2014 has `employees.list` | Their own bookings / reviews | \u2705 via toggle | \u2705 visible |\n| **Regular staff** \u2014 no `employees.list` | Their own bookings / reviews **only** | \u274c hidden | \u2014 (locked) |\n\n- Default scope is always **\"me\"** \u2014 never the full tenant set \u2014 so a\n  newly-onboarded employee can never accidentally see a colleague's data.\n- Only **Admin** roles can flip the view to **All** via the toggle.\n  **Regular staff** don't see the toggle at all and stay locked to their\n  own rows.\n- **Owner** accounts (the vendor record itself, not an employee) skip the\n  toggle entirely and use the existing employee picker, which already\n  defaults to *all*.\n- The gate driving the toggle's visibility is the `employees.list`\n  permission. Granting it on a role automatically exposes the toggle on\n  that role's dashboard.\n",
    "contact": {
      "name": "Streamline",
      "url": "https://streamline.com.sa"
    },
    "license": {
      "name": "Proprietary \u2014 internal use only"
    }
  },
  "servers": [
    {
      "url": "https://api-staging.streamline.com.sa",
      "description": "Staging"
    },
    {
      "url": "https://api.streamline.com.sa",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "General \u00b7 Auth",
      "description": "Unified login, logout and password-reset flow. **All roles** (customer, vendor, admin, employee) authenticate against the same `/login` endpoint \u2014 the response's `data.type` field tells you which role the account belongs to. Use the returned `access_token` as `Authorization: Bearer \u2026` for every other request.\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>All four roles (customer / vendor / admin / employee) sign in through this same `/login` \u2014 the response's `data.type` is your switch.</li>\n  <li>**Vendor signup auto-seeds** five default cancellation reasons + sets the cancel-window to `0` minutes (June-2026). See **Vendor \u00b7 Cancellation Reasons** for the seed list.</li>\n</ul>\n</details>"
    },
    {
      "name": "General \u00b7 Geography",
      "description": "Reference lookups for address fields: countries, cities and districts. Read-only and public \u2014 call once when the app starts and cache locally."
    },
    {
      "name": "General \u00b7 Catalog",
      "description": "Public catalog primitives shared across all surfaces: categories, tags and currencies. Use to populate filters, dropdowns and onboarding wizards."
    },
    {
      "name": "General \u00b7 Cancellation Reasons",
      "description": "Read-only lookup of cancellation reasons surfaced when a booking is canceled. Customer- and vendor-scoped mutations live under their own *Cancellation Reasons* sections."
    },
    {
      "name": "General \u00b7 Reviews",
      "description": "Shared read endpoints for ratings & reviews (public storefront view). Writing a review happens from the customer booking screen \u2014 see **Customer \u00b7 Reviews**."
    },
    {
      "name": "General \u00b7 Settings",
      "description": "System-wide configuration exposed to clients: about, terms, privacy URLs, contact info. Pull on first launch and cache."
    },
    {
      "name": "General \u00b7 Debug",
      "description": "Health, version and server-time probes. Use for status pages and end-to-end smoke tests; not part of the production customer surface."
    },
    {
      "name": "General \u00b7 Wallets",
      "description": "Cross-role wallet balance and transaction inquiry. Role-specific top-up / payout flows live under each role's section."
    },
    {
      "name": "General \u00b7 Promo Codes",
      "description": "Validate a promo code and preview its discount before applying it at checkout. Stateless \u2014 no record is created here, just validation."
    },
    {
      "name": "Admin \u00b7 Auth",
      "description": "Admin sign-in, profile read and password change. Same `/login` endpoint as everyone else \u2014 a token is issued when the account's `type=admin`."
    },
    {
      "name": "Admin \u00b7 Packages",
      "description": "Subscription packages (vendor plans). Create, price and toggle visibility of the plans vendors can subscribe to."
    },
    {
      "name": "Admin \u00b7 Content",
      "description": "Static content surfaces (about, terms, privacy, FAQs, banners). Edits appear in the customer and vendor apps immediately."
    },
    {
      "name": "Admin \u00b7 Defaults",
      "description": "Admin-managed catalog templates: **default sections** seeded into every new vendor, and **popular services** offered by the mobile create-service picker. Simple bilingual CRUD with sort + activate toggles."
    },
    {
      "name": "Admin \u00b7 Vendors",
      "description": "List, approve, activate and deactivate vendors. The moderation entry point for onboarding."
    },
    {
      "name": "Admin \u00b7 Roles & Permissions",
      "description": "Define admin roles and the abilities each role can perform, then assign roles to admin users."
    },
    {
      "name": "Admin \u00b7 Reminders",
      "description": "System-level reminder templates (SMS / Email / WhatsApp) tied to booking events. Edit content and trigger windows here."
    },
    {
      "name": "Admin \u00b7 Users",
      "description": "Admin user CRUD \u2014 create teammates, assign roles, activate / deactivate."
    },
    {
      "name": "Admin \u00b7 Offers",
      "description": "Global promotional offers visible to all customers. Set price, eligibility and active window."
    },
    {
      "name": "Admin \u00b7 Services",
      "description": "Moderate service categories and service-level toggles across the marketplace."
    },
    {
      "name": "Admin \u00b7 Employees",
      "description": "Read-only oversight of any vendor's employees. Vendors manage their own staff under **Vendor \u00b7 Employees**."
    },
    {
      "name": "Admin \u00b7 Branches",
      "description": "Read-only oversight of any vendor's branches for moderation."
    },
    {
      "name": "Admin \u00b7 Settings",
      "description": "Platform settings: commission %, supported currencies, ZATCA toggles, etc. One-off mutations."
    },
    {
      "name": "Admin \u00b7 Integrations",
      "description": "Platform third-party integrations (WhatsApp, OurSMS, Google, Apify, Live Activity, Gemini). Credentials stored encrypted and masked in reads; toggling one on/off flips the platform behavior that depends on it."
    },
    {
      "name": "Admin \u00b7 Reports",
      "description": "Cross-vendor analytics \u2014 revenue, customers, employees, commissions. Slice with `period` + `start` / `end` query params."
    },
    {
      "name": "Admin \u00b7 Bookings",
      "description": "Read any booking on the platform with full state \u2014 helpful for support ops and audits."
    },
    {
      "name": "Admin \u00b7 Reviews",
      "description": "Cross-platform review moderation view \u2014 filter by vendor / branch / employee / rating / date with a ratings-breakdown summary."
    },
    {
      "name": "Admin \u00b7 Dashboard",
      "description": "Aggregated KPIs that drive the admin home screen."
    },
    {
      "name": "Vendor \u00b7 Auth",
      "description": "Vendor signup (`/register`), login, profile read/edit and OTP for sensitive changes (email/phone updates).\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>On `POST /register`, the backend (June-2026) auto-creates `vendor_settings` with `booking_differance = 0` (open cancel window) and seeds the 5 default cancellation reasons.</li>\n  <li>**Vendor-owner permission bypass (June-2026):** when a request is authenticated as the vendor account itself (not an employee), the role-based permission middleware lets all `permission:*` gates through. Employee accounts still go through the normal checks.</li>\n</ul>\n</details>"
    },
    {
      "name": "Vendor \u00b7 Reports",
      "description": "Per-vendor analytics \u2014 revenue, bookings, employee commissions. Same `period` model as admin reports but auto-scoped to the signed-in vendor."
    },
    {
      "name": "Vendor \u00b7 Calendar",
      "description": "Daily/weekly bookings view powering the calendar UI. Supports drag-and-drop reschedule and home-service transit overlays."
    },
    {
      "name": "Vendor \u00b7 Google Calendar",
      "description": "Two-way Google Calendar sync for the vendor's bookings. Account-level OAuth connect/disconnect, per-employee calendar mappings, and reschedule-from-Google. **Gated by the `google_calendar` package feature** (`checkFeature` \u2192 403 when the plan doesn't include it)."
    },
    {
      "name": "Vendor \u00b7 Google Reviews",
      "description": "Google-review intelligence per branch: link a Google Place, pull rating stats + raw reviews, mine **employee mentions**, track **competitors** and AI insights. Plus a Google **Places proxy** (autocomplete/details/photo) for the branch form's \"find my business\" autofill. **Gated by the `google_reviews` package feature.**"
    },
    {
      "name": "Vendor \u00b7 Customers",
      "description": "List of customers who have booked with this vendor. Segmentation-friendly read view (with bookings count)."
    },
    {
      "name": "Vendor \u00b7 Branches",
      "description": "Branch CRUD \u2014 locations, hours, photos, sections, home-services opt-in."
    },
    {
      "name": "Vendor \u00b7 Wallet",
      "description": "Vendor wallet balance and payout history."
    },
    {
      "name": "Vendor \u00b7 Employees",
      "description": "Manage employees: create, update, activate/deactivate, working hours, services, **portfolio images**.\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>Portfolio routes (`POST /portfolio`, `/sort`, `DELETE /portfolio/{image}`, `/activate`, `/deactivate`) require the `employees.edit` permission. Staff editing their own profile bypass this \u2014 see **Vendor \u00b7 My Profile**.</li>\n  <li>Each employee carries a single free-text `bio` column (unified May-2026; previously split bio_ar / bio_en) plus the `portfolio_images` relation.</li>\n</ul>\n</details>"
    },
    {
      "name": "Vendor \u00b7 Sections",
      "description": "Organize services into branch sections. Each section has a sort order and is rendered as a row in the customer app."
    },
    {
      "name": "Vendor \u00b7 Services",
      "description": "Service catalog: create, update, price, activate/deactivate, opt-in to home delivery, set per-service home-service fee.\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>`is_home_service`, `home_service_fee` and `home_hours[]` work identically to **Vendor \u00b7 Offers** \u2014 the customer home checkout treats both interchangeably.</li>\n<li><strong>Safe deletion (Jun-2026):</strong> deleting a service that's still attached to an offer is blocked (<code>400 api.service_used_in_offer</code>). Detach it from offers first. Past bookings keep their historical line-item names.</li>\n</ul>\n</details>"
    },
    {
      "name": "Vendor \u00b7 Bookings",
      "description": "Create, update, reschedule, cancel and complete bookings from the vendor side. Captures cancellation reason and who canceled.\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>Cancellation captures three columns on `bookings`: `cancellation_reason` (free text), `canceled_by` (`customer|vendor|system`), `cancel_reason_id` (FK to `client_cancellation_reasons`).</li>\n  <li>If a cancel attempt fails the cancel-window check, the response includes `cancel_blocked_reason` plus the configured `cancel_window_minutes` so the UI can render a precise message.</li>\n</ul>\n</details>"
    },
    {
      "name": "Vendor \u00b7 Invoices",
      "description": "Read and download (PDF) the vendor's own issued invoices."
    },
    {
      "name": "Vendor \u00b7 Offers",
      "description": "Vendor-level promotional offers (shown only on the vendor's storefront).\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>**Home delivery on offers (May-2026):** `is_home_service`, `home_service_fee` and a `home_hours[]` array of weekday windows now mirror the same shape on services. An offer can only be booked as home when `is_home_service=1` and the customer's chosen slot falls inside one of the `home_hours[]` rows.</li>\n  <li>Per-item `home_service_fee` is an **additive** add-on: the total home fee is the **branch delivery fee** (fixed or distance-tiered, from the branch's `home_pricing_*`) **plus the sum** of every bundled item's `home_service_fee`. (May-2026: moved from the old per-offer MAX model.)</li>\n  <li>Eager-load `homeHours` on the show endpoint so `home_hours` is populated; collection responses only carry the `is_home_service` + `home_service_fee` flags.</li>\n</ul>\n</details>"
    },
    {
      "name": "Vendor \u00b7 Promo Codes",
      "description": "Vendor-scoped promo code CRUD. Customers redeem these at checkout."
    },
    {
      "name": "Vendor \u00b7 Settings",
      "description": "Vendor profile settings \u2014 commercial registration, payout details, ZATCA fields, social links.\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>**`booking_differance` default flipped 30 \u2192 0 (June-2026):** new vendors land with no cancel lock-out by default. A migration also reset every legacy vendor still sitting on `30` to `0`. Vendors can still raise it from this endpoint.</li>\n</ul>\n</details>"
    },
    {
      "name": "Vendor \u00b7 Reviews",
      "description": "Read customer reviews left on this vendor's bookings."
    },
    {
      "name": "Vendor \u00b7 Cancellation Reasons",
      "description": "Vendor-scoped cancellation reason taxonomy that surfaces in the customer cancel flow.\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>**Auto-seed (June-2026):** vendors with zero **active** reasons (i.e. no rows with `is_active='1'`) get the 5 defaults inserted lazily on first list call. A one-off backfill ran during the June-2026 migration to push every existing vendor to the same baseline.</li>\n  <li>Defaults are: \"\u0638\u0631\u0641 \u0637\u0627\u0631\u0626 / Emergency\", \"\u062a\u063a\u064a\u064a\u0631 \u0641\u064a \u0627\u0644\u0645\u0648\u0639\u062f / Schedule change\", \"\u0645\u0634\u0643\u0644\u0629 \u0635\u062d\u064a\u0629 / Health issue\", \"\u0648\u062c\u062f\u062a \u062e\u062f\u0645\u0629 \u0623\u0646\u0633\u0628 / Found a better option\", \"\u062a\u0623\u062e\u0631 \u0645\u0632\u0648\u062f \u0627\u0644\u062e\u062f\u0645\u0629 / Vendor running late\".</li>\n  <li>These reasons feed **Customer \u00b7 Bookings** \u2192 `GET .../cancellation-reasons` (union of global + this vendor's, ordered by `sort`).</li>\n</ul>\n</details>"
    },
    {
      "name": "Vendor \u00b7 Roles & Permissions",
      "description": "Define sub-roles for vendor staff accounts and assign them to employees."
    },
    {
      "name": "Vendor \u00b7 Subscriptions",
      "description": "Vendor's active plan, history and renewal/upgrade entry points."
    },
    {
      "name": "Vendor \u00b7 ZATCA",
      "description": "Saudi e-invoicing (ZATCA Phase-2) onboarding, certificate status and invoice resubmission."
    },
    {
      "name": "Vendor \u00b7 My Profile",
      "description": "Self-service endpoints for vendor **staff** logged in as employees: read/update my own bio, photo, name and portfolio images \u2014 without needing the `employees.edit` permission.\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>These endpoints are unguarded by `employees.edit` \u2014 they scope to `currentUser()->employee`, so staff can manage their own bio/photo/portfolio without owner intervention.</li>\n  <li>Same `bio` + portfolio rules as **Vendor \u00b7 Employees**; the validation in `VendorMyProfileUpdateRequest` is intentionally narrower (only `bio`, `image`, `first_name`, `last_name`).</li>\n</ul>\n</details>"
    },
    {
      "name": "Vendor \u00b7 Reminders",
      "description": "Per-vendor toggles for which reminder channels (SMS / Email / WhatsApp) fire for booking events."
    },
    {
      "name": "Vendor \u00b7 Diagnostics",
      "description": "Temporary, auth-only **diagnostic** endpoints for verifying the push / Live Activity pipeline and queue health from a real device. No permission gate \u2014 they only ever act on the **caller's own** account/device. Not part of the stable product surface; expect them to be removed once the notification stack is confirmed healthy in production."
    },
    {
      "name": "Customer \u00b7 Auth",
      "description": "Customer signup, login, OTP, password reset, profile read/edit, FCM-token registration."
    },
    {
      "name": "Customer \u00b7 Storefront",
      "description": "Public storefront powering the customer app: home feed, search, store details, favourites, contact messages."
    },
    {
      "name": "Customer \u00b7 Home Services",
      "description": "At-home delivery flow: discover nearby branches that offer home service, fetch a transit estimate, and check out with the home-service fee applied.\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>**Multi-item bundle checkout (June-2026):** `POST .../checkout` accepts `service_ids[]` and/or `offer_ids[]` so a customer can book several items in one home visit. Legacy single-item `service_id` / `offer_id` still work.</li>\n  <li>**Employee filter changed (June-2026):** the chosen employee must be able to perform **at least one** item in the bundle (was: all items). The backend falls back to the branch's full employee set when no employee fully qualifies.</li>\n  <li>`GET /home-services` (index) now returns a **mixed** catalog of services AND offers flagged `is_home_service=1`. `GET .../branches` exposes `home_offers_count` + `home_items_count` alongside `home_services_count`.</li>\n<li><strong>Fee model (May-2026):</strong> total home fee = branch delivery fee (fixed or distance-tiered) + the SUM of each bundled item's <code>home_service_fee</code>. Per-item fees stack; they're no longer MAX'd.</li>\n</ul>\n</details>"
    },
    {
      "name": "Customer \u00b7 Bookings",
      "description": "The customer's own bookings \u2014 list, view, fetch invoice (and PDF), cancel, leave a review, fetch eligible cancellation reasons.\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>`GET /bookings/{booking}/cancellation-reasons` returns a UNION of global reasons (`vendor_id IS NULL`) and the booking-vendor's own reasons \u2014 only `is_active='1'` rows, ordered by `sort ASC`, `id ASC`. Each item carries an `is_global` flag.</li>\n  <li>Customer-side cancel is gated by the vendor's `vendor_settings.booking_differance` (minutes before the booking time). With June-2026 the default for new vendors is `0` (no lock-out).</li>\n</ul>\n</details>"
    },
    {
      "name": "Customer \u00b7 Reviews",
      "description": "List reviews the customer has written. New reviews are submitted from the booking screen \u2014 see the `POST .../review` route under **Customer \u00b7 Bookings**."
    },
    {
      "name": "Customer \u00b7 Employees",
      "description": "Public employee profile pages \u2014 used by customers to browse an employee's bio, portfolio and reviews before booking. Read-only and unauthenticated.\n\n<details>\n<summary><strong>\ud83d\udccc Notes</strong></summary>\n\n<ul>\n  <li>Read-only and public \u2014 no auth header. Drives the pre-booking profile pages.</li>\n  <li>Returns the same `bio` + `portfolio` data managed under **Vendor \u00b7 Employees** and **Vendor \u00b7 My Profile**.</li>\n</ul>\n</details>"
    },
    {
      "name": "\ud83c\udd95 Updates",
      "description": "<div dir=\"rtl\" lang=\"ar\" style=\"text-align:right; line-height:1.95; font-size:17px; width:100%; max-width:920px; margin:0 auto; padding:0 8px;\">\n\n<p>\u0633\u062c\u0644 \u0627\u0644\u062a\u063a\u064a\u064a\u0631\u0627\u062a \u0627\u0644\u0643\u0627\u0645\u0644 \u0644\u0644\u0640 Backend \u2014 <strong>\u0627\u0644\u0623\u062d\u062f\u062b \u0641\u0648\u0642</strong>. \u0643\u0644 \u062a\u062d\u062f\u064a\u062b \u0645\u0631\u0628\u0648\u0637 \u0628\u0623\u0642\u0633\u0627\u0645 \u0627\u0644\u0640 API \u0627\u0644\u0645\u062a\u0623\u062b\u0631\u0629\u060c \u0648\u0643\u0644 \u0642\u0633\u0645 \u0641\u064a \u0627\u0644\u0640 sidebar \u0641\u064a\u0647 \u0645\u0644\u0627\u062d\u0638\u0627\u062a \u062a\u0641\u0635\u064a\u0644\u064a\u0629 \u0645\u062e\u0641\u064a\u0629 (\ud83d\udccc Notes).</p>\n\n<hr>\n\n<h3>\ud83d\udcc5 \u0664\u2013\u0661\u0660 \u064a\u0648\u0646\u064a\u0648 \u0662\u0660\u0662\u0666 \u2014 Google Suite + \u062a\u0633\u062c\u064a\u0644 \u0627\u062c\u062a\u0645\u0627\u0639\u064a + \u0645\u062a\u063a\u064a\u0631\u0627\u062a \u0627\u0644\u062e\u062f\u0645\u0629</h3>\n\n<p>\u0623\u0643\u0628\u0631 \u062f\u0641\u0639\u0629 \u0645\u0646\u0630 \u0627\u0644\u0625\u0637\u0644\u0627\u0642 \u2014 \u0645\u0648\u0632\u0651\u0639\u0629 \u0639\u0644\u0649 \u0627\u0644\u062b\u0644\u0627\u062b \u0648\u0627\u062c\u0647\u0627\u062a (\u062a\u0627\u062c\u0631 / \u0639\u0645\u064a\u0644 / \u0625\u062f\u0627\u0631\u0629):</p>\n\n<h4>\ud83d\uddd3\ufe0f \u0645\u0632\u0627\u0645\u0646\u0629 Google Calendar (\u062a\u0627\u062c\u0631)</h4>\n<ul>\n  <li>\u0631\u0628\u0637 \u062b\u0646\u0627\u0626\u064a \u0627\u0644\u0627\u062a\u062c\u0627\u0647 \u0644\u062d\u062c\u0648\u0632\u0627\u062a \u0627\u0644\u062a\u0627\u062c\u0631 \u0645\u0639 \u062a\u0642\u0648\u064a\u0645 Google \u2014 \u0631\u0628\u0637/\u0641\u0643 \u0631\u0628\u0637 \u0628\u062d\u0633\u0627\u0628 OAuth\u060c \u062a\u0639\u064a\u064a\u0646 \u062a\u0642\u0648\u064a\u0645 \u0644\u0643\u0644 \u0645\u0648\u0638\u0641\u060c \u0648\u0625\u0639\u0627\u062f\u0629 \u062c\u062f\u0648\u0644\u0629 \u0645\u0646 Google.</li>\n  <li>\u0645\u062c\u0645\u0648\u0639\u0629 <strong>Vendor \u00b7 Google Calendar</strong>. <strong>\u0645\u0642\u064a\u0651\u062f\u0629 \u0628\u0645\u064a\u0632\u0629 \u0627\u0644\u0628\u0627\u0642\u0629</strong> <code>google_calendar</code> (\u0644\u0648 \u0627\u0644\u0628\u0627\u0642\u0629 \u0645\u0627 \u0641\u064a\u0647\u0627 \u0627\u0644\u0645\u064a\u0632\u0629 \u064a\u0631\u062c\u0639 403).</li>\n</ul>\n\n<h4>\u2b50 \u0630\u0643\u0627\u0621 \u062a\u0642\u064a\u064a\u0645\u0627\u062a Google (\u062a\u0627\u062c\u0631)</h4>\n<ul>\n  <li>\u0627\u0631\u0628\u0637 \u0627\u0644\u0641\u0631\u0639 \u0628\u0640 Google Place\u060c \u0627\u0633\u062d\u0628 \u0627\u0644\u062a\u0642\u064a\u064a\u0645\u0627\u062a \u0648\u0627\u0644\u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a\u060c \u062d\u0644\u0651\u0644 <strong>\u0625\u0634\u0627\u0631\u0627\u062a \u0627\u0644\u0645\u0648\u0638\u0641\u064a\u0646</strong>\u060c \u0648\u062a\u0627\u0628\u0639 <strong>\u0627\u0644\u0645\u0646\u0627\u0641\u0633\u064a\u0646</strong> \u0645\u0639 \u0631\u0624\u0649 \u0630\u0643\u064a\u0629.</li>\n  <li>\u0628\u0631\u0648\u0643\u0633\u064a Google Places (autocomplete / details / photo) \u0644\u062a\u0639\u0628\u0626\u0629 \u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0641\u0631\u0639 \u062a\u0644\u0642\u0627\u0626\u064a\u0627\u064b.</li>\n  <li>\u0645\u062c\u0645\u0648\u0639\u0629 <strong>Vendor \u00b7 Google Reviews</strong>. \u0645\u0642\u064a\u0651\u062f\u0629 \u0628\u0645\u064a\u0632\u0629 <code>google_reviews</code>.</li>\n</ul>\n\n<h4>\ud83d\udd10 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0627\u0644\u0627\u062c\u062a\u0645\u0627\u0639\u064a (\u0639\u0645\u064a\u0644)</h4>\n<ul>\n  <li><code>POST /customer/v1/auth/social</code> \u2014 \u062f\u062e\u0648\u0644 \u0628\u0640 Google / Apple\u060c \u0627\u0644\u062a\u0648\u0643\u0646 \u064a\u064f\u062a\u062d\u0642\u0642 \u0645\u0646\u0647 \u0641\u064a \u0627\u0644\u0633\u064a\u0631\u0641\u0631. \u062d\u0633\u0627\u0628 \u062c\u062f\u064a\u062f \u0628\u062f\u0648\u0646 \u062c\u0648\u0627\u0644 \u064a\u0631\u062c\u0639 <code>needs_phone</code>.</li>\n  <li>\u062a\u0642\u064a\u064a\u0645\u0627\u062a Google \u062a\u0638\u0647\u0631 \u0641\u064a \u0635\u0641\u062d\u0629 \u0627\u0644\u0641\u0631\u0639 \u0644\u0644\u0639\u0645\u064a\u0644 (<code>/stores/{slug}/google-reviews</code>) \u0644\u0648 \u0627\u0644\u062a\u0627\u062c\u0631 \u0641\u0639\u0651\u0644\u0647\u0627.</li>\n</ul>\n\n<h4>\ud83e\udde9 \u0645\u062a\u063a\u064a\u0631\u0627\u062a \u0627\u0644\u062e\u062f\u0645\u0629 (Sub-services)</h4>\n<ul>\n  <li>\u0643\u0644 \u062e\u062f\u0645\u0629 \u062a\u0642\u062f\u0631 \u064a\u0643\u0648\u0646 \u0644\u0647\u0627 \u0645\u062a\u063a\u064a\u0631\u0627\u062a (\u0645\u062b\u0644\u0627\u064b \"\u0634\u0639\u0631 \u0642\u0635\u064a\u0631 / \u0637\u0648\u064a\u0644\") \u0643\u0644 \u0648\u0627\u062d\u062f \u0628\u0633\u0639\u0631 \u0648\u0645\u062f\u0629. \u062a\u064f\u0645\u0631\u0651\u0631 \u0641\u064a \u0627\u0644\u062d\u062c\u0632 \u0639\u0628\u0631 <code>sub_service_ids</code> (\u062e\u0631\u064a\u0637\u0629 \u0644\u0643\u0644 \u062e\u062f\u0645\u0629).</li>\n  <li>\u0627\u0644\u062d\u062c\u0632 \u0635\u0627\u0631 \u064a\u0642\u0628\u0644 \u062a\u062c\u0627\u0648\u0632\u0627\u062a \u0644\u0643\u0644 \u0628\u0646\u062f: <code>prices</code> + <code>durations</code> + <code>offer_prices</code> + <code>offer_durations</code>.</li>\n</ul>\n\n<h4>\ud83d\udcb0 \u062e\u0635\u0645 \u064a\u062f\u0648\u064a + \u0628\u0627\u0642\u0627\u062a</h4>\n<ul>\n  <li><strong>\u062e\u0635\u0645 \u064a\u062f\u0648\u064a</strong> \u0639\u0644\u0649 \u0627\u0644\u062d\u062c\u0632 (<code>discount</code>) \u2014 \u0645\u0628\u0644\u063a \u062b\u0627\u0628\u062a \u064a\u064f\u062e\u0635\u0645 \u0645\u0646 \u0627\u0644\u0625\u062c\u0645\u0627\u0644\u064a \u062f\u0648\u0646 \u0644\u0645\u0633 \u0623\u0633\u0639\u0627\u0631 \u0627\u0644\u0628\u0646\u0648\u062f.</li>\n  <li><code>GET /vendor/v1/packages</code> + <code>/public/packages</code> (\u0644\u0644\u0632\u0648\u0627\u0631) + <code>POST /subscriptions/activate-free</code> \u0644\u062a\u0641\u0639\u064a\u0644 \u0627\u0644\u0628\u0627\u0642\u0627\u062a \u0627\u0644\u0645\u062c\u0627\u0646\u064a\u0629 \u0645\u0628\u0627\u0634\u0631\u0629.</li>\n  <li>\u0627\u0644\u0628\u0627\u0642\u0627\u062a \u0635\u0627\u0631 \u0644\u0647\u0627 <code>features[]</code> \u062a\u062a\u062d\u0643\u0645 \u0628\u0627\u0644\u0645\u064a\u0632\u0627\u062a \u0627\u0644\u0645\u0642\u064a\u0651\u062f\u0629 \u0639\u0628\u0631 <code>checkFeature</code>.</li>\n</ul>\n\n<h4>\ud83d\udee0\ufe0f \u0644\u0648\u062d\u0629 \u0627\u0644\u0625\u062f\u0627\u0631\u0629</h4>\n<ul>\n  <li><strong>Admin \u00b7 Integrations</strong> \u2014 \u0625\u062f\u0627\u0631\u0629 \u0645\u0641\u0627\u062a\u064a\u062d \u0627\u0644\u062a\u0643\u0627\u0645\u0644\u0627\u062a (WhatsApp\u060c Google\u060c Apify\u060c Gemini\u2026) \u0645\u0639 \u062a\u0634\u0641\u064a\u0631.</li>\n  <li><strong>Admin \u00b7 Defaults</strong> \u2014 \u0623\u0642\u0633\u0627\u0645 \u0627\u0641\u062a\u0631\u0627\u0636\u064a\u0629 (\u062a\u064f\u0632\u0631\u0639 \u0644\u0644\u062a\u062c\u0627\u0631 \u0627\u0644\u062c\u062f\u062f) + \u062e\u062f\u0645\u0627\u062a \u0634\u0627\u0626\u0639\u0629.</li>\n  <li><strong>Admin \u00b7 Reviews</strong> + \u062a\u0642\u0627\u0631\u064a\u0631 \u0627\u0644\u0639\u0645\u0644\u0627\u0621/\u0627\u0644\u062d\u062c\u0648\u0632\u0627\u062a + \u0628\u062b\u0651 \u0625\u0634\u0639\u0627\u0631 \u062c\u0645\u0627\u0639\u064a + \u0645\u062a\u0635\u0641\u0651\u062d \u0642\u0627\u0639\u062f\u0629 \u0628\u064a\u0627\u0646\u0627\u062a \u062d\u064a (<code>/admin/v1/schema</code>).</li>\n</ul>\n\n<h4>\ud83d\udd14 \u062a\u0630\u0643\u064a\u0631\u0627\u062a \u0644\u0643\u0644 \u0642\u0646\u0627\u0629</h4>\n<ul>\n  <li>\u0643\u0644 \u062a\u0630\u0643\u064a\u0631 \u0635\u0627\u0631 \u0644\u0647 \u0645\u062d\u062a\u0648\u0649 \u0645\u0646\u0641\u0635\u0644 \u0644\u0643\u0644 \u0642\u0646\u0627\u0629 (<code>content_push/sms/whatsapp/email</code>) + \u0645\u0641\u0627\u062a\u064a\u062d \u062a\u0641\u0639\u064a\u0644\u060c \u0648<code>POST /vendor/v1/reminders/reset-defaults</code> \u0644\u0644\u0631\u062c\u0648\u0639 \u0644\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a.</li>\n</ul>\n\n<blockquote>\u0631\u0627\u062c\u0639 <strong>Vendor \u00b7 Google Calendar</strong> \u0648 <strong>Vendor \u00b7 Google Reviews</strong> \u0648 <strong>Admin \u00b7 Integrations</strong> \u0648 <strong>Customer \u00b7 Auth</strong>.</blockquote>\n\n<hr>\n\n<h3>\ud83d\udcc5 \u0661\u2013\u0662 \u064a\u0648\u0646\u064a\u0648 \u0662\u0660\u0662\u0666 \u2014 \u062d\u0630\u0641 \u0622\u0645\u0646 \u0644\u0644\u062e\u062f\u0645\u0629 + checkout \u0645\u0631\u0646</h3>\n\n<ul>\n  <li><strong>\u062d\u0630\u0641 \u0622\u0645\u0646 \u0644\u0644\u062e\u062f\u0645\u0629</strong>: \u0644\u0648 \u062d\u0627\u0648\u0644\u062a \u062a\u062d\u0630\u0641 \u062e\u062f\u0645\u0629 \u0644\u0633\u0627 \u0645\u0631\u0628\u0648\u0637\u0629 \u0628\u0639\u0631\u0636\u060c \u0627\u0644\u0646\u0638\u0627\u0645 \u064a\u0645\u0646\u0639\u0643 (<code>400 api.service_used_in_offer</code>) \u2014 \u0644\u0627\u0632\u0645 \u062a\u0641\u0643\u0651\u0647\u0627 \u0645\u0646 \u0627\u0644\u0639\u0631\u0648\u0636 \u0627\u0644\u0623\u0648\u0644. \u0627\u0644\u062d\u062c\u0648\u0632\u0627\u062a \u0627\u0644\u0642\u062f\u064a\u0645\u0629 \u062a\u062d\u062a\u0641\u0638 \u0628\u0623\u0633\u0645\u0627\u0621 \u0628\u0646\u0648\u062f\u0647\u0627 \u062d\u062a\u0649 \u0628\u0639\u062f \u0627\u0644\u062d\u0630\u0641 (\u062a\u064f\u0642\u0631\u0623 \u0628\u0640 <code>withTrashed()</code>).</li>\n  <li><strong><code>employee_id</code> \u0627\u062e\u062a\u064a\u0627\u0631\u064a \u0641\u064a \u0627\u0644\u0640 home checkout</strong>: \u0635\u0627\u0631 \u0639\u0644\u0649 \u0645\u0631\u062d\u0644\u062a\u064a\u0646 \u2014 \u0646\u0627\u062f\u0650 \u0628\u062f\u0648\u0646 <code>employee_id</code> \u0639\u0634\u0627\u0646 \u062a\u062c\u064a\u0628 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0645\u0648\u0638\u0641\u064a\u0646 \u0627\u0644\u0645\u062a\u0627\u062d\u064a\u0646\u060c \u0648\u0628\u0639\u062f\u0647\u0627 \u0646\u0627\u062f\u0650 \u0645\u0639 \u0645\u0648\u0638\u0641 \u0645\u062d\u062f\u062f \u0639\u0634\u0627\u0646 \u062a\u062c\u064a\u0628 \u0623\u0648\u0642\u0627\u062a\u0647. (\u0646\u0641\u0633 \u0639\u0642\u062f \u0627\u0644\u0640 <code>/checkout</code> \u0627\u0644\u0639\u0627\u062f\u064a.)</li>\n  <li>\u0625\u0635\u0644\u0627\u062d: \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062e\u062f\u0645\u0627\u062a \u0627\u0644\u0645\u0646\u0632\u0644\u064a\u0629 \u0643\u0627\u0646\u062a \u062a\u0631\u062c\u0639 \u0635\u0641\u0631 \u062a\u062d\u062a STRICT mode \u2014 \u062a\u0635\u062d\u064a\u062d \u0645\u0642\u0627\u0631\u0646\u0629 <code>is_active</code> \u0643\u0640 \u0646\u0635 <code>'1'</code> \u0645\u0648 \u0631\u0642\u0645.</li>\n</ul>\n\n<blockquote>\u0631\u0627\u062c\u0639 <strong>Vendor \u00b7 Services</strong> \u0648 <strong>Customer \u00b7 Home Services</strong>.</blockquote>\n\n<hr>\n\n<h3>\ud83d\udcc5 \u0663\u0661 \u0645\u0627\u064a\u0648 \u0662\u0660\u0662\u0666 \u2014 \u0627\u0644\u0641\u0631\u0648\u0639 \u0627\u0644\u0633\u062d\u0627\u0628\u064a\u0629 + \u0625\u0634\u0639\u0627\u0631\u0627\u062a ZATCA + TikTok</h3>\n\n<ul>\n  <li><strong>\u0627\u0644\u0641\u0631\u0648\u0639 \u0627\u0644\u0633\u062d\u0627\u0628\u064a\u0629 (Cloud / \u0633\u062d\u0627\u0628\u064a)</strong>: \u0627\u0644\u0641\u0631\u0639 \u0635\u0627\u0631 \u0644\u0647 \u0639\u0644\u0645\u064a\u0646 \u2014 <code>offers_home_services</code> (\u064a\u0648\u0635\u0651\u0644 \u0644\u0644\u0645\u0646\u0632\u0644) \u0648 <code>is_cloud</code> (\u0645\u0646\u0632\u0644\u064a \u0628\u0627\u0644\u0643\u0627\u0645\u0644\u060c \u0645\u0627 \u0644\u0647 \u0648\u0627\u062c\u0647\u0629 \u0641\u0631\u0639 \u2014 \u0643\u0644 \u0627\u0644\u0643\u0631\u0648\u062a \u062a\u062a\u062d\u0648\u0651\u0644 \u0644\u0648\u0636\u0639 \u0627\u0644\u0645\u0646\u0632\u0644). \u0627\u0644\u0640 cloud \u064a\u0641\u0631\u0636 \u0627\u0644\u0640 offers \u062a\u0644\u0642\u0627\u0626\u064a\u0627\u064b.</li>\n  <li><strong>\u0639\u0646\u0635\u0631 \"\u0645\u0646\u0632\u0644\u064a \u0641\u0642\u0637\" (<code>home_only</code>)</strong> \u0639\u0644\u0649 \u0627\u0644\u062e\u062f\u0645\u0627\u062a \u0648\u0627\u0644\u0639\u0631\u0648\u0636 \u2014 \u064a\u062e\u0644\u0651\u064a \u0627\u0644\u0639\u0646\u0635\u0631 \u064a\u0638\u0647\u0631 \u0628\u0633 \u0641\u064a \u0648\u0636\u0639 \u0627\u0644\u0645\u0646\u0632\u0644 \u0648\u064a\u062e\u062a\u0641\u064a \u0645\u0646 \u0648\u0627\u062c\u0647\u0629 \u0627\u0644\u0641\u0631\u0639.</li>\n  <li><strong>\u0625\u0634\u0639\u0627\u0631\u0627\u062a ZATCA (Credit/Debit Notes)</strong>: \u062a\u0639\u062f\u064a\u0644/\u0625\u0644\u063a\u0627\u0621 \u062d\u062c\u0632 \u0645\u0643\u062a\u0645\u0644 \u064a\u0635\u062f\u0631 \u0625\u0634\u0639\u0627\u0631 \u062f\u0627\u0626\u0646/\u0645\u062f\u064a\u0646 \u0628\u0641\u0627\u062a\u0648\u0631\u0629 \u0645\u062f\u0645\u062c\u0629 (\u0643\u0644 \u0648\u0627\u062d\u062f \u0644\u0647 QR \u062e\u0627\u0635) + \u0635\u0627\u0641\u064a \u0627\u0644\u0625\u062c\u0645\u0627\u0644\u064a. \u0627\u0644\u0640 <code>InvoiceResource</code> \u0635\u0627\u0631 \u0641\u064a\u0647 <code>document_type</code> \u0648 <code>net_total</code> \u0648 <code>notes[]</code>.</li>\n  <li><strong>TikTok \u0628\u062f\u0644 Twitter/Snapchat</strong>: \u0627\u0644\u0633\u0648\u0634\u0627\u0644 \u0627\u0644\u0646\u0647\u0627\u0626\u064a = <code>website_url</code> + <code>instagram</code> + <code>tiktok</code>. (\u062a\u0648\u064a\u062a\u0631 \u0648\u0633\u0646\u0627\u0628 \u0627\u062a\u0634\u0627\u0644\u0648\u0627 \u0645\u0646 \u0627\u0644\u0640 API.)</li>\n  <li><strong>\u0645\u062f\u0629 \u0627\u0644\u0639\u0631\u0636 \u0627\u0644\u0643\u0627\u0645\u0644\u0629</strong> \u0641\u064a \u0628\u0646\u0648\u062f \u0627\u0644\u062d\u062c\u0632 (<code>bundle_duration</code>) \u2014 \u0628\u0646\u062f \u0627\u0644\u0639\u0631\u0636 \u064a\u0639\u0631\u0636 \u0645\u062f\u062a\u0647 \u0643\u0627\u0645\u0644\u0629 \u0628\u062f\u0644 \u0623\u0648\u0644 \u062e\u062f\u0645\u0629 \u0641\u064a\u0647.</li>\n  <li><strong>\u0625\u0639\u0627\u062f\u0629 \u062c\u062f\u0648\u0644\u0629 \u0645\u0646\u0632\u0644\u064a\u0629</strong>: \u0627\u0644\u0640 <code>PUT</code> \u0644\u0644\u062d\u062c\u0632 \u0635\u0627\u0631 \u064a\u0642\u0628\u0644 <code>is_home_service</code> + <code>customer_lat/lng</code> + <code>customer_address</code> \u0639\u0634\u0627\u0646 \u064a\u0639\u064a\u062f \u062d\u0633\u0627\u0628 \u0648\u0642\u062a \u0627\u0644\u062a\u0646\u0642\u0644 \u0635\u062d.</li>\n  <li><strong>Rate limit</strong>: \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 \u0627\u0644\u0645\u0633\u062c\u0651\u0644 \u0635\u0627\u0631 \u0644\u0647 <strong>\u0662\u0660\u0660 \u0637\u0644\u0628/\u062f\u0642\u064a\u0642\u0629</strong> (\u0628\u062f\u0644 \u0666\u0660)\u060c \u0648\u0627\u0644\u0632\u0627\u0626\u0631 \u0666\u0660.</li>\n  <li>\u062a\u0635\u062d\u064a\u062d \u0646\u0645\u0648\u0630\u062c \u0627\u0644\u0631\u0633\u0648\u0645: \u0625\u062c\u0645\u0627\u0644\u064a \u0631\u0633\u0648\u0645 \u0627\u0644\u062a\u0648\u0635\u064a\u0644 = \u0631\u0633\u0645 \u0627\u0644\u0641\u0631\u0639 (\u062b\u0627\u0628\u062a \u0623\u0648 \u062d\u0633\u0628 \u0627\u0644\u0645\u0633\u0627\u0641\u0629) + <strong>\u0645\u062c\u0645\u0648\u0639</strong> \u0631\u0633\u0648\u0645 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 \u2014 \u0645\u0648 MAX.</li>\n</ul>\n\n<blockquote>\u0631\u0627\u062c\u0639 <strong>Vendor \u00b7 Branches</strong> \u0648 <strong>Vendor \u00b7 Services</strong> \u0648 <strong>Vendor \u00b7 Invoices</strong> \u0648 <strong>Customer \u00b7 Home Services</strong>.</blockquote>\n\n<hr>\n\n<h3>\ud83d\udcc5 \u0663\u0660 \u0645\u0627\u064a\u0648 \u0662\u0660\u0662\u0666 \u2014 \u062a\u0633\u0639\u064a\u0631 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 + \u0648\u0642\u062a \u0627\u0644\u062d\u062c\u0632 \u0627\u0644\u0645\u0646\u0632\u0644\u064a</h3>\n\n<ul>\n  <li><strong>\u062a\u0633\u0639\u064a\u0631 \u062d\u0633\u0628 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0644\u0644\u0641\u0631\u0639</strong>: \u0627\u0644\u0641\u0631\u0639 \u0635\u0627\u0631 \u064a\u0642\u062f\u0631 \u064a\u0633\u0639\u0651\u0631 \u0627\u0644\u062a\u0648\u0635\u064a\u0644 \u0627\u0644\u0645\u0646\u0632\u0644\u064a \u0628\u0637\u0631\u064a\u0642\u062a\u064a\u0646 \u2014 <code>fixed</code> (\u0631\u0633\u0645 \u062b\u0627\u0628\u062a) \u0623\u0648 <code>by_distance</code> (\u0634\u0631\u0627\u0626\u062d \u062d\u0633\u0628 \u062f\u0642\u0627\u064a\u0642 \u0627\u0644\u0637\u0631\u064a\u0642). \u0627\u0644\u0634\u0631\u0627\u0626\u062d \u062a\u0646\u062d\u0641\u0638 \u0641\u064a \u062c\u062f\u0648\u0644 <code>branch_home_pricing_tiers</code> (\u0643\u0644 \u0634\u0631\u064a\u062d\u0629: <code>up_to_minutes</code> + <code>fee</code>).</li>\n  <li><strong>\u0625\u062e\u0641\u0627\u0621 \u0648\u0642\u062a \u0627\u0644\u062a\u0646\u0642\u0644 \u0639\u0646 \u0627\u0644\u0639\u0645\u064a\u0644</strong>: \u0641\u064a \u0627\u0644\u062d\u062c\u0632 \u0627\u0644\u0645\u0646\u0632\u0644\u064a\u060c \u0627\u0644\u0639\u0645\u064a\u0644 \u064a\u0634\u0648\u0641 \u0648\u0642\u062a \u0627\u0644\u062e\u062f\u0645\u0629 \u0627\u0644\u0641\u0639\u0644\u064a \u0628\u0633 \u2014 \u0648\u0642\u062a \u0630\u0647\u0627\u0628/\u0631\u062c\u0648\u0639 \u0627\u0644\u0645\u0648\u0638\u0641 (<code>transit_minutes</code>) \u064a\u0646\u062d\u0630\u0641 \u0645\u0646 <code>start_time</code> \u0648 <code>end_time</code> \u0627\u0644\u0644\u064a \u062a\u0631\u062c\u0639 \u0644\u0644\u0639\u0645\u064a\u0644. \u0627\u0644\u062a\u0627\u062c\u0631 \u064a\u0634\u0648\u0641 \u0627\u0644\u0628\u0644\u0648\u0643 \u0643\u0627\u0645\u0644 \u0628\u0645\u0627 \u0641\u064a\u0647 \u0627\u0644\u062a\u0646\u0642\u0644.</li>\n  <li><strong>\u0643\u0648\u062f \u062e\u0635\u0645 + \u0634\u0631\u0648\u0637 \u0627\u0644\u062a\u0627\u062c\u0631 \u0641\u064a \u0627\u0644\u0640 checkout \u0627\u0644\u0645\u0646\u0632\u0644\u064a</strong>: <code>POST /home-services/checkout</code> \u0635\u0627\u0631 \u064a\u0642\u0628\u0644 <code>promo_code</code>\u060c \u0648\u0627\u0644\u0631\u062f \u0641\u064a\u0647 <code>bundle.discount / total / promo_code / promo_error</code> \u0648 <code>branch.terms</code>.</li>\n  <li><strong><code>has_home_services</code></strong> \u0639\u0644\u0649 \u0642\u0648\u0627\u0626\u0645 \u0627\u0644\u0641\u0631\u0648\u0639 \u0644\u0644\u0639\u0645\u064a\u0644 \u2014 \u064a\u0633\u0647\u0651\u0644 \u0639\u0631\u0636 \u0634\u0627\u0631\u0629 \"\u062a\u0648\u0635\u064a\u0644 \u0645\u0646\u0632\u0644\u064a\".</li>\n  <li><strong>\u0645\u062a\u0648\u0633\u0637 \u062a\u0642\u064a\u064a\u0645 \u0627\u0644\u0645\u0648\u0638\u0641</strong> \u0635\u0627\u0631 \u064a\u0638\u0647\u0631 \u0641\u064a \u0631\u062f \u0627\u0644\u0640 home checkout.</li>\n  <li>\u062a\u062d\u0633\u064a\u0646 \u0623\u062f\u0627\u0621 \u0627\u0644\u062a\u0642\u0648\u064a\u0645 \u0639\u0628\u0631 index \u0639\u0644\u0649 <code>(branch_id, start_time)</code> \u2014 \u0623\u0633\u0631\u0639 \u0641\u064a \u0641\u0644\u062a\u0631\u0629 \u0627\u0644\u064a\u0648\u0645.</li>\n</ul>\n\n<blockquote>\u0631\u0627\u062c\u0639 <strong>Vendor \u00b7 Branches</strong> \u0648 <strong>Customer \u00b7 Home Services</strong> \u0648 <strong>Customer \u00b7 Bookings</strong>.</blockquote>\n\n<h3>\ud83d\udcc5 \u0662\u0669 \u0645\u0627\u064a\u0648 \u0662\u0660\u0662\u0666 \u2014 Live Activity + \u062a\u0634\u062e\u064a\u0635 \u0627\u0644\u0625\u0634\u0639\u0627\u0631\u0627\u062a</h3>\n\n<ul>\n  <li><strong>iOS Live Activity</strong> (push-to-start): \u062a\u0633\u062c\u064a\u0644 \u062a\u0648\u0643\u0646 \u0639\u0628\u0631 <code>POST /vendor/v1/live-activity-token</code> + \u0625\u0631\u0633\u0627\u0644 \u0645\u0646 \u0627\u0644\u0633\u064a\u0631\u0641\u0631.</li>\n  <li><strong>\u0625\u0634\u0639\u0627\u0631 \u0641\u0648\u0631\u064a \u0644\u0644\u0645\u0648\u0638\u0641\u064a\u0646</strong> \u0639\u0646\u062f \u0648\u0635\u0648\u0644 \u062d\u062c\u0632 \u062c\u062f\u064a\u062f.</li>\n  <li><strong>endpoints \u062a\u0634\u062e\u064a\u0635\u064a\u0629</strong> (\u0645\u0624\u0642\u062a\u0629) \u062a\u062d\u062a \u0642\u0633\u0645 <strong>Vendor \u00b7 Diagnostics</strong> \u2014 \u0627\u062e\u062a\u0628\u0627\u0631 push\u060c \u0627\u062e\u062a\u0628\u0627\u0631 Live Activity\u060c beacons\u060c \u0648\u0635\u062d\u0629 \u0627\u0644\u0640 queue. \u0643\u0644\u0647\u0627 \u0639\u0644\u0649 \u062d\u0633\u0627\u0628 \u0627\u0644\u0645\u064f\u062a\u0635\u0650\u0644 \u0646\u0641\u0633\u0647 \u0628\u062f\u0648\u0646 \u0635\u0644\u0627\u062d\u064a\u0629 \u062e\u0627\u0635\u0629.</li>\n  <li><strong>\u0627\u0644\u0648\u0627\u062c\u0647\u0629 (Storefront)</strong>: \u0627\u0644\u0623\u0642\u0633\u0627\u0645 \u0627\u0644\u0645\u0639\u0637\u0651\u0644\u0629 \u062a\u0646\u062d\u0630\u0641 \u0645\u0646 \u0648\u0627\u062c\u0647\u0629 \u0627\u0644\u0639\u0645\u064a\u0644 \u0628\u062f\u0648\u0646 \u0645\u0627 \u062a\u0641\u0631\u0651\u063a \u0627\u0644\u0645\u062a\u062c\u0631.</li>\n</ul>\n\n<blockquote>\u0631\u0627\u062c\u0639 <strong>Vendor \u00b7 Diagnostics</strong> \u0648 <strong>Vendor \u00b7 Auth</strong> \u0648 <strong>Customer \u00b7 Storefront</strong>.</blockquote>\n\n<h3>\ud83d\udcc5 \u0662\u0668 \u0645\u0627\u064a\u0648 \u0662\u0660\u0662\u0666 \u2014 \u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0627\u0644\u062a\u0627\u062c\u0631</h3>\n\n<ul>\n  <li><strong>Push notifications</strong>: \u062a\u0633\u062c\u064a\u0644 \u062a\u0648\u0643\u0646 (<code>POST /vendor/v1/fcm-token</code>) + \u0645\u0641\u062a\u0627\u062d \u0631\u0626\u064a\u0633\u064a \u0644\u0644\u0625\u0637\u0641\u0627\u0621/\u0627\u0644\u062a\u0634\u063a\u064a\u0644 (<code>PUT /vendor/v1/notification-preferences</code> \u2192 <code>push_enabled</code>).</li>\n  <li><strong>\u062a\u0630\u0643\u064a\u0631 \u0642\u0628\u0644 \u0633\u0627\u0639\u0629</strong> \u0644\u0643\u0644 \u062d\u062c\u0632\u060c \u0648<strong>\u0645\u0644\u062e\u0651\u0635 \u064a\u0648\u0645\u064a</strong> \u0627\u0644\u0633\u0627\u0639\u0629 \u0661\u0661 \u0645\u0633\u0627\u0621\u064b \u0644\u0644\u0645\u0627\u0644\u0643 \u0648\u0627\u0644\u0640 admins.</li>\n  <li>\u0625\u0635\u0644\u0627\u062d \u062a\u0630\u0643\u064a\u0631 \u062d\u062c\u0648\u0632\u0627\u062a \u0627\u0644\u0640 walk-in (\u0628\u062f\u0648\u0646 \u0639\u0645\u064a\u0644 \u0645\u0633\u062c\u0651\u0644) \u0639\u0646\u062f \u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0648\u0642\u062a.</li>\n</ul>\n\n<blockquote>\u0631\u0627\u062c\u0639 <strong>Vendor \u00b7 Auth</strong>.</blockquote>\n\n<h3>\ud83d\udcc5 \u0662\u0667 \u0645\u0627\u064a\u0648 \u0662\u0660\u0662\u0666 \u2014 \u0639\u062f\u0651\u0627\u062f \u0627\u0644\u062a\u0642\u064a\u064a\u0645\u0627\u062a</h3>\n\n<ul>\n  <li><code>CustomerBranchResource</code> \u0648 <code>CustomerEmployeeResource</code> \u0635\u0627\u0631 \u0641\u064a\u0647\u0645 <code>reviews_count</code> \u0628\u062c\u0627\u0646\u0628 <code>average_rate</code> \u2014 \u0627\u0644\u0648\u0627\u062c\u0647\u0629 \u062a\u0639\u0631\u0636 \"<code>4.6 \u00b7 123 review</code>\".</li>\n</ul>\n\n<blockquote>\u0631\u0627\u062c\u0639 <strong>Customer \u00b7 Storefront</strong> \u0648 <strong>Customer \u00b7 Employees</strong>.</blockquote>\n\n<details style=\"margin-top:1.5em\">\n<summary style=\"cursor:pointer; font-weight:600; font-size:1.15em; padding:0.5em 0\">\ud83d\udce6 \u062a\u062d\u062f\u064a\u062b\u0627\u062a \u0662\u0666 \u0645\u0627\u064a\u0648 \u0662\u0660\u0662\u0666 \u0648\u0623\u0642\u062f\u0645 \u2014 \u0627\u0644\u0625\u0637\u0644\u0627\u0642 \u0627\u0644\u0623\u0633\u0627\u0633\u064a (\u0627\u0636\u063a\u0637 \u0644\u0644\u0639\u0631\u0636)</summary>\n\n<div style=\"padding-top:0.8em\">\n\n<h4>\ud83c\udfe0 \u0627\u0644\u062e\u062f\u0645\u0627\u062a \u0627\u0644\u0645\u0646\u0632\u0644\u064a\u0629 (Home Services) \u2014 \u0623\u0643\u0628\u0631 \u0625\u0636\u0627\u0641\u0629</h4>\n<ul>\n  <li>\u062a\u0641\u0639\u0651\u0644 \u0623\u064a \u062e\u062f\u0645\u0629 \u0623\u0648 \u0639\u0631\u0636 \u0643\u0640 \"\u0645\u0646\u0632\u0644\u064a\" \u2014 \u064a\u0634\u062a\u063a\u0644 \u0639\u0646\u062f \u0627\u0644\u0639\u0645\u064a\u0644 \u0641\u064a \u0645\u0646\u0632\u0644\u0647 \u0628\u062f\u0644 \u0627\u0644\u0641\u0631\u0639.</li>\n  <li>\u0631\u0633\u0648\u0645 \u0625\u0636\u0627\u0641\u064a\u0629 \u0644\u0644\u062d\u0636\u0648\u0631 \u062a\u062a\u062d\u062f\u062f \u0644\u0643\u0644 \u062e\u062f\u0645\u0629 \u0648\u0644\u0643\u0644 \u0639\u0631\u0636 \u0639\u0644\u0649 \u062d\u062f\u0629\u060c \u0648\u0627\u0644\u0625\u062c\u0645\u0627\u0644\u064a = \u0631\u0633\u0645 \u0627\u0644\u0641\u0631\u0639 + \u0645\u062c\u0645\u0648\u0639 \u0631\u0633\u0648\u0645 \u0627\u0644\u0639\u0646\u0627\u0635\u0631 (\u062a\u0635\u062d\u064a\u062d \u0663\u0661 \u0645\u0627\u064a\u0648 \u2014 \u0643\u0627\u0646 MAX \u0633\u0627\u0628\u0642\u0627\u064b).</li>\n  <li>\u0633\u0627\u0639\u0627\u062a \u062d\u0636\u0648\u0631 \u0627\u0644\u0645\u0646\u0632\u0644 \u0645\u0646\u0641\u0635\u0644\u0629 \u0639\u0646 \u0633\u0627\u0639\u0627\u062a \u0627\u0644\u0641\u0631\u0639.</li>\n  <li>\u062d\u0633\u0627\u0628 \u0648\u0642\u062a \u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u062a\u0644\u0642\u0627\u0626\u064a \u0639\u0628\u0631 <strong>OSRM</strong>.</li>\n  <li>\u062d\u062c\u0632 \u0645\u062a\u0639\u062f\u062f \u0627\u0644\u0639\u0646\u0627\u0635\u0631 (Bundle) \u2014 \u0623\u0643\u062b\u0631 \u0645\u0646 \u062e\u062f\u0645\u0629 \u0623\u0648 \u0639\u0631\u0636 \u0641\u064a \u0632\u064a\u0627\u0631\u0629 \u0645\u0646\u0632\u0644\u064a\u0629 \u0648\u0627\u062d\u062f\u0629.</li>\n  <li>\u0641\u0644\u062a\u0631 \u0627\u0644\u0645\u0648\u0638\u0641\u064a\u0646 \u0630\u0643\u064a: \u064a\u062f\u0648\u0631 \u0645\u0648\u0638\u0641 \u064a\u0642\u062f\u0631 \u064a\u0633\u0648\u064a \u0643\u0644 \u0634\u064a \u0641\u064a \u0627\u0644\u0628\u0627\u0642\u0629\u060c \u0648\u0625\u0644\u0627 \u064a\u0641\u062a\u062d \u0628\u0642\u064a\u0629 \u0645\u0648\u0638\u0641\u064a \u0627\u0644\u0641\u0631\u0639.</li>\n</ul>\n\n<h4>\u274c \u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u0625\u0644\u063a\u0627\u0621 + \u0623\u0633\u0628\u0627\u0628 \u0627\u0644\u0625\u0644\u063a\u0627\u0621</h4>\n<ul>\n  <li>\u0627\u0641\u062a\u0631\u0627\u0636\u064a\u0627\u064b\u060c \u0645\u062f\u0629 \u0627\u0644\u0625\u0644\u063a\u0627\u0621 \u0635\u0627\u0631\u062a \u0645\u0641\u062a\u0648\u062d\u0629 (<code>booking_differance = 0</code>) \u0644\u0644\u062a\u062c\u0627\u0631 \u0627\u0644\u062c\u062f\u062f.</li>\n  <li>\u0643\u0644 \u062a\u0627\u062c\u0631 \u0639\u0646\u062f\u0647 \u0642\u0627\u0626\u0645\u0629 \u0623\u0633\u0628\u0627\u0628 \u0625\u0644\u063a\u0627\u0621 \u062e\u0627\u0635\u0629 \u0641\u064a\u0647\u060c \u0648\u0627\u0644\u062a\u0627\u062c\u0631 \u0627\u0644\u062c\u062f\u064a\u062f \u064a\u062c\u064a\u0647 \u0665 \u0623\u0633\u0628\u0627\u0628 \u062c\u0627\u0647\u0632\u0629.</li>\n  <li>\u0627\u0644\u0639\u0645\u064a\u0644 \u064a\u0634\u0648\u0641 \u0627\u062a\u062d\u0627\u062f \u0627\u0644\u0623\u0633\u0628\u0627\u0628 \u0627\u0644\u0639\u0627\u0645\u0629 + \u0623\u0633\u0628\u0627\u0628 \u0627\u0644\u062a\u0627\u062c\u0631\u060c \u0648\u0644\u0645\u0627 \u0627\u0644\u0625\u0644\u063a\u0627\u0621 \u064a\u0643\u0648\u0646 \u0645\u062a\u0623\u062e\u0651\u0631 \u064a\u062c\u064a\u0647 \u0627\u0644\u0633\u0628\u0628 \u0627\u0644\u062f\u0642\u064a\u0642.</li>\n  <li>\u0643\u0644 \u062d\u062c\u0632 \u0645\u0644\u063a\u0649 \u064a\u062e\u0632\u0646: <code>cancellation_reason</code> + <code>canceled_by</code> + <code>cancel_reason_id</code>.</li>\n</ul>\n\n<h4>\u2b50 \u0627\u0644\u062a\u0642\u064a\u064a\u0645\u0627\u062a + \u0645\u062a\u0648\u0633\u0637\u0627\u062a</h4>\n<ul>\n  <li>\u0627\u0644\u0639\u0645\u064a\u0644 \u064a\u0642\u064a\u0651\u0645 \u0648\u064a\u0639\u0644\u0651\u0642 \u0639\u0644\u0649 \u0627\u0644\u0645\u0648\u0638\u0641\u060c \u0648\u0635\u0641\u062d\u0629 \u0627\u0644\u0645\u0648\u0638\u0641 \u0648\u0627\u0644\u0641\u0631\u0639 \u0641\u064a\u0647\u0645 \u0645\u062a\u0648\u0633\u0637 \u0627\u0644\u062a\u0642\u064a\u064a\u0645.</li>\n  <li>\u0627\u0644\u062a\u0627\u062c\u0631 \u064a\u0642\u062f\u0631 \u064a\u0639\u0637\u0651\u0644 \u0627\u0644\u062a\u0642\u064a\u064a\u0645\u0627\u062a \u0645\u0646 <code>reviews_enabled</code>.</li>\n</ul>\n\n<h4>\ud83d\udc64 \u0645\u0644\u0641 \u0627\u0644\u0645\u0648\u0638\u0641 \u0627\u0644\u0639\u0627\u0645 + \u0645\u0639\u0631\u0636 \u0627\u0644\u0623\u0639\u0645\u0627\u0644</h4>\n<ul>\n  <li>\u0635\u0641\u062d\u0629 \u0639\u0627\u0645\u0629 \u0644\u0643\u0644 \u0645\u0648\u0638\u0641 (<code>GET /customer/v1/employees/{id}</code>) \u2014 \u0646\u0628\u0630\u0629\u060c \u0645\u0639\u0631\u0636 \u0623\u0639\u0645\u0627\u0644\u060c \u0645\u062a\u0648\u0633\u0637 \u062a\u0642\u064a\u064a\u0645\u060c \u062a\u0639\u0644\u064a\u0642\u0627\u062a.</li>\n  <li>\u0627\u0644\u0645\u0648\u0638\u0641 \u0646\u0641\u0633\u0647 \u064a\u062d\u062f\u0651\u062b \u0628\u064a\u0627\u0646\u0627\u062a\u0647 \u0628\u062f\u0648\u0646 \u0635\u0644\u0627\u062d\u064a\u0629 \u0645\u0646 \u0627\u0644\u0645\u0627\u0644\u0643 (<strong>Vendor \u00b7 My Profile</strong>).</li>\n  <li>\u0646\u0628\u0630\u0629 <code>bio</code> \u0635\u0627\u0631\u062a \u0639\u0645\u0648\u062f \u0648\u0627\u062d\u062f \u0628\u062f\u0644 <code>bio_ar</code> \u0648 <code>bio_en</code>.</li>\n</ul>\n\n<h4>\ud83e\uddfe ZATCA Phase-2 + \ud83d\udd13 \u0635\u0644\u0627\u062d\u064a\u0627\u062a</h4>\n<ul>\n  <li>\u0631\u0628\u0637 \u0641\u0639\u0644\u064a \u0645\u0639 \u0645\u0646\u0638\u0648\u0645\u0629 \u0627\u0644\u0641\u0648\u062a\u0631\u0629\u060c QR Code \u0628\u0635\u064a\u063a\u0629 PNG\u060c \u0648queue \u0645\u0646\u0641\u0635\u0644 \u0641\u064a Horizon.</li>\n  <li>\u0645\u0627\u0644\u0643 \u0627\u0644\u062d\u0633\u0627\u0628 \u0635\u0627\u0631 \u064a\u0642\u062f\u0631 \u064a\u0633\u0648\u064a \u0623\u064a \u0634\u064a\u0621 \u0639\u0644\u0649 \u0645\u062a\u062c\u0631\u0647 \u0628\u062f\u0648\u0646 \u0641\u062d\u0635 \u0635\u0644\u0627\u062d\u064a\u0627\u062a (\u0627\u0644\u0645\u0648\u0638\u0641\u064a\u0646 \u064a\u0645\u0634\u0648\u0646 \u0639\u0644\u0649 \u0627\u0644\u0646\u0638\u0627\u0645 \u0627\u0644\u0639\u0627\u062f\u064a).</li>\n</ul>\n\n</div>\n</details>\n\n<p style=\"opacity:.7; margin-top:2em\"><em>\u0622\u062e\u0631 commit \u0645\u062a\u0636\u0645\u0651\u0646: <code>8e5abd1</code> \u0628\u062a\u0627\u0631\u064a\u062e \u0661\u0660 \u064a\u0648\u0646\u064a\u0648 \u0662\u0660\u0662\u0666.</em></p>\n\n</div>\n"
    }
  ],
  "x-tagGroups": [
    {
      "name": "General API",
      "tags": [
        "General \u00b7 Auth",
        "General \u00b7 Geography",
        "General \u00b7 Catalog",
        "General \u00b7 Cancellation Reasons",
        "General \u00b7 Reviews",
        "General \u00b7 Settings",
        "General \u00b7 Debug",
        "General \u00b7 Wallets",
        "General \u00b7 Promo Codes"
      ]
    },
    {
      "name": "Admin API",
      "tags": [
        "Admin \u00b7 Auth",
        "Admin \u00b7 Packages",
        "Admin \u00b7 Content",
        "Admin \u00b7 Defaults",
        "Admin \u00b7 Vendors",
        "Admin \u00b7 Roles & Permissions",
        "Admin \u00b7 Reminders",
        "Admin \u00b7 Users",
        "Admin \u00b7 Offers",
        "Admin \u00b7 Services",
        "Admin \u00b7 Employees",
        "Admin \u00b7 Branches",
        "Admin \u00b7 Settings",
        "Admin \u00b7 Integrations",
        "Admin \u00b7 Reports",
        "Admin \u00b7 Bookings",
        "Admin \u00b7 Reviews",
        "Admin \u00b7 Dashboard"
      ]
    },
    {
      "name": "Vendor API",
      "tags": [
        "Vendor \u00b7 Auth",
        "Vendor \u00b7 Reports",
        "Vendor \u00b7 Calendar",
        "Vendor \u00b7 Google Reviews",
        "Vendor \u00b7 Google Calendar",
        "Vendor \u00b7 Customers",
        "Vendor \u00b7 Branches",
        "Vendor \u00b7 Wallet",
        "Vendor \u00b7 Employees",
        "Vendor \u00b7 My Profile",
        "Vendor \u00b7 Sections",
        "Vendor \u00b7 Services",
        "Vendor \u00b7 Bookings",
        "Vendor \u00b7 Invoices",
        "Vendor \u00b7 Offers",
        "Vendor \u00b7 Promo Codes",
        "Vendor \u00b7 Settings",
        "Vendor \u00b7 Reviews",
        "Vendor \u00b7 Cancellation Reasons",
        "Vendor \u00b7 Roles & Permissions",
        "Vendor \u00b7 Subscriptions",
        "Vendor \u00b7 ZATCA",
        "Vendor \u00b7 Reminders",
        "Vendor \u00b7 Diagnostics"
      ]
    },
    {
      "name": "Customer API",
      "tags": [
        "Customer \u00b7 Auth",
        "Customer \u00b7 Storefront",
        "Customer \u00b7 Home Services",
        "Customer \u00b7 Bookings",
        "Customer \u00b7 Reviews",
        "Customer \u00b7 Employees"
      ]
    },
    {
      "name": "Updates",
      "tags": [
        "\ud83c\udd95 Updates"
      ]
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/api/v1/register": {
      "post": {
        "tags": [
          "General \u00b7 Auth"
        ],
        "summary": "Register (vendor onboarding)",
        "operationId": "post_api_v1_register",
        "description": "Unified register on the general surface \u2014 creates a **vendor** account (see `RegisterRequest`). Returns the vendor with an `access_token`.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorVendorResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/login": {
      "post": {
        "tags": [
          "General \u00b7 Auth"
        ],
        "summary": "Login (any role)",
        "operationId": "post_api_v1_login",
        "description": "Unified login. The response `data` is an `AdminResource`, `VendorResource` or `CustomerResource` depending on the user's `type`, always including `access_token`.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorVendorResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/reset": {
      "post": {
        "tags": [
          "General \u00b7 Auth"
        ],
        "summary": "Request password reset code",
        "operationId": "post_api_v1_reset",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/check-code": {
      "post": {
        "tags": [
          "General \u00b7 Auth"
        ],
        "summary": "Verify reset code",
        "operationId": "post_api_v1_check_code",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/confirm-reset": {
      "post": {
        "tags": [
          "General \u00b7 Auth"
        ],
        "summary": "Confirm reset",
        "operationId": "post_api_v1_confirm_reset",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmResetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/send-code": {
      "post": {
        "tags": [
          "General \u00b7 Auth"
        ],
        "summary": "Send verification code",
        "operationId": "post_api_v1_send_code",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/change-password": {
      "post": {
        "tags": [
          "General \u00b7 Auth"
        ],
        "summary": "Change password",
        "operationId": "post_api_v1_change_password",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/update-email": {
      "post": {
        "tags": [
          "General \u00b7 Auth"
        ],
        "summary": "Update e-mail",
        "operationId": "post_api_v1_update_email",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/update-phone": {
      "post": {
        "tags": [
          "General \u00b7 Auth"
        ],
        "summary": "Update phone",
        "operationId": "post_api_v1_update_phone",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhoneRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/update-profile": {
      "post": {
        "tags": [
          "General \u00b7 Auth"
        ],
        "summary": "Update profile",
        "operationId": "post_api_v1_update_profile",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AdminProfileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/profile": {
      "get": {
        "tags": [
          "General \u00b7 Auth"
        ],
        "summary": "Current profile",
        "operationId": "get_api_v1_profile",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/api/v1/countries": {
      "get": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "List (public)",
        "operationId": "get_api_v1_countries",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/countries"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_countries",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `countries.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralCountryRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/countries"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/regions": {
      "get": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "List (public)",
        "operationId": "get_api_v1_regions",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/regions"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_regions",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `regions.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralRegionRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/regions"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/cities": {
      "get": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "List (public)",
        "operationId": "get_api_v1_cities",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/cities"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_cities",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cities.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralCityRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/cities"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/categories": {
      "get": {
        "tags": [
          "General \u00b7 Catalog"
        ],
        "summary": "List (public)",
        "operationId": "get_api_v1_categories",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/categories"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Catalog"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_categories",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `categories.create`",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/GeneralCategoryRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/categories"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/service_categories": {
      "get": {
        "tags": [
          "General \u00b7 Catalog"
        ],
        "summary": "List (public)",
        "operationId": "get_api_v1_service_categories",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/service_categories"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Catalog"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_service_categories",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `service_categories.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralServiceCategoryRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/service_categories"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/client_cancellation_reasons": {
      "get": {
        "tags": [
          "General \u00b7 Cancellation Reasons"
        ],
        "summary": "List (public)",
        "operationId": "get_api_v1_client_cancellation_reasons",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/client_cancellation_reasons"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Cancellation Reasons"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_client_cancellation_reasons",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `client_cancellation_reasons.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralClientCancellationReasonRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/client_cancellation_reasons"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/cancellation_reasons": {
      "get": {
        "tags": [
          "General \u00b7 Cancellation Reasons"
        ],
        "summary": "List (public)",
        "operationId": "get_api_v1_cancellation_reasons",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/cancellation_reasons"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Cancellation Reasons"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_cancellation_reasons",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cancellation_reasons.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralCancellationReasonRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/cancellation_reasons"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/reviews": {
      "get": {
        "tags": [
          "General \u00b7 Reviews"
        ],
        "summary": "List (public)",
        "operationId": "get_api_v1_reviews",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/reviews"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Reviews"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_reviews",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reviews.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralReviewRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/reviews"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/payment_settings": {
      "get": {
        "tags": [
          "General \u00b7 Settings"
        ],
        "summary": "Payment settings (public)",
        "operationId": "get_api_v1_payment_settings",
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/payment_settings"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/test": {
      "get": {
        "tags": [
          "General \u00b7 Debug"
        ],
        "summary": "Debug counter",
        "operationId": "get_api_v1_test",
        "description": "Debug route \u2014 returns a raw integer (customers having bookings for vendor_id=1). Not for production use.",
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/countries/{id}": {
      "get": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_countries_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `countries.view`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/countries"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_countries_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `countries.edit`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralCountryRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/countries"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_countries_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `countries.delete`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/regions/{id}": {
      "get": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_regions_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `regions.view`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/regions"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_regions_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `regions.edit`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralRegionRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/regions"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_regions_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `regions.delete`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/cities/{id}": {
      "get": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_cities_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cities.view`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/cities"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_cities_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cities.edit`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralCityRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/cities"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Geography"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_cities_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cities.delete`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/categories/{id}": {
      "get": {
        "tags": [
          "General \u00b7 Catalog"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_categories_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `categories.view`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/categories"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Catalog"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_categories_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `categories.edit`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/GeneralCategoryRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/categories"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Catalog"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_categories_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `categories.delete`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/service_categories/{id}": {
      "get": {
        "tags": [
          "General \u00b7 Catalog"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_service_categories_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `service_categories.view`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/service_categories"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Catalog"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_service_categories_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `service_categories.edit`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralServiceCategoryRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/service_categories"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Catalog"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_service_categories_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `service_categories.delete`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/client_cancellation_reasons/{id}": {
      "get": {
        "tags": [
          "General \u00b7 Cancellation Reasons"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_client_cancellation_reasons_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `client_cancellation_reasons.view`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/client_cancellation_reasons"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Cancellation Reasons"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_client_cancellation_reasons_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `client_cancellation_reasons.edit`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralClientCancellationReasonRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/client_cancellation_reasons"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Cancellation Reasons"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_client_cancellation_reasons_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `client_cancellation_reasons.delete`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/cancellation_reasons/{id}": {
      "get": {
        "tags": [
          "General \u00b7 Cancellation Reasons"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_cancellation_reasons_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cancellation_reasons.view`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/cancellation_reasons"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Cancellation Reasons"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_cancellation_reasons_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cancellation_reasons.edit`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralCancellationReasonRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/cancellation_reasons"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Cancellation Reasons"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_cancellation_reasons_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cancellation_reasons.delete`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/wallets": {
      "get": {
        "tags": [
          "General \u00b7 Wallets"
        ],
        "summary": "List",
        "operationId": "get_api_v1_wallets",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `wallets.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/wallets"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Wallets"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_wallets",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `wallets.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralWalletRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/wallets"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/wallets/{id}": {
      "get": {
        "tags": [
          "General \u00b7 Wallets"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_wallets_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `wallets.view`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/wallets"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Wallets"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_wallets_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `wallets.edit`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralWalletRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/wallets"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Wallets"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_wallets_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `wallets.delete`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/wallet_transactions": {
      "get": {
        "tags": [
          "General \u00b7 Wallets"
        ],
        "summary": "List",
        "operationId": "get_api_v1_wallet_transactions",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `wallet_transactions.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/wallet_transactions"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Wallets"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_wallet_transactions",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `wallet_transactions.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralWalletTransactionRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/wallet_transactions"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/wallet_transactions/{id}": {
      "get": {
        "tags": [
          "General \u00b7 Wallets"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_wallet_transactions_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `wallet_transactions.view`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/wallet_transactions"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Wallets"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_wallet_transactions_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `wallet_transactions.edit`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralWalletTransactionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/wallet_transactions"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Wallets"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_wallet_transactions_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `wallet_transactions.delete`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/promo_codes": {
      "get": {
        "tags": [
          "General \u00b7 Promo Codes"
        ],
        "summary": "List",
        "operationId": "get_api_v1_promo_codes",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorPromoCodeResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Promo Codes"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_promo_codes",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo_codes.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralPromoCodeRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorPromoCodeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/promo_codes/{promo_code}": {
      "get": {
        "tags": [
          "General \u00b7 Promo Codes"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_promo_codes_promo_code",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "promo_code",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorPromoCodeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Promo Codes"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_promo_codes_promo_code",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo_codes.edit`",
        "parameters": [
          {
            "name": "promo_code",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralPromoCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorPromoCodeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Promo Codes"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_promo_codes_promo_code",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo_codes.delete`",
        "parameters": [
          {
            "name": "promo_code",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/promo_codes/{promo_code}/activate": {
      "put": {
        "tags": [
          "General \u00b7 Promo Codes"
        ],
        "summary": "Activate",
        "operationId": "put_api_v1_promo_codes_promo_code_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo_codes.edit`",
        "parameters": [
          {
            "name": "promo_code",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/promo_codes/{promo_code}/deactivate": {
      "put": {
        "tags": [
          "General \u00b7 Promo Codes"
        ],
        "summary": "Deactivate",
        "operationId": "put_api_v1_promo_codes_promo_code_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo_codes.edit`",
        "parameters": [
          {
            "name": "promo_code",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/reviews/{review}": {
      "get": {
        "tags": [
          "General \u00b7 Reviews"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_reviews_review",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reviews.view`",
        "parameters": [
          {
            "name": "review",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/reviews"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Reviews"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_reviews_review",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reviews.edit`",
        "parameters": [
          {
            "name": "review",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralReviewRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/reviews"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Reviews"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_reviews_review",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reviews.delete`",
        "parameters": [
          {
            "name": "review",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/review_reports": {
      "get": {
        "tags": [
          "General \u00b7 Reviews"
        ],
        "summary": "List",
        "operationId": "get_api_v1_review_reports",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `review_reports.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/review_reports"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Reviews"
        ],
        "summary": "Create",
        "operationId": "post_api_v1_review_reports",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `review_reports.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralReviewReportRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/review_reports"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/review_reports/{id}": {
      "get": {
        "tags": [
          "General \u00b7 Reviews"
        ],
        "summary": "Get one",
        "operationId": "get_api_v1_review_reports_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `review_reports.view`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/review_reports"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "General \u00b7 Reviews"
        ],
        "summary": "Update",
        "operationId": "put_api_v1_review_reports_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `review_reports.edit`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralReviewReportRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/review_reports"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "General \u00b7 Reviews"
        ],
        "summary": "Delete",
        "operationId": "delete_api_v1_review_reports_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `review_reports.delete`",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/api/v1/language_settings": {
      "get": {
        "tags": [
          "General \u00b7 Settings"
        ],
        "summary": "Language settings",
        "operationId": "get_api_v1_language_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `language_settings.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/language_settings"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Settings"
        ],
        "summary": "Update language settings",
        "operationId": "post_api_v1_language_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `language_settings.edit`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminLanguageSettingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/privacy_policies": {
      "get": {
        "tags": [
          "General \u00b7 Settings"
        ],
        "summary": "Privacy policy",
        "operationId": "get_api_v1_privacy_policies",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `privacy_policies.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/privacy_policies"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Settings"
        ],
        "summary": "Update privacy policy",
        "operationId": "post_api_v1_privacy_policies",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `privacy_policies.edit`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminPrivacyPolicyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/term_conditions": {
      "get": {
        "tags": [
          "General \u00b7 Settings"
        ],
        "summary": "Terms & conditions",
        "operationId": "get_api_v1_term_conditions",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `term_conditions.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/term_conditions"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Settings"
        ],
        "summary": "Update terms & conditions",
        "operationId": "post_api_v1_term_conditions",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `term_conditions.edit`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminTermConditionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/api/v1/user_notification_settings": {
      "get": {
        "tags": [
          "General \u00b7 Settings"
        ],
        "summary": "User notification settings",
        "operationId": "get_api_v1_user_notification_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/user_notification_settings"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      },
      "post": {
        "tags": [
          "General \u00b7 Settings"
        ],
        "summary": "Update user notification settings",
        "operationId": "post_api_v1_user_notification_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralUserNotificationSettingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/login": {
      "post": {
        "tags": [
          "Admin \u00b7 Auth"
        ],
        "summary": "Login",
        "operationId": "post_admin_v1_login",
        "description": "Admin login (`type=admin`). Returns the admin with role, permissions and `access_token`.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminAdminResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/reset": {
      "post": {
        "tags": [
          "Admin \u00b7 Auth"
        ],
        "summary": "Request reset code",
        "operationId": "post_admin_v1_reset",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/check-code": {
      "post": {
        "tags": [
          "Admin \u00b7 Auth"
        ],
        "summary": "Verify reset code",
        "operationId": "post_admin_v1_check_code",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/confirm-reset": {
      "post": {
        "tags": [
          "Admin \u00b7 Auth"
        ],
        "summary": "Confirm reset",
        "operationId": "post_admin_v1_confirm_reset",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmResetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/update-profile": {
      "post": {
        "tags": [
          "Admin \u00b7 Auth"
        ],
        "summary": "Update profile",
        "operationId": "post_admin_v1_update_profile",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AdminProfileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/send-code": {
      "post": {
        "tags": [
          "Admin \u00b7 Auth"
        ],
        "summary": "Send reset code",
        "operationId": "post_admin_v1_send_code",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/change-password": {
      "post": {
        "tags": [
          "Admin \u00b7 Auth"
        ],
        "summary": "Change password",
        "operationId": "post_admin_v1_change_password",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/update-email": {
      "post": {
        "tags": [
          "Admin \u00b7 Auth"
        ],
        "summary": "Update e-mail",
        "operationId": "post_admin_v1_update_email",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/update-phone": {
      "post": {
        "tags": [
          "Admin \u00b7 Auth"
        ],
        "summary": "Update phone",
        "operationId": "post_admin_v1_update_phone",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhoneRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/profile": {
      "get": {
        "tags": [
          "Admin \u00b7 Auth"
        ],
        "summary": "Current profile",
        "operationId": "get_admin_v1_profile",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminAdminResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/admin/v1/logout": {
      "post": {
        "tags": [
          "Admin \u00b7 Auth"
        ],
        "summary": "Logout",
        "operationId": "post_admin_v1_logout",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/admin/v1/packages": {
      "get": {
        "tags": [
          "Admin \u00b7 Packages"
        ],
        "summary": "List packages (public)",
        "operationId": "get_admin_v1_packages",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/packages"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Packages"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_packages",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `packages.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminPackageRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/packages"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/help_centers": {
      "get": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "List help centers (public)",
        "operationId": "get_admin_v1_help_centers",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/help_centers"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_help_centers",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `help_centers.create`",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AdminHelpCenterRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/help_centers"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/f_a_q_s": {
      "get": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "List FAQs (public)",
        "operationId": "get_admin_v1_f_a_q_s",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/f_a_q_s"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_f_a_q_s",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `f_a_q_s.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminFAQRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/f_a_q_s"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/banners": {
      "get": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "List banners (public)",
        "operationId": "get_admin_v1_banners",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/banners"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_banners",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `banners.create`",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AdminBannerRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/banners"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/contact_messages": {
      "post": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Submit contact message (public)",
        "operationId": "post_admin_v1_contact_messages",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminContactMessageRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/contact_messages"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      },
      "get": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "List contact messages",
        "operationId": "get_admin_v1_contact_messages",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/contact_messages"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/admin/v1/vendors": {
      "get": {
        "tags": [
          "Admin \u00b7 Vendors"
        ],
        "summary": "List vendors (public)",
        "operationId": "get_admin_v1_vendors",
        "security": [],
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/vendors"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Vendors"
        ],
        "summary": "Create vendor",
        "operationId": "post_admin_v1_vendors",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `vendors.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminVendorRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/vendors"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/permissions": {
      "get": {
        "tags": [
          "Admin \u00b7 Roles & Permissions"
        ],
        "summary": "List permissions",
        "operationId": "get_admin_v1_permissions",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/PermissionResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/roles": {
      "get": {
        "tags": [
          "Admin \u00b7 Roles & Permissions"
        ],
        "summary": "List",
        "operationId": "get_admin_v1_roles",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorRoleResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Roles & Permissions"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_roles",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminRoleRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorRoleResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/roles/{role}": {
      "get": {
        "tags": [
          "Admin \u00b7 Roles & Permissions"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_roles_role",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.view`",
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorRoleResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Roles & Permissions"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_roles_role",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.edit`",
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminRoleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorRoleResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Roles & Permissions"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_roles_role",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.delete`",
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/roles/{role}/activate": {
      "post": {
        "tags": [
          "Admin \u00b7 Roles & Permissions"
        ],
        "summary": "Activate",
        "operationId": "post_admin_v1_roles_role_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.activate`",
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/roles/{role}/deactivate": {
      "post": {
        "tags": [
          "Admin \u00b7 Roles & Permissions"
        ],
        "summary": "Deactivate",
        "operationId": "post_admin_v1_roles_role_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.activate`",
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/reminders": {
      "get": {
        "tags": [
          "Admin \u00b7 Reminders"
        ],
        "summary": "List",
        "operationId": "get_admin_v1_reminders",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reminders.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/AdminReminderResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Reminders"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_reminders",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reminders.create`",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AdminReminderRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminReminderResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/reminders/{reminder}": {
      "get": {
        "tags": [
          "Admin \u00b7 Reminders"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_reminders_reminder",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reminders.view`",
        "parameters": [
          {
            "name": "reminder",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminReminderResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Reminders"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_reminders_reminder",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reminders.edit`",
        "parameters": [
          {
            "name": "reminder",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AdminReminderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminReminderResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Reminders"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_reminders_reminder",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reminders.delete`",
        "parameters": [
          {
            "name": "reminder",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/reminders/{reminder}/activate": {
      "post": {
        "tags": [
          "Admin \u00b7 Reminders"
        ],
        "summary": "Activate",
        "operationId": "post_admin_v1_reminders_reminder_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reminders.activate`",
        "parameters": [
          {
            "name": "reminder",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/reminders/{reminder}/deactivate": {
      "post": {
        "tags": [
          "Admin \u00b7 Reminders"
        ],
        "summary": "Deactivate",
        "operationId": "post_admin_v1_reminders_reminder_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reminders.activate`",
        "parameters": [
          {
            "name": "reminder",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/users": {
      "get": {
        "tags": [
          "Admin \u00b7 Users"
        ],
        "summary": "List",
        "operationId": "get_admin_v1_users",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `users.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/users"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Users"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_users",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `users.create`",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorUserRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/users"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/users/{user}": {
      "get": {
        "tags": [
          "Admin \u00b7 Users"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_users_user",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `users.view`",
        "parameters": [
          {
            "name": "user",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/users"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Users"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_users_user",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `users.edit`",
        "parameters": [
          {
            "name": "user",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorUserRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/users"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Users"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_users_user",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `users.delete`",
        "parameters": [
          {
            "name": "user",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/vendors/{vendor}": {
      "get": {
        "tags": [
          "Admin \u00b7 Vendors"
        ],
        "summary": "Get vendor",
        "operationId": "get_admin_v1_vendors_vendor",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `vendors.view`",
        "parameters": [
          {
            "name": "vendor",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/vendors"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Vendors"
        ],
        "summary": "Update vendor",
        "operationId": "put_admin_v1_vendors_vendor",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `vendors.edit`",
        "parameters": [
          {
            "name": "vendor",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminVendorRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/vendors"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Vendors"
        ],
        "summary": "Delete vendor",
        "operationId": "delete_admin_v1_vendors_vendor",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `vendors.delete`",
        "parameters": [
          {
            "name": "vendor",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/activate_vendor": {
      "post": {
        "tags": [
          "Admin \u00b7 Vendors"
        ],
        "summary": "Activate / deactivate vendor",
        "operationId": "post_admin_v1_activate_vendor",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `vendors.edit`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminActivateVendorRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/packages/{package}": {
      "get": {
        "tags": [
          "Admin \u00b7 Packages"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_packages_package",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `packages.view`",
        "parameters": [
          {
            "name": "package",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/packages"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Packages"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_packages_package",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `packages.edit`",
        "parameters": [
          {
            "name": "package",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminPackageRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/packages"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Packages"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_packages_package",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `packages.delete`",
        "parameters": [
          {
            "name": "package",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/offers": {
      "get": {
        "tags": [
          "Admin \u00b7 Offers"
        ],
        "summary": "List",
        "operationId": "get_admin_v1_offers",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_offers.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorOfferResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Offers"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_offers",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_offers.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorOfferRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorOfferResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/offers/{offer}": {
      "get": {
        "tags": [
          "Admin \u00b7 Offers"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_offers_offer",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_offers.view`",
        "parameters": [
          {
            "name": "offer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorOfferResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Offers"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_offers_offer",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_offers.edit`",
        "parameters": [
          {
            "name": "offer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorOfferRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorOfferResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Offers"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_offers_offer",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_offers.delete`",
        "parameters": [
          {
            "name": "offer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/offers/{offer}/activate": {
      "post": {
        "tags": [
          "Admin \u00b7 Offers"
        ],
        "summary": "Activate",
        "operationId": "post_admin_v1_offers_offer_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_offers.edit`",
        "parameters": [
          {
            "name": "offer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/offers/{offer}/deactivate": {
      "post": {
        "tags": [
          "Admin \u00b7 Offers"
        ],
        "summary": "Deactivate",
        "operationId": "post_admin_v1_offers_offer_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_offers.edit`",
        "parameters": [
          {
            "name": "offer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/services": {
      "get": {
        "tags": [
          "Admin \u00b7 Services"
        ],
        "summary": "List",
        "operationId": "get_admin_v1_services",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_services.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorServiceResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Services"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_services",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_services.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorServiceRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorServiceResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/services/{service}": {
      "get": {
        "tags": [
          "Admin \u00b7 Services"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_services_service",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_services.view`",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorServiceResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Services"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_services_service",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_services.edit`",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorServiceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorServiceResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Services"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_services_service",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_services.delete`",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/services/{service}/activate": {
      "post": {
        "tags": [
          "Admin \u00b7 Services"
        ],
        "summary": "Activate",
        "operationId": "post_admin_v1_services_service_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_services.edit`",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/services/{service}/deactivate": {
      "post": {
        "tags": [
          "Admin \u00b7 Services"
        ],
        "summary": "Deactivate",
        "operationId": "post_admin_v1_services_service_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_services.edit`",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/employees": {
      "get": {
        "tags": [
          "Admin \u00b7 Employees"
        ],
        "summary": "List",
        "operationId": "get_admin_v1_employees",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_employees.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorEmployeeResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Employees"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_employees",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_employees.create`",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorEmployeeRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorEmployeeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/employees/{employee}": {
      "get": {
        "tags": [
          "Admin \u00b7 Employees"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_employees_employee",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_employees.view`",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorEmployeeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Employees"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_employees_employee",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_employees.edit`",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorEmployeeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorEmployeeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Employees"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_employees_employee",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_employees.delete`",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/employees/{employee}/activate": {
      "post": {
        "tags": [
          "Admin \u00b7 Employees"
        ],
        "summary": "Activate",
        "operationId": "post_admin_v1_employees_employee_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_employees.edit`",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/employees/{employee}/deactivate": {
      "post": {
        "tags": [
          "Admin \u00b7 Employees"
        ],
        "summary": "Deactivate",
        "operationId": "post_admin_v1_employees_employee_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_employees.edit`",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/branches": {
      "get": {
        "tags": [
          "Admin \u00b7 Branches"
        ],
        "summary": "List",
        "operationId": "get_admin_v1_branches",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_branches.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorBranchResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Branches"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_branches",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_branches.create`",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorBranchRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBranchResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/branches/{branch}": {
      "get": {
        "tags": [
          "Admin \u00b7 Branches"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_branches_branch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_branches.view`",
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBranchResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Branches"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_branches_branch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_branches.edit`",
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorBranchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBranchResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Branches"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_branches_branch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_branches.delete`",
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/branches/{branch}/activate": {
      "post": {
        "tags": [
          "Admin \u00b7 Branches"
        ],
        "summary": "Activate",
        "operationId": "post_admin_v1_branches_branch_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_branches.edit`",
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/branches/{branch}/deactivate": {
      "post": {
        "tags": [
          "Admin \u00b7 Branches"
        ],
        "summary": "Deactivate",
        "operationId": "post_admin_v1_branches_branch_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `admin_branches.edit`",
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/payment_settings": {
      "get": {
        "tags": [
          "Admin \u00b7 Settings"
        ],
        "summary": "Get payment settings",
        "operationId": "get_admin_v1_payment_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `payment_settings.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/payment_settings"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Settings"
        ],
        "summary": "Update payment settings",
        "operationId": "post_admin_v1_payment_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `payment_settings.edit`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminPaymentSettingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/service_settings": {
      "get": {
        "tags": [
          "Admin \u00b7 Settings"
        ],
        "summary": "Get service settings",
        "operationId": "get_admin_v1_service_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `service_settings.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/service_settings"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Settings"
        ],
        "summary": "Update service settings",
        "operationId": "post_admin_v1_service_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `service_settings.edit`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminServiceSettingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/tax_settings": {
      "get": {
        "tags": [
          "Admin \u00b7 Settings"
        ],
        "summary": "Get tax settings",
        "operationId": "get_admin_v1_tax_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `tax_settings.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/tax_settings"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Settings"
        ],
        "summary": "Update tax settings",
        "operationId": "post_admin_v1_tax_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `tax_settings.edit`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminTaxSettingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/notification_settings": {
      "get": {
        "tags": [
          "Admin \u00b7 Settings"
        ],
        "summary": "Get notification settings",
        "operationId": "get_admin_v1_notification_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `notification_settings.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/notification_settings"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Settings"
        ],
        "summary": "Update notification settings",
        "operationId": "post_admin_v1_notification_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `notification_settings.edit`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminNotificationSettingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/system_notifications": {
      "get": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "List",
        "operationId": "get_admin_v1_system_notifications",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `system_notifications.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/system_notifications"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_system_notifications",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `system_notifications.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminSystemNotificationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/system_notifications"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/system_notifications/{system_notification}": {
      "get": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_system_notifications_system_notification",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `system_notifications.view`",
        "parameters": [
          {
            "name": "system_notification",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/system_notifications"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_system_notifications_system_notification",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `system_notifications.edit`",
        "parameters": [
          {
            "name": "system_notification",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminSystemNotificationRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/system_notifications"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_system_notifications_system_notification",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `system_notifications.delete`",
        "parameters": [
          {
            "name": "system_notification",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/help_centers/{help_center}": {
      "get": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_help_centers_help_center",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `help_centers.view`",
        "parameters": [
          {
            "name": "help_center",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/help_centers"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_help_centers_help_center",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `help_centers.edit`",
        "parameters": [
          {
            "name": "help_center",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AdminHelpCenterRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/help_centers"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_help_centers_help_center",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `help_centers.delete`",
        "parameters": [
          {
            "name": "help_center",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/f_a_q_s/{f_a_q}": {
      "get": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_f_a_q_s_f_a_q",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `f_a_q_s.view`",
        "parameters": [
          {
            "name": "f_a_q",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/f_a_q_s"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_f_a_q_s_f_a_q",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `f_a_q_s.edit`",
        "parameters": [
          {
            "name": "f_a_q",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminFAQRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/f_a_q_s"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_f_a_q_s_f_a_q",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `f_a_q_s.delete`",
        "parameters": [
          {
            "name": "f_a_q",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/contact_messages/{contact_message}": {
      "get": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Get contact message",
        "operationId": "get_admin_v1_contact_messages_contact_message",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `contact_messages.view`",
        "parameters": [
          {
            "name": "contact_message",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/contact_messages"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Update contact message",
        "operationId": "put_admin_v1_contact_messages_contact_message",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `contact_messages.edit`",
        "parameters": [
          {
            "name": "contact_message",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminContactMessageRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/contact_messages"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Delete contact message",
        "operationId": "delete_admin_v1_contact_messages_contact_message",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `contact_messages.delete`",
        "parameters": [
          {
            "name": "contact_message",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/banners/{banner}": {
      "get": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_banners_banner",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `banners.view`",
        "parameters": [
          {
            "name": "banner",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/banners"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_banners_banner",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `banners.edit`",
        "parameters": [
          {
            "name": "banner",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AdminBannerRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/banners"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_banners_banner",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `banners.delete`",
        "parameters": [
          {
            "name": "banner",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/vendor_report_list": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Vendor report list",
        "operationId": "get_admin_v1_vendor_report_list",
        "description": "Paginated vendors with `bookings_count`, `services_count`, `offers_count`, `branches_count`, `user_count`.\n\n**Requires permission:** `vendor_report.view`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default 20.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sorting",
            "in": "query",
            "required": false,
            "description": "ASC|DESC.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "LIKE on vendor name.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/vendors"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/vendor_report_show/{vendor}": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Vendor report detail",
        "operationId": "get_admin_v1_vendor_report_show_vendor",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `vendor_report.view`",
        "parameters": [
          {
            "name": "vendor",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/vendors"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/customer_counts": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Customer counts",
        "operationId": "get_admin_v1_customer_counts",
        "description": "Ad-hoc object: `all_customers`, `new_customers` (\u22647 days), `old_customers`.\n\n**Requires permission:** `customer_report.view`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/customers": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Customer report list",
        "operationId": "get_admin_v1_customers",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `customer_report.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "all_records",
            "in": "query",
            "required": false,
            "description": "`true` shows all customers.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vendor_id",
            "in": "query",
            "required": false,
            "description": "Filter by vendor.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter by branch.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CustomerCustomerResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/customers/{customer}": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Customer report detail",
        "operationId": "get_admin_v1_customers_customer",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `customer_report.view`",
        "parameters": [
          {
            "name": "customer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerCustomerResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Delete customer",
        "operationId": "delete_admin_v1_customers_customer",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `customer_report.view`",
        "parameters": [
          {
            "name": "customer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/employee_report_list": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Employee report list",
        "operationId": "get_admin_v1_employee_report_list",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `customer_report.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default 20.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sorting",
            "in": "query",
            "required": false,
            "description": "ASC|DESC.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorEmployeeResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/employee_report_show/{customer}": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Employee report detail",
        "operationId": "get_admin_v1_employee_report_show_customer",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `customer_report.view`",
        "parameters": [
          {
            "name": "customer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/subscription_report_list": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Subscription report list",
        "operationId": "get_admin_v1_subscription_report_list",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `subscription_report.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default 20.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sorting",
            "in": "query",
            "required": false,
            "description": "ASC|DESC.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "LIKE on package name_ar.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/subscriptions"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/subscription_report_show/{subscription}": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Subscription report detail",
        "operationId": "get_admin_v1_subscription_report_show_subscription",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `subscription_report.view`",
        "parameters": [
          {
            "name": "subscription",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/service_report_list": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Service report list",
        "operationId": "get_admin_v1_service_report_list",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `service_report.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default 20.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sorting",
            "in": "query",
            "required": false,
            "description": "ASC|DESC.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "LIKE on name_ar.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/services"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/service_report_show/{service}": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Service report detail",
        "operationId": "get_admin_v1_service_report_show_service",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `service_report.view`",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/package_report_list": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Package report list",
        "operationId": "get_admin_v1_package_report_list",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `service_report.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default 20.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sorting",
            "in": "query",
            "required": false,
            "description": "ASC|DESC.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "LIKE on name_ar.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/packages"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/package_report_show/{service}": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Package report detail",
        "operationId": "get_admin_v1_package_report_show_service",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `service_report.view`",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/offer_report_list": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Offer report list",
        "operationId": "get_admin_v1_offer_report_list",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `offer_report.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default 20.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sorting",
            "in": "query",
            "required": false,
            "description": "ASC|DESC.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/offers"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/offer_report_show/{offer}": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Offer report detail",
        "operationId": "get_admin_v1_offer_report_show_offer",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `offer_report.view`",
        "parameters": [
          {
            "name": "offer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/bookings": {
      "get": {
        "tags": [
          "Admin \u00b7 Bookings"
        ],
        "summary": "List",
        "operationId": "get_admin_v1_bookings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `booking_report.view`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "vendor_id",
            "in": "query",
            "required": false,
            "description": "Filter by vendor.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "user_id",
            "in": "query",
            "required": false,
            "description": "Filter by customer.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter by branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "employee_id",
            "in": "query",
            "required": false,
            "description": "Filter by employee.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "Filter by booking date (Y-m-d).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorBookingResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Bookings"
        ],
        "summary": "Create",
        "operationId": "post_admin_v1_bookings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `booking_report.view`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorBookingRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBookingResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/admin/v1/bookings/{booking}": {
      "get": {
        "tags": [
          "Admin \u00b7 Bookings"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_bookings_booking",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `booking_report.view`",
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBookingResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Admin \u00b7 Bookings"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_bookings_booking",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `booking_report.view`",
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorBookingRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBookingResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Bookings"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_bookings_booking",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `booking_report.view`",
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/bookings/{booking}/customer_invoice": {
      "get": {
        "tags": [
          "Admin \u00b7 Bookings"
        ],
        "summary": "Customer invoice PDF",
        "operationId": "get_admin_v1_bookings_booking_customer_invoice",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `booking_report.view`",
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "PDF document.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/bookings/{booking}/vendor_invoice": {
      "get": {
        "tags": [
          "Admin \u00b7 Bookings"
        ],
        "summary": "Vendor invoice PDF",
        "operationId": "get_admin_v1_bookings_booking_vendor_invoice",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `booking_report.view`",
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "PDF document.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/admin/v1/home_totals": {
      "get": {
        "tags": [
          "Admin \u00b7 Dashboard"
        ],
        "summary": "Home totals",
        "operationId": "get_admin_v1_home_totals",
        "description": "Object: `subscription_count`, `subscription_total`, `booking_count`, `offer_count`, `booking_total`, `customer_count`, `vendor_count`.\n\n**Requires permission:** `home.view`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/booking_count_chart": {
      "get": {
        "tags": [
          "Admin \u00b7 Dashboard"
        ],
        "summary": "Booking count chart",
        "operationId": "get_admin_v1_booking_count_chart",
        "description": "Array of `{ x_key, count }`.\n\n**Requires permission:** `home.view`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "Bucket granularity. Default `day`.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "year",
                "month",
                "week",
                "day"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/booking_total_chart": {
      "get": {
        "tags": [
          "Admin \u00b7 Dashboard"
        ],
        "summary": "Booking total chart",
        "operationId": "get_admin_v1_booking_total_chart",
        "description": "Array of `{ x_key, total }`.\n\n**Requires permission:** `home.view`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "description": "Bucket granularity. Default `day`.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "year",
                "month",
                "week",
                "day"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/booking_count_with_month_chart": {
      "get": {
        "tags": [
          "Admin \u00b7 Dashboard"
        ],
        "summary": "Bookings per month",
        "operationId": "get_admin_v1_booking_count_with_month_chart",
        "description": "Array of `{ x_key=month, count }`.\n\n**Requires permission:** `statistics.view`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Year (default 2024).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/register_count_with_month_chart": {
      "get": {
        "tags": [
          "Admin \u00b7 Dashboard"
        ],
        "summary": "Vendor registrations per month",
        "operationId": "get_admin_v1_register_count_with_month_chart",
        "description": "Array of `{ x_key=month, count }`.\n\n**Requires permission:** `statistics.view`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Year (default 2024).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/booking_count_last_week_chart": {
      "get": {
        "tags": [
          "Admin \u00b7 Dashboard"
        ],
        "summary": "Bookings last week",
        "operationId": "get_admin_v1_booking_count_last_week_chart",
        "description": "Array of `{ x_key=day-of-week, count }`.\n\n**Requires permission:** `statistics.view`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/last_bookings": {
      "get": {
        "tags": [
          "Admin \u00b7 Dashboard"
        ],
        "summary": "Last 10 bookings",
        "operationId": "get_admin_v1_last_bookings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `statistics.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/last_customers": {
      "get": {
        "tags": [
          "Admin \u00b7 Dashboard"
        ],
        "summary": "Last 10 customers",
        "operationId": "get_admin_v1_last_customers",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `statistics.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/register": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Register vendor",
        "operationId": "post_vendor_v1_register",
        "description": "Self-service vendor onboarding. `use_default_data` (optional) seeds default roles, sections, reminder channels.",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorVendorResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/login": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Login",
        "operationId": "post_vendor_v1_login",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorVendorResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/send-otp": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Send e-mail OTP",
        "operationId": "post_vendor_v1_send_otp",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewEmailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/reset": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Request reset code",
        "operationId": "post_vendor_v1_reset",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/check-code": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Verify reset code",
        "operationId": "post_vendor_v1_check_code",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/confirm-reset": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Confirm reset",
        "operationId": "post_vendor_v1_confirm_reset",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmResetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/successSubscribe": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Subscription payment success callback",
        "operationId": "post_vendor_v1_successSubscribe",
        "description": "Payment gateway callback (encrypted `trandata`). Returns an **HTML** page, not JSON.",
        "security": [],
        "responses": {
          "200": {
            "description": "HTML page.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/vendor/v1/errorSubscribe": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Subscription payment error callback",
        "operationId": "post_vendor_v1_errorSubscribe",
        "description": "Payment gateway error callback. Returns an **HTML** page.",
        "security": [],
        "responses": {
          "200": {
            "description": "HTML page.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/vendor/v1/update-profile": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Update profile",
        "operationId": "post_vendor_v1_update_profile",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorProfileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/send-code": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Send reset code",
        "operationId": "post_vendor_v1_send_code",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/change-password": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Change password",
        "operationId": "post_vendor_v1_change_password",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/update-email": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Update e-mail",
        "operationId": "post_vendor_v1_update_email",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/update-phone": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Update phone",
        "operationId": "post_vendor_v1_update_phone",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhoneRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/profile": {
      "get": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Current profile",
        "operationId": "get_vendor_v1_profile",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorVendorResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/vendor/v1/logout": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Logout",
        "operationId": "post_vendor_v1_logout",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/vendor/v1/reports": {
      "get": {
        "tags": [
          "Vendor \u00b7 Reports"
        ],
        "summary": "Report data",
        "operationId": "get_vendor_v1_reports",
        "description": "Type + period drive completely different aggregate payloads (counts, totals, charts, top-N, commissions).\n\n**Requires permission:** `reports.list`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": true,
            "description": "Report type.",
            "schema": {
              "type": "string",
              "enum": [
                "home",
                "services",
                "offers",
                "customers",
                "employees",
                "employees_commissions"
              ]
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": true,
            "description": "Period.",
            "schema": {
              "type": "string",
              "enum": [
                "day",
                "week",
                "month",
                "3months",
                "6months",
                "9months",
                "year"
              ]
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter by branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "employee_id",
            "in": "query",
            "required": false,
            "description": "Filter by employee.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/reports/download": {
      "get": {
        "tags": [
          "Vendor \u00b7 Reports"
        ],
        "summary": "Report PDF",
        "operationId": "get_vendor_v1_reports_download",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reports.download`",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": true,
            "description": "Report type.",
            "schema": {
              "type": "string",
              "enum": [
                "home",
                "services",
                "offers",
                "customers",
                "employees",
                "employees_commissions"
              ]
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": true,
            "description": "Period.",
            "schema": {
              "type": "string",
              "enum": [
                "day",
                "week",
                "month",
                "3months",
                "6months",
                "9months",
                "year"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "PDF document.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/calendar": {
      "post": {
        "tags": [
          "Vendor \u00b7 Calendar"
        ],
        "summary": "Calendar data",
        "operationId": "post_vendor_v1_calendar",
        "description": "Returns `branches`, `employees`, and `employees_bookings` (grouped CalendarEmployee/CalendarBooking resources) for a given day.\n\n**Requires permission:** `calendar.list`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorCalendarRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/customers": {
      "get": {
        "tags": [
          "Vendor \u00b7 Customers"
        ],
        "summary": "List customers",
        "operationId": "get_vendor_v1_customers",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `customers.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter by branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "all_records",
            "in": "query",
            "required": false,
            "description": "`true` ignores the 'only my customers' scope.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CustomerCustomerResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Customers"
        ],
        "summary": "Create customer",
        "operationId": "post_vendor_v1_customers",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `customers.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorCustomerRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerCustomerResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/customers/{customer}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Customers"
        ],
        "summary": "Get customer",
        "operationId": "get_vendor_v1_customers_customer",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `customers.view`",
        "parameters": [
          {
            "name": "customer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerCustomerResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/branches": {
      "get": {
        "tags": [
          "Vendor \u00b7 Branches"
        ],
        "summary": "List",
        "operationId": "get_vendor_v1_branches",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `branches.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "n/a",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with_services",
            "in": "query",
            "required": false,
            "description": "`true` also searches & loads services.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with_services_only",
            "in": "query",
            "required": false,
            "description": "Only branches with a bookable service+employee chain.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nearby[lat]",
            "in": "query",
            "required": false,
            "description": "Latitude for geo filter.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "nearby[lng]",
            "in": "query",
            "required": false,
            "description": "Longitude.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "nearby[radius]",
            "in": "query",
            "required": false,
            "description": "Radius km (default 5).",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorBranchResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Branches"
        ],
        "summary": "Create",
        "operationId": "post_vendor_v1_branches",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `branches.create`",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorBranchRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBranchResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/branches/{branch}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Branches"
        ],
        "summary": "Get one",
        "operationId": "get_vendor_v1_branches_branch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `branches.view`",
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBranchResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Branches"
        ],
        "summary": "Update",
        "operationId": "put_vendor_v1_branches_branch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `branches.edit`",
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorBranchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBranchResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Vendor \u00b7 Branches"
        ],
        "summary": "Delete",
        "operationId": "delete_vendor_v1_branches_branch",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `branches.delete`",
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/branches/{branch}/activate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Branches"
        ],
        "summary": "Activate",
        "operationId": "post_vendor_v1_branches_branch_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `branches.activate`",
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/branches/{branch}/deactivate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Branches"
        ],
        "summary": "Deactivate",
        "operationId": "post_vendor_v1_branches_branch_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `branches.activate`",
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/wallet": {
      "get": {
        "tags": [
          "Vendor \u00b7 Wallet"
        ],
        "summary": "Wallet + transactions",
        "operationId": "get_vendor_v1_wallet",
        "description": "Returns `{ id, balance, transactions }` (balance = credits \u2212 debits; transactions paginated).\n\n**Requires permission:** `wallets.list`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter transactions by branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/employees": {
      "get": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "List",
        "operationId": "get_vendor_v1_employees",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `employees.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter by branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "services",
            "in": "query",
            "required": false,
            "description": "Array of service ids \u2014 employees offering ALL of them.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorEmployeeResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "Create",
        "operationId": "post_vendor_v1_employees",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `employees.create`",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorEmployeeRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorEmployeeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/employees/{employee}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "Get one",
        "operationId": "get_vendor_v1_employees_employee",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `employees.view`",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorEmployeeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "Update",
        "operationId": "put_vendor_v1_employees_employee",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `employees.edit`",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorEmployeeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorEmployeeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "Delete",
        "operationId": "delete_vendor_v1_employees_employee",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `employees.delete`",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/employees/{employee}/activate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "Activate",
        "operationId": "post_vendor_v1_employees_employee_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `employees.activate`",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/employees/{employee}/deactivate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "Deactivate",
        "operationId": "post_vendor_v1_employees_employee_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `employees.activate`",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/sections": {
      "get": {
        "tags": [
          "Vendor \u00b7 Sections"
        ],
        "summary": "List",
        "operationId": "get_vendor_v1_sections",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `sections.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorSectionResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Sections"
        ],
        "summary": "Create",
        "operationId": "post_vendor_v1_sections",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `sections.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorSectionRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorSectionResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/sections/{section}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Sections"
        ],
        "summary": "Get one",
        "operationId": "get_vendor_v1_sections_section",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `sections.view`",
        "parameters": [
          {
            "name": "section",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorSectionResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Sections"
        ],
        "summary": "Update",
        "operationId": "put_vendor_v1_sections_section",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `sections.edit`",
        "parameters": [
          {
            "name": "section",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorSectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorSectionResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Vendor \u00b7 Sections"
        ],
        "summary": "Delete",
        "operationId": "delete_vendor_v1_sections_section",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `sections.delete`",
        "parameters": [
          {
            "name": "section",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/sections/{section}/activate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Sections"
        ],
        "summary": "Activate",
        "operationId": "post_vendor_v1_sections_section_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `sections.activate`",
        "parameters": [
          {
            "name": "section",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/sections/{section}/deactivate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Sections"
        ],
        "summary": "Deactivate",
        "operationId": "post_vendor_v1_sections_section_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `sections.activate`",
        "parameters": [
          {
            "name": "section",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/sections/sort": {
      "post": {
        "tags": [
          "Vendor \u00b7 Sections"
        ],
        "summary": "Reorder sections & services",
        "operationId": "post_vendor_v1_sections_sort",
        "description": "Also requires `services.edit`. Plain `{ message }` response (not the standard envelope).\n\n**Requires permission:** `sections.edit`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorSortSectionsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.sorted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/services": {
      "get": {
        "tags": [
          "Vendor \u00b7 Services"
        ],
        "summary": "List",
        "operationId": "get_vendor_v1_services",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `services.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter by branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "with_employees_only",
            "in": "query",
            "required": false,
            "description": "Only services with a bookable employee chain.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorServiceResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Services"
        ],
        "summary": "Create",
        "operationId": "post_vendor_v1_services",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `services.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorServiceRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorServiceResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/services/{service}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Services"
        ],
        "summary": "Get one",
        "operationId": "get_vendor_v1_services_service",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `services.view`",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorServiceResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Services"
        ],
        "summary": "Update",
        "operationId": "put_vendor_v1_services_service",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `services.edit`",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorServiceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorServiceResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Vendor \u00b7 Services"
        ],
        "summary": "Delete",
        "operationId": "delete_vendor_v1_services_service",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `services.delete`\n\n**Jun-2026 \u2014 safe deletion:** blocked with **400** `api.service_used_in_offer` if the service is still attached to an offer. Past bookings keep their line-item names (soft-deleted services are read with `withTrashed()`).",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Service is still attached to an offer \u2014 deletion blocked (`api.service_used_in_offer`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "status": {
                      "type": "integer",
                      "example": 400
                    },
                    "data": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    },
                    "message": {
                      "type": "string",
                      "example": "api.service_used_in_offer"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/services/{service}/activate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Services"
        ],
        "summary": "Activate",
        "operationId": "post_vendor_v1_services_service_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `services.activate`",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/services/{service}/deactivate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Services"
        ],
        "summary": "Deactivate",
        "operationId": "post_vendor_v1_services_service_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `services.activate`",
        "parameters": [
          {
            "name": "service",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/bookings": {
      "get": {
        "tags": [
          "Vendor \u00b7 Bookings"
        ],
        "summary": "List bookings",
        "operationId": "get_vendor_v1_bookings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `bookings.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter by branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "employee_id",
            "in": "query",
            "required": false,
            "description": "Filter by employee.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "Filter by date (Y-m-d).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorBookingResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Bookings"
        ],
        "summary": "Create booking",
        "operationId": "post_vendor_v1_bookings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `bookings.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorBookingRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBookingResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/bookings/{booking}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Bookings"
        ],
        "summary": "Get booking",
        "operationId": "get_vendor_v1_bookings_booking",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `bookings.view`",
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBookingResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Bookings"
        ],
        "summary": "Update booking",
        "operationId": "put_vendor_v1_bookings_booking",
        "description": "Status transitions trigger side effects: `completed` \u2192 invoices (+ ZATCA) + wallet transactions; `canceled` \u2192 counter decrement + alert.\n\n**Requires permission:** `bookings.edit`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorBookingRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorBookingResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Vendor \u00b7 Bookings"
        ],
        "summary": "Delete booking",
        "operationId": "delete_vendor_v1_bookings_booking",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `bookings.delete`",
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/bookings/{booking}/reschedule": {
      "post": {
        "tags": [
          "Vendor \u00b7 Bookings"
        ],
        "summary": "Reschedule booking",
        "operationId": "post_vendor_v1_bookings_booking_reschedule",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `bookings.edit`",
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRescheduleBookingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/pos": {
      "post": {
        "tags": [
          "Vendor \u00b7 Bookings"
        ],
        "summary": "POS data",
        "operationId": "post_vendor_v1_pos",
        "description": "Returns POS payload: branches, customers, and (when branch/employee/services chosen) employees, sections, offers, timeslots, sub_total, discount, total. Also reads `promo_code`.\n\n**Requires permission:** `pos.create`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorPosRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/invoices": {
      "get": {
        "tags": [
          "Vendor \u00b7 Invoices"
        ],
        "summary": "List invoices",
        "operationId": "get_vendor_v1_invoices",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `invoices.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "customer|vendor.",
            "schema": {
              "type": "string",
              "enum": [
                "customer",
                "vendor"
              ]
            }
          },
          {
            "name": "booking_id",
            "in": "query",
            "required": false,
            "description": "Filter by booking.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorInvoiceResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/invoices/{invoice}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Invoices"
        ],
        "summary": "Get invoice",
        "operationId": "get_vendor_v1_invoices_invoice",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `invoices.view`",
        "parameters": [
          {
            "name": "invoice",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorInvoiceResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/invoices/{invoice}/download": {
      "get": {
        "tags": [
          "Vendor \u00b7 Invoices"
        ],
        "summary": "Invoice PDF",
        "operationId": "get_vendor_v1_invoices_invoice_download",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `invoices.download`",
        "parameters": [
          {
            "name": "invoice",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "PDF document.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/offers": {
      "get": {
        "tags": [
          "Vendor \u00b7 Offers"
        ],
        "summary": "List",
        "operationId": "get_vendor_v1_offers",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `offers.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter by branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "with_employees_only",
            "in": "query",
            "required": false,
            "description": "Only offers with a bookable employee chain.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorOfferResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Offers"
        ],
        "summary": "Create",
        "operationId": "post_vendor_v1_offers",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `offers.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorOfferRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorOfferResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/offers/{offer}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Offers"
        ],
        "summary": "Get one",
        "operationId": "get_vendor_v1_offers_offer",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `offers.view`",
        "parameters": [
          {
            "name": "offer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorOfferResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Offers"
        ],
        "summary": "Update",
        "operationId": "put_vendor_v1_offers_offer",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `offers.edit`",
        "parameters": [
          {
            "name": "offer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorOfferRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorOfferResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Vendor \u00b7 Offers"
        ],
        "summary": "Delete",
        "operationId": "delete_vendor_v1_offers_offer",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `offers.delete`",
        "parameters": [
          {
            "name": "offer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/offers/{offer}/activate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Offers"
        ],
        "summary": "Activate",
        "operationId": "post_vendor_v1_offers_offer_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `offers.activate`",
        "parameters": [
          {
            "name": "offer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/offers/{offer}/deactivate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Offers"
        ],
        "summary": "Deactivate",
        "operationId": "post_vendor_v1_offers_offer_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `offers.activate`",
        "parameters": [
          {
            "name": "offer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/promo-codes": {
      "get": {
        "tags": [
          "Vendor \u00b7 Promo Codes"
        ],
        "summary": "List",
        "operationId": "get_vendor_v1_promo_codes",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo-codes.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "created_by",
            "in": "query",
            "required": false,
            "description": "Filter by creator id.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorPromoCodeResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Promo Codes"
        ],
        "summary": "Create",
        "operationId": "post_vendor_v1_promo_codes",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo-codes.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralPromoCodeRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorPromoCodeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/promo-codes/{promoCode}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Promo Codes"
        ],
        "summary": "Get one",
        "operationId": "get_vendor_v1_promo_codes_promoCode",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo-codes.view`",
        "parameters": [
          {
            "name": "promoCode",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorPromoCodeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Promo Codes"
        ],
        "summary": "Update",
        "operationId": "put_vendor_v1_promo_codes_promoCode",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo-codes.edit`",
        "parameters": [
          {
            "name": "promoCode",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GeneralPromoCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorPromoCodeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Vendor \u00b7 Promo Codes"
        ],
        "summary": "Delete",
        "operationId": "delete_vendor_v1_promo_codes_promoCode",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo-codes.delete`",
        "parameters": [
          {
            "name": "promoCode",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/promo-codes/{promoCode}/activate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Promo Codes"
        ],
        "summary": "Activate",
        "operationId": "post_vendor_v1_promo_codes_promoCode_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo-codes.activate`",
        "parameters": [
          {
            "name": "promoCode",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/promo-codes/{promoCode}/deactivate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Promo Codes"
        ],
        "summary": "Deactivate",
        "operationId": "post_vendor_v1_promo_codes_promoCode_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `promo-codes.activate`",
        "parameters": [
          {
            "name": "promoCode",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/settings": {
      "get": {
        "tags": [
          "Vendor \u00b7 Settings"
        ],
        "summary": "Vendor settings",
        "operationId": "get_vendor_v1_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `settings.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorSettingResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Settings"
        ],
        "summary": "Update vendor settings",
        "operationId": "put_vendor_v1_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `settings.edit`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorSettingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/reviews": {
      "get": {
        "tags": [
          "Vendor \u00b7 Reviews"
        ],
        "summary": "List reviews",
        "operationId": "get_vendor_v1_reviews",
        "description": "Custom paginated shape with a `summary` ({average, count, breakdown{1..5}}).\n\n**Requires permission:** `reviews.list`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter by branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "employee_id",
            "in": "query",
            "required": false,
            "description": "Filter by employee.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "rating",
            "in": "query",
            "required": false,
            "description": "Exact employee_rate 1\u20135.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Booking start_time \u2265 (date).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Booking start_time \u2264 (date).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorReviewResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/reviews/{review}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Reviews"
        ],
        "summary": "Get review",
        "operationId": "get_vendor_v1_reviews_review",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reviews.view`",
        "parameters": [
          {
            "name": "review",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorReviewResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/cancellation-reasons": {
      "get": {
        "tags": [
          "Vendor \u00b7 Cancellation Reasons"
        ],
        "summary": "List",
        "operationId": "get_vendor_v1_cancellation_reasons",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cancellation-reasons.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default 30.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Search reason_ar/reason_en.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skip_seed",
            "in": "query",
            "required": false,
            "description": "`true` skips auto-seeding defaults.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorCancellationReasonResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Cancellation Reasons"
        ],
        "summary": "Create",
        "operationId": "post_vendor_v1_cancellation_reasons",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cancellation-reasons.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorCancellationReasonRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorCancellationReasonResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/cancellation-reasons/sort": {
      "post": {
        "tags": [
          "Vendor \u00b7 Cancellation Reasons"
        ],
        "summary": "Reorder",
        "operationId": "post_vendor_v1_cancellation_reasons_sort",
        "description": "Body: `{ items: [{ id, sort }] }`.\n\n**Requires permission:** `cancellation-reasons.edit`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/cancellation-reasons/{cancellation_reason}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Cancellation Reasons"
        ],
        "summary": "Get one",
        "operationId": "get_vendor_v1_cancellation_reasons_cancellation_reason",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cancellation-reasons.view`",
        "parameters": [
          {
            "name": "cancellation_reason",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorCancellationReasonResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Cancellation Reasons"
        ],
        "summary": "Update",
        "operationId": "put_vendor_v1_cancellation_reasons_cancellation_reason",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cancellation-reasons.edit`",
        "parameters": [
          {
            "name": "cancellation_reason",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorCancellationReasonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorCancellationReasonResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Vendor \u00b7 Cancellation Reasons"
        ],
        "summary": "Delete",
        "operationId": "delete_vendor_v1_cancellation_reasons_cancellation_reason",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cancellation-reasons.delete`",
        "parameters": [
          {
            "name": "cancellation_reason",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/cancellation-reasons/{cancellation_reason}/activate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Cancellation Reasons"
        ],
        "summary": "Activate",
        "operationId": "post_vendor_v1_cancellation_reasons_cancellation_reason_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cancellation-reasons.activate`",
        "parameters": [
          {
            "name": "cancellation_reason",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/cancellation-reasons/{cancellation_reason}/deactivate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Cancellation Reasons"
        ],
        "summary": "Deactivate",
        "operationId": "post_vendor_v1_cancellation_reasons_cancellation_reason_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `cancellation-reasons.activate`",
        "parameters": [
          {
            "name": "cancellation_reason",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/permissions": {
      "get": {
        "tags": [
          "Vendor \u00b7 Roles & Permissions"
        ],
        "summary": "List permissions",
        "operationId": "get_vendor_v1_permissions",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.create`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorPermissionResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/roles": {
      "get": {
        "tags": [
          "Vendor \u00b7 Roles & Permissions"
        ],
        "summary": "List",
        "operationId": "get_vendor_v1_roles",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorRoleResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Roles & Permissions"
        ],
        "summary": "Create",
        "operationId": "post_vendor_v1_roles",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRoleRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorRoleResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/roles/{role}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Roles & Permissions"
        ],
        "summary": "Get one",
        "operationId": "get_vendor_v1_roles_role",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.view`",
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorRoleResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Roles & Permissions"
        ],
        "summary": "Update",
        "operationId": "put_vendor_v1_roles_role",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.edit`",
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorRoleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorRoleResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "delete": {
        "tags": [
          "Vendor \u00b7 Roles & Permissions"
        ],
        "summary": "Delete",
        "operationId": "delete_vendor_v1_roles_role",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.delete`",
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/roles/{role}/activate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Roles & Permissions"
        ],
        "summary": "Activate",
        "operationId": "post_vendor_v1_roles_role_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.activate`",
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/roles/{role}/deactivate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Roles & Permissions"
        ],
        "summary": "Deactivate",
        "operationId": "post_vendor_v1_roles_role_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `roles.activate`",
        "parameters": [
          {
            "name": "role",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/subscriptions": {
      "get": {
        "tags": [
          "Vendor \u00b7 Subscriptions"
        ],
        "summary": "List subscriptions",
        "operationId": "get_vendor_v1_subscriptions",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `subscriptions.view`",
        "parameters": [
          {
            "name": "paginate",
            "in": "query",
            "required": false,
            "description": "`true`|`false`. Default `true`.",
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Page size. Default **20**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Row offset. Default 0.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort direction. Default `ASC`.",
            "schema": {
              "type": "string",
              "enum": [
                "ASC",
                "DESC",
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "Sort column. Default `id`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deleted",
            "in": "query",
            "required": false,
            "description": "Soft-delete scope.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "deleted",
                "undeleted"
              ]
            }
          },
          {
            "name": "columns[]",
            "in": "query",
            "required": false,
            "description": "Filter columns (parallel array with operand[]/column_values[]).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operand[]",
            "in": "query",
            "required": false,
            "description": "Filter operators, e.g. `=`, `like`, `>`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "column_values[]",
            "in": "query",
            "required": false,
            "description": "Filter values (parallel array).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "with[]",
            "in": "query",
            "required": false,
            "description": "Eager-load relations.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resource",
            "in": "query",
            "required": false,
            "description": "Column projection mode.",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "custom"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/subscriptions"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Subscriptions"
        ],
        "summary": "Create subscription",
        "operationId": "post_vendor_v1_subscriptions",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `subscriptions.create`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorSubscriptionRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/subscriptions"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/subscriptions/{subscription}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Subscriptions"
        ],
        "summary": "Get subscription",
        "operationId": "get_vendor_v1_subscriptions_subscription",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `subscriptions.view`",
        "parameters": [
          {
            "name": "subscription",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/subscriptions"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Subscriptions"
        ],
        "summary": "Update subscription",
        "operationId": "put_vendor_v1_subscriptions_subscription",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `subscriptions.edit`",
        "parameters": [
          {
            "name": "subscription",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorSubscriptionRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/subscriptions"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/subscriptions/pay": {
      "post": {
        "tags": [
          "Vendor \u00b7 Subscriptions"
        ],
        "summary": "Pay subscription",
        "operationId": "post_vendor_v1_subscriptions_pay",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `subscriptions.pay`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorPayRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/subscriptions/check_is_paid": {
      "post": {
        "tags": [
          "Vendor \u00b7 Subscriptions"
        ],
        "summary": "Check payment status",
        "operationId": "post_vendor_v1_subscriptions_check_is_paid",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `subscriptions.pay`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorPayRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/zatca": {
      "get": {
        "tags": [
          "Vendor \u00b7 ZATCA"
        ],
        "summary": "ZATCA info",
        "operationId": "get_vendor_v1_zatca",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `zatca.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorZatcaResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 ZATCA"
        ],
        "summary": "Update ZATCA seller info",
        "operationId": "put_vendor_v1_zatca",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `zatca.edit`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorZatcaRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/zatca/register": {
      "post": {
        "tags": [
          "Vendor \u00b7 ZATCA"
        ],
        "summary": "Register with ZATCA",
        "operationId": "post_vendor_v1_zatca_register",
        "description": "Onboards the vendor with ZATCA (CSR / compliance). Returns error envelope on failure.\n\n**Requires permission:** `zatca.edit`",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorZatcaRegisterRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/zatca/activate": {
      "post": {
        "tags": [
          "Vendor \u00b7 ZATCA"
        ],
        "summary": "Activate ZATCA",
        "operationId": "post_vendor_v1_zatca_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `zatca.activate`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/zatca/deactivate": {
      "post": {
        "tags": [
          "Vendor \u00b7 ZATCA"
        ],
        "summary": "Deactivate ZATCA",
        "operationId": "post_vendor_v1_zatca_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `zatca.activate`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/reminder-channels": {
      "get": {
        "tags": [
          "Vendor \u00b7 Reminders"
        ],
        "summary": "Reminder channels",
        "operationId": "get_vendor_v1_reminder_channels",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reminder-channels.view`",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorReminderChannelResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Reminders"
        ],
        "summary": "Update reminder channels",
        "operationId": "put_vendor_v1_reminder_channels",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `reminder-channels.edit`",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorReminderChannelRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/reminders": {
      "get": {
        "tags": [
          "Vendor \u00b7 Reminders"
        ],
        "summary": "List reminders",
        "operationId": "get_vendor_v1_reminders",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `vendor-reminders.list`",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/VendorReminderResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/reminders/{reminder}": {
      "get": {
        "tags": [
          "Vendor \u00b7 Reminders"
        ],
        "summary": "Get reminder",
        "operationId": "get_vendor_v1_reminders_reminder",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `vendor-reminders.view`",
        "parameters": [
          {
            "name": "reminder",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorReminderResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 Reminders"
        ],
        "summary": "Update reminder",
        "operationId": "put_vendor_v1_reminders_reminder",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `vendor-reminders.edit`",
        "parameters": [
          {
            "name": "reminder",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VendorReminderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorReminderResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/reminders/{reminder}/activate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Reminders"
        ],
        "summary": "Activate reminder",
        "operationId": "post_vendor_v1_reminders_reminder_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `vendor-reminders.activate`",
        "parameters": [
          {
            "name": "reminder",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/reminders/{reminder}/deactivate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Reminders"
        ],
        "summary": "Deactivate reminder",
        "operationId": "post_vendor_v1_reminders_reminder_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `vendor-reminders.activate`",
        "parameters": [
          {
            "name": "reminder",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/customer/v1/login": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Login",
        "operationId": "post_customer_v1_login",
        "description": "`type=customer`. Sends optional `device_token` header to migrate guest favourites/branch-views to the user.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerCustomerResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/register": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Register",
        "operationId": "post_customer_v1_register",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "description": "_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerRegisterRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerCustomerResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/reset": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Request reset code",
        "operationId": "post_customer_v1_reset",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "description": "_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/check-code": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Verify reset code",
        "operationId": "post_customer_v1_check_code",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "description": "_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/confirm-reset": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Confirm reset",
        "operationId": "post_customer_v1_confirm_reset",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "description": "_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmResetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/send-code": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Send verification code",
        "operationId": "post_customer_v1_send_code",
        "description": "`method` (whatsapp|sms|email) selects the channel; forced to email when username is an e-mail.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendCodeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/update-profile": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Update profile",
        "operationId": "post_customer_v1_update_profile",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/AdminProfileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/change-password": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Change password",
        "operationId": "post_customer_v1_change_password",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/update-email": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Update e-mail",
        "operationId": "post_customer_v1_update_email",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/update-phone": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Update phone",
        "operationId": "post_customer_v1_update_phone",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhoneRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/profile": {
      "get": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Current profile",
        "operationId": "get_customer_v1_profile",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerCustomerResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/customer/v1/set-fcm-token": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Set FCM push token",
        "operationId": "post_customer_v1_set_fcm_token",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerFcmRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/logout": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Logout",
        "operationId": "post_customer_v1_logout",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/customer/v1/home": {
      "get": {
        "tags": [
          "Customer \u00b7 Storefront"
        ],
        "summary": "Home feed",
        "operationId": "get_customer_v1_home",
        "description": "Ordered sections: upcoming bookings (if logged in), favourites, recently_viewed, nearby (needs lat+lng), recently_added, top_booked.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "parameters": [
          {
            "name": "lat",
            "in": "query",
            "required": false,
            "description": "Latitude (with lng).",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "lng",
            "in": "query",
            "required": false,
            "description": "Longitude (with lat).",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/customer/v1/search": {
      "get": {
        "tags": [
          "Customer \u00b7 Storefront"
        ],
        "summary": "Search branches",
        "operationId": "get_customer_v1_search",
        "description": "Only branches with a bookable service+employee chain. Geo-filtered when lat/lng supplied.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Search text.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lat",
            "in": "query",
            "required": false,
            "description": "Latitude (with lng).",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "lng",
            "in": "query",
            "required": false,
            "description": "Longitude (with lat).",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "radius",
            "in": "query",
            "required": false,
            "description": "Radius km.",
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CustomerBranchResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/customer/v1/stores/{slug}": {
      "get": {
        "tags": [
          "Customer \u00b7 Storefront"
        ],
        "summary": "Branch (store) detail",
        "operationId": "get_customer_v1_stores_slug",
        "description": "Resolved by **slug**. Returns the branch with assembled `sections` (offers, featured, per-section services, home_services). Increments view count.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Branch slug.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerBranchResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/customer/v1/home-services": {
      "get": {
        "tags": [
          "Customer \u00b7 Home Services"
        ],
        "summary": "List home services",
        "operationId": "get_customer_v1_home_services",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "description": "_Authentication optional \u2014 behaves differently for guests vs. logged-in users._\n\n**June-2026:** the catalog is now a **mixed** list of services AND offers flagged `is_home_service=1`. Each row is paginated independently and then merged.",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default 15 (max 50).",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Narrow to one branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Search name_ar/name_en.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CustomerHomeServiceResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/customer/v1/home-services/branches": {
      "get": {
        "tags": [
          "Customer \u00b7 Home Services"
        ],
        "summary": "Branches offering home services",
        "operationId": "get_customer_v1_home_services_branches",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "description": "_Authentication optional \u2014 behaves differently for guests vs. logged-in users._\n\n**June-2026:** each branch row now also returns `home_offers_count` and `home_items_count` alongside `home_services_count`.",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default 20 (max 50).",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Branch name search.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CustomerBranchResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/customer/v1/home-services/transit-estimate": {
      "post": {
        "tags": [
          "Customer \u00b7 Home Services"
        ],
        "summary": "Transit estimate",
        "operationId": "post_customer_v1_home_services_transit_estimate",
        "description": "Body: `branch_id` (req), `lat`, `lng` (req). Returns `{ minutes_one_way, minutes_round_trip, branch_lat, branch_lng }`.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/customer/v1/home-services/checkout": {
      "post": {
        "tags": [
          "Customer \u00b7 Home Services"
        ],
        "summary": "Home-service checkout data",
        "operationId": "post_customer_v1_home_services_checkout",
        "description": "Body: `service_id`, `branch_id`, `employee_id` (req), `customer_lat`/`customer_lng` (optional). Returns employees + per-day timeslots.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._\n\n**June-2026:** body schema accepts a bundle of `service_ids[]` and/or `offer_ids[]`. Employee filter changed from `all-of` to `at-least-one`.\n\n**May-2026:** accepts an optional `promo_code`. The response's `bundle` now includes `discount`, `total`, `promo_code` and `promo_error`, and `branch` includes `terms` (the vendor's terms text). Home-checkout also surfaces each employee's `average_rate`.\n\n**Jun-2026:** `employee_id` is now optional \u2014 call without it to fetch just the eligible `employees`, then call again with a chosen `employee_id` to get that employee's `timeslots` (mirrors the regular `/checkout` two-phase contract).",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerHomeServiceCheckoutRequest"
              }
            }
          }
        }
      }
    },
    "/customer/v1/checkout": {
      "post": {
        "tags": [
          "Customer \u00b7 Bookings"
        ],
        "summary": "Checkout (availability) data",
        "operationId": "post_customer_v1_checkout",
        "description": "Returns employees and (when employee+services chosen) timeslots, sub_total, discount, total.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerCheckoutRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/favourites": {
      "get": {
        "tags": [
          "Customer \u00b7 Storefront"
        ],
        "summary": "List favourites",
        "operationId": "get_customer_v1_favourites",
        "description": "Scoped by user (if logged in) else the `device_token` header.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "with_services_only",
            "in": "query",
            "required": false,
            "description": "Only favourites whose branch has a bookable chain.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CustomerFavouriteResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Customer \u00b7 Storefront"
        ],
        "summary": "Toggle favourite",
        "operationId": "post_customer_v1_favourites",
        "description": "Toggle: favouriting an already-favourited branch removes it. Scoped by user or `device_token` header.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerFavouriteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerFavouriteResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/contact_messages": {
      "post": {
        "tags": [
          "Customer \u00b7 Storefront"
        ],
        "summary": "Submit contact message",
        "operationId": "post_customer_v1_contact_messages",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "description": "_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminContactMessageRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true
                    },
                    "data": {
                      "$ref": "#/components/schemas/contact_messages"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/successURL": {
      "post": {
        "tags": [
          "Customer \u00b7 Storefront"
        ],
        "summary": "Payment success callback",
        "operationId": "post_customer_v1_successURL",
        "description": "Gateway callback (encrypted `trandata`). Marks booking paid, creates wallet transactions. Returns **HTML**.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "responses": {
          "200": {
            "description": "HTML page.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/customer/v1/errorURL": {
      "post": {
        "tags": [
          "Customer \u00b7 Storefront"
        ],
        "summary": "Payment error callback",
        "operationId": "post_customer_v1_errorURL",
        "description": "Gateway error callback. Returns **HTML**.\n\n_Authentication optional \u2014 behaves differently for guests vs. logged-in users._",
        "security": [
          {
            "bearerAuth": []
          },
          {}
        ],
        "responses": {
          "200": {
            "description": "HTML page.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/customer/v1/bookings": {
      "post": {
        "tags": [
          "Customer \u00b7 Bookings"
        ],
        "summary": "Create booking",
        "operationId": "post_customer_v1_bookings",
        "description": "Customer-scoped. Validates the slot, supports home-service (transit minutes + surcharge).",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerBookingRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerBookingResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      },
      "get": {
        "tags": [
          "Customer \u00b7 Bookings"
        ],
        "summary": "List my bookings",
        "operationId": "get_customer_v1_bookings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page. Default **30**.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "without_pagination",
            "in": "query",
            "required": false,
            "description": "`true` returns the full collection (no paging).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sort[field]",
            "in": "query",
            "required": false,
            "description": "Sort column (whitelisted per resource; invalid falls back to `id`).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort[direction]",
            "in": "query",
            "required": false,
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search (matches id exactly, or name/description LIKE).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_active",
            "in": "query",
            "required": false,
            "description": "Filter by active flag.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter by branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "employee_id",
            "in": "query",
            "required": false,
            "description": "Filter by employee.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "Filter by date.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Filter by status.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/CustomerBookingResource"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "from": {
                          "type": "integer",
                          "nullable": true
                        },
                        "to": {
                          "type": "integer",
                          "nullable": true
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "first_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "last_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "next_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "prev_page_url": {
                          "type": "string",
                          "nullable": true
                        },
                        "path": {
                          "type": "string"
                        },
                        "links": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      },
                      "description": "Standard Laravel length-aware paginator."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/customer/v1/bookings/{booking}": {
      "get": {
        "tags": [
          "Customer \u00b7 Bookings"
        ],
        "summary": "Get my booking",
        "operationId": "get_customer_v1_bookings_booking",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerBookingResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Customer \u00b7 Bookings"
        ],
        "summary": "Update / cancel booking",
        "operationId": "put_customer_v1_bookings_booking",
        "description": "Cancellation enforces the vendor's cancel policy (lead-time + toggle). `cancel_reason_id` / `cancellation_reason` capture the reason.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerBookingRequestUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerBookingResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/customer/v1/bookings/{booking}/invoice": {
      "get": {
        "tags": [
          "Customer \u00b7 Bookings"
        ],
        "summary": "Booking invoice",
        "operationId": "get_customer_v1_bookings_booking_invoice",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorInvoiceResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/customer/v1/bookings/{booking}/invoice/download": {
      "get": {
        "tags": [
          "Customer \u00b7 Bookings"
        ],
        "summary": "Booking invoice PDF",
        "operationId": "get_customer_v1_bookings_booking_invoice_download",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "PDF document.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/customer/v1/bookings/{booking}/review": {
      "get": {
        "tags": [
          "Customer \u00b7 Reviews"
        ],
        "summary": "My review for a booking",
        "operationId": "get_customer_v1_bookings_booking_review",
        "description": "Returns the latest review for the booking, or `data: null`.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerReviewResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/customer/v1/bookings/{booking}/cancellation-reasons": {
      "get": {
        "tags": [
          "Customer \u00b7 Bookings"
        ],
        "summary": "Cancellation reasons for a booking",
        "operationId": "get_customer_v1_bookings_booking_cancellation_reasons",
        "description": "Union of global + the booking-vendor's active reasons: `[{ id, reason_ar, reason_en, sort, is_global }]`.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/customer/v1/reviews": {
      "post": {
        "tags": [
          "Customer \u00b7 Reviews"
        ],
        "summary": "Submit review",
        "operationId": "post_customer_v1_reviews",
        "description": "Guards: 403 if booking not owned, 422 if not completed, 409 if already reviewed.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerReviewRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerReviewResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.review_submitted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/customer/v1/employees/{employee}": {
      "get": {
        "tags": [
          "Customer \u00b7 Employees"
        ],
        "summary": "Public employee profile",
        "operationId": "get_customer_v1_employees_employee",
        "security": [],
        "description": "Public profile page for a single employee \u2014 bio, photo, portfolio images, average rating, and the first page of customer reviews. Used by the customer app's pre-booking discovery flow. No auth required.",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/CustomerEmployeeProfileResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/customer/v1/employees/{employee}/reviews": {
      "get": {
        "tags": [
          "Customer \u00b7 Employees"
        ],
        "summary": "List employee reviews (paginated)",
        "operationId": "get_customer_v1_employees_employee_reviews",
        "security": [],
        "description": "Paginated list of reviews left for this employee across all their bookings. Use to render the full review list on the employee profile page.",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number (default 1).",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Items per page (default 10, max 50).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer"
                              },
                              "booking_id": {
                                "type": "integer"
                              },
                              "employee_rate": {
                                "type": "integer"
                              },
                              "employee_comment": {
                                "type": "string",
                                "nullable": true
                              },
                              "created_at": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "reviewer_name": {
                                "type": "string",
                                "nullable": true
                              }
                            }
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/employees/{employee}/portfolio": {
      "post": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "Upload portfolio images",
        "operationId": "post_vendor_v1_employees_employee_portfolio",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Upload one or more portfolio images for an employee. **Requires permission:** `employees.edit`. Max 10 images per call, each \u2264 5 MB, PNG/JPG/JPEG.",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePortfolioUploadRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmployeePortfolioImage"
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/employees/{employee}/portfolio/sort": {
      "post": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "Reorder portfolio images",
        "operationId": "post_vendor_v1_employees_employee_portfolio_sort",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Persist a new display order for the employee's portfolio images. **Requires permission:** `employees.edit`.",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePortfolioSortRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/employees/{employee}/portfolio/{image}": {
      "delete": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "Delete portfolio image",
        "operationId": "delete_vendor_v1_employees_employee_portfolio_image",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Soft-delete a single portfolio image. **Requires permission:** `employees.edit`.",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "image",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/employees/{employee}/portfolio/{image}/activate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "Activate portfolio image",
        "operationId": "post_vendor_v1_employees_employee_portfolio_image_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Make an image visible to customers (`is_active = '1'`). **Requires permission:** `employees.edit`.",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "image",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/EmployeePortfolioImage"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.activated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/employees/{employee}/portfolio/{image}/deactivate": {
      "post": {
        "tags": [
          "Vendor \u00b7 Employees"
        ],
        "summary": "Deactivate portfolio image",
        "operationId": "post_vendor_v1_employees_employee_portfolio_image_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Hide an image from customers (`is_active = '0'`). **Requires permission:** `employees.edit`.",
        "parameters": [
          {
            "name": "employee",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "image",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/EmployeePortfolioImage"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deactivated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/my-employee-profile": {
      "get": {
        "tags": [
          "Vendor \u00b7 My Profile"
        ],
        "summary": "Get my profile",
        "operationId": "get_vendor_v1_my_employee_profile",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Read the signed-in employee's own profile (bio, photo, portfolio, working hours, etc). No `employees.view` permission required \u2014 the route is scoped to `currentUser()->employee`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorEmployeeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      },
      "put": {
        "tags": [
          "Vendor \u00b7 My Profile"
        ],
        "summary": "Update my profile",
        "operationId": "put_vendor_v1_my_employee_profile",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Self-service update of bio, photo and name fields only \u2014 does NOT require `employees.edit`.",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/VendorMyProfileUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/VendorEmployeeResource"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/my-employee-profile/portfolio": {
      "post": {
        "tags": [
          "Vendor \u00b7 My Profile"
        ],
        "summary": "Upload to my portfolio",
        "operationId": "post_vendor_v1_my_employee_profile_portfolio",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Add images to my own portfolio. Same rules as the vendor portfolio upload endpoint but scoped to me \u2014 no permission check.",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePortfolioUploadRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 201
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/EmployeePortfolioImage"
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.created_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/my-employee-profile/portfolio/sort": {
      "post": {
        "tags": [
          "Vendor \u00b7 My Profile"
        ],
        "summary": "Reorder my portfolio",
        "operationId": "post_vendor_v1_my_employee_profile_portfolio_sort",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Reorder my own portfolio. No permission check.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmployeePortfolioSortRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.updated_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/my-employee-profile/portfolio/{image}": {
      "delete": {
        "tags": [
          "Vendor \u00b7 My Profile"
        ],
        "summary": "Delete one of my portfolio images",
        "operationId": "delete_vendor_v1_my_employee_profile_portfolio_image",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Soft-delete one of my own portfolio images. No permission check.",
        "parameters": [
          {
            "name": "image",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.deleted_successfully"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/vendor/v1/fcm-token": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Register / refresh push token",
        "operationId": "post_vendor_v1_fcm_token",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Store the authenticated user's **Expo push token** for push notifications. Called from the mobile app on every successful login and on `bootstrapAuth` so the column stays current across reinstalls and device swaps.\n\nThe column is named `fcm_token` for legacy reasons but actually holds an Expo token shape (`ExponentPushToken[\u2026]`); `app/Jobs/PushNotificationJob` POSTs directly to `https://exp.host/--/api/v2/push/send`. **No permission required** \u2014 every authenticated user may manage their own device token.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "fcm_token"
                ],
                "properties": {
                  "fcm_token": {
                    "type": "string",
                    "minLength": 8,
                    "maxLength": 255,
                    "description": "`required|string|min:8|max:255`"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.update_success"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/notification-preferences": {
      "put": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Update notification preferences",
        "operationId": "put_vendor_v1_notification_preferences",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Flip the authenticated user's **master push switch** (`users.push_enabled`). One toggle controls every push notification the backend sends to this user \u2014 1-hour booking reminders **and** the 23:00 daily summary. Does **not** touch the customer-facing vendor reminder channels \u2014 those still live under [`Vendor \u00b7 Reminders`](#tag/vendorreminders).\n\n**No permission required** \u2014 every authenticated user may manage their own preferences. Added June-2026.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "push_enabled"
                ],
                "properties": {
                  "push_enabled": {
                    "type": "boolean",
                    "description": "`required|boolean`"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "push_enabled": {
                          "type": "boolean"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.update_success"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/live-activity-token": {
      "post": {
        "tags": [
          "Vendor \u00b7 Auth"
        ],
        "summary": "Register iOS Live Activity token",
        "operationId": "post_vendor_v1_live_activity_token",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Register the device's iOS **Live Activity push-to-start** token. Auth-only; every device registers its own. Added May-2026.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "live_activity_token"
                ],
                "properties": {
                  "live_activity_token": {
                    "type": "string",
                    "maxLength": 255,
                    "description": "`required|string|max:255`"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": "api.update_success"
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        }
      }
    },
    "/vendor/v1/notification-test": {
      "post": {
        "tags": [
          "Vendor \u00b7 Diagnostics"
        ],
        "summary": "Send a test push",
        "operationId": "post_vendor_v1_notification_test",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Diagnostic.** Sends a test push to the **caller's own** device and returns the raw Expo Push API response. Auth-only \u2014 any logged-in user can verify their own push pipeline.",
        "responses": {
          "200": {
            "description": "Diagnostic result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/vendor/v1/live-activity-test": {
      "post": {
        "tags": [
          "Vendor \u00b7 Diagnostics"
        ],
        "summary": "Fire a test Live Activity",
        "operationId": "post_vendor_v1_live_activity_test",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Diagnostic.** Fires a Live Activity push-to-start to the caller's own device and reports every link in the chain (token, config, APNs response). Auth-only.",
        "responses": {
          "200": {
            "description": "Diagnostic result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/vendor/v1/la-debug": {
      "get": {
        "tags": [
          "Vendor \u00b7 Diagnostics"
        ],
        "summary": "Read Live Activity beacons",
        "operationId": "get_vendor_v1_la_debug",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Diagnostic (temporary).** Reads back the recorded push-to-start lifecycle beacons. Auth-only.",
        "responses": {
          "200": {
            "description": "Diagnostic result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      },
      "post": {
        "tags": [
          "Vendor \u00b7 Diagnostics"
        ],
        "summary": "Record a Live Activity beacon",
        "operationId": "post_vendor_v1_la_debug",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Diagnostic (temporary).** Records a push-to-start lifecycle beacon from the mobile hook. Auth-only.",
        "responses": {
          "200": {
            "description": "Diagnostic result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/vendor/v1/queue-debug": {
      "get": {
        "tags": [
          "Vendor \u00b7 Diagnostics"
        ],
        "summary": "Queue worker health",
        "operationId": "get_vendor_v1_queue_debug",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Diagnostic (temporary).** Reports queue worker health \u2014 pending and failed job counts. Auth-only; remove once the queue is confirmed healthy.",
        "responses": {
          "200": {
            "description": "Diagnostic result.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "pending": {
                          "type": "integer"
                        },
                        "failed": {
                          "type": "integer"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/customer/v1/auth/social": {
      "post": {
        "tags": [
          "Customer \u00b7 Auth"
        ],
        "summary": "Sign in with Google / Apple",
        "operationId": "post_customer_v1_auth_social",
        "security": [],
        "description": "Social sign-in for customers. The provider `id_token` is **verified server-side** (Google tokeninfo / Apple JWKS) \u2014 the client never asserts identity.\n\n- **Existing account** (matched by provider id or verified email): returns the standard customer envelope with `access_token` (200).\n- **New account, no `phone` yet:** returns `{ needs_phone: true, social: {...} }` \u2014 re-call with `phone` to finish signup.\n- **New account with `phone`:** creates the account (avatar imported from the provider) and returns the envelope (201).",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "description": "CustomerResource + `access_token`, or `{needs_phone, social}` for incomplete signups."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerSocialLoginRequest"
              }
            }
          }
        }
      }
    },
    "/customer/v1/stores/{branch}/google-reviews": {
      "get": {
        "tags": [
          "Customer \u00b7 Storefront"
        ],
        "summary": "Live Google reviews for a branch",
        "operationId": "get_customer_v1_stores_branch_google_reviews",
        "security": [],
        "description": "Live Google rating + reviews + photos for the branch page. Returns `null` data when the vendor hasn't enabled `show_google_reviews` or no Place is linked. Reviews are filtered to the vendor's `google_reviews_min_stars` (default 5). Cached ~5 min.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true,
                      "properties": {
                        "rating": {
                          "type": "number"
                        },
                        "user_ratings_total": {
                          "type": "integer"
                        },
                        "reviews": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "photos": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "maps_url": {
                          "type": "string"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Branch **slug**.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/customer/v1/google-photo": {
      "get": {
        "tags": [
          "Customer \u00b7 Storefront"
        ],
        "summary": "Google photo proxy",
        "operationId": "get_customer_v1_google_photo",
        "security": [],
        "description": "Streams a Google Places photo without exposing the API key to the client. `Cache-Control: public, max-age=86400`.",
        "responses": {
          "200": {
            "description": "Image stream (`image/jpeg`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "reference",
            "in": "query",
            "required": true,
            "description": "`required|string` \u2014 Google photo reference.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "maxwidth",
            "in": "query",
            "required": false,
            "description": "`nullable|integer|min:100|max:1600` (default 800).",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/vendor/v1/google-calendar": {
      "get": {
        "tags": [
          "Vendor \u00b7 Google Calendar"
        ],
        "summary": "Connection status",
        "operationId": "get_vendor_v1_google_calendar",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Read the vendor's Google Calendar connection state, available calendars and employee mappings.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/GoogleCalendarStatus"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/vendor/v1/google-calendar/connect": {
      "get": {
        "tags": [
          "Vendor \u00b7 Google Calendar"
        ],
        "summary": "Start OAuth connect",
        "operationId": "get_vendor_v1_google_calendar_connect",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Returns the Google OAuth consent `url` to redirect the user to. Identity is carried in a signed `state`. **Feature-gated** (`google_calendar`).",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "url": {
                          "type": "string"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "description": "Feature not included in the vendor's current package (`checkFeature` gate).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "data": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    },
                    "message": {
                      "type": "string",
                      "example": "\u0647\u0630\u0647 \u0627\u0644\u0645\u064a\u0632\u0629 (\u062a\u0642\u0648\u064a\u0645 Google) \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0629 \u0641\u064a \u0628\u0627\u0642\u062a\u0643 \u0627\u0644\u062d\u0627\u0644\u064a\u0629"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/vendor/v1/google-calendar/callback": {
      "get": {
        "tags": [
          "Vendor \u00b7 Google Calendar"
        ],
        "summary": "OAuth callback (browser)",
        "operationId": "get_vendor_v1_google_calendar_callback",
        "security": [],
        "description": "Google redirects the browser here after consent. **Public** \u2014 identity travels in the signed `state` param. Stores tokens, auto-provisions employee calendars, then redirects back to the dashboard with `google_calendar=connected|error`.",
        "responses": {
          "200": {
            "description": "HTTP 302 redirect back to the dashboard.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "required": false,
            "description": "OAuth authorization code.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Signed state from /connect.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/vendor/v1/google-calendar/disconnect": {
      "post": {
        "tags": [
          "Vendor \u00b7 Google Calendar"
        ],
        "summary": "Disconnect",
        "operationId": "post_vendor_v1_google_calendar_disconnect",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Clears the stored Google tokens and disables sync.",
        "responses": {
          "200": {
            "description": "Disconnected.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/vendor/v1/google-calendar/settings": {
      "put": {
        "tags": [
          "Vendor \u00b7 Google Calendar"
        ],
        "summary": "Update sync settings",
        "operationId": "put_vendor_v1_google_calendar_settings",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Toggle sync and set the default calendar + employee\u2192calendar mappings. **Feature-gated.**",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "description": "Feature not included in the vendor's current package (`checkFeature` gate).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "data": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    },
                    "message": {
                      "type": "string",
                      "example": "\u0647\u0630\u0647 \u0627\u0644\u0645\u064a\u0632\u0629 (\u062a\u0642\u0648\u064a\u0645 Google) \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0629 \u0641\u064a \u0628\u0627\u0642\u062a\u0643 \u0627\u0644\u062d\u0627\u0644\u064a\u0629"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sync_enabled": {
                    "type": "string",
                    "enum": [
                      "0",
                      "1"
                    ],
                    "description": "`sometimes|in:0,1`"
                  },
                  "default_calendar_id": {
                    "type": "string",
                    "nullable": true,
                    "description": "`sometimes|nullable|string|max:255`"
                  },
                  "mappings": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string",
                      "nullable": true
                    },
                    "description": "`sometimes|array` \u2014 employee id \u2192 calendar id (`nullable|string|max:255`)."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/vendor/v1/google-calendar/event": {
      "put": {
        "tags": [
          "Vendor \u00b7 Google Calendar"
        ],
        "summary": "Reschedule a Google event",
        "operationId": "put_vendor_v1_google_calendar_event",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Move an external (non-Streamline) Google event from the vendor calendar UI.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "calendar_id",
                  "event_id",
                  "start_time",
                  "end_time"
                ],
                "properties": {
                  "calendar_id": {
                    "type": "string",
                    "description": "`required|string|max:255`"
                  },
                  "event_id": {
                    "type": "string",
                    "description": "`required|string|max:255`"
                  },
                  "employee_id": {
                    "type": "integer",
                    "description": "`nullable|integer|exists:employees,id`"
                  },
                  "start_time": {
                    "type": "string",
                    "description": "`required|date_format:Y-m-d H:i:s`"
                  },
                  "end_time": {
                    "type": "string",
                    "description": "`required|date_format:Y-m-d H:i:s`"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/vendor/v1/google-calendar/calendar": {
      "post": {
        "tags": [
          "Vendor \u00b7 Google Calendar"
        ],
        "summary": "Create a calendar",
        "operationId": "post_vendor_v1_google_calendar_calendar",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Create a new Google calendar (e.g. per employee).",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "`required|string|min:1|max:120`"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/vendor/v1/branches/places/autocomplete": {
      "get": {
        "tags": [
          "Vendor \u00b7 Google Reviews"
        ],
        "summary": "Places autocomplete",
        "operationId": "get_vendor_v1_branches_places_autocomplete",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Google Places autocomplete proxy for the branch form's \"find my business\". **Requires permission:** `branches.create`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "predictions": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "parameters": [
          {
            "name": "input",
            "in": "query",
            "required": true,
            "description": "`required|string|min:2`",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/vendor/v1/branches/places/details": {
      "get": {
        "tags": [
          "Vendor \u00b7 Google Reviews"
        ],
        "summary": "Place details",
        "operationId": "get_vendor_v1_branches_places_details",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Place metadata (name, address, geometry, rating, photos). **Requires permission:** `branches.create`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "parameters": [
          {
            "name": "place_id",
            "in": "query",
            "required": true,
            "description": "`required|string`",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/vendor/v1/branches/places/photo": {
      "get": {
        "tags": [
          "Vendor \u00b7 Google Reviews"
        ],
        "summary": "Place photo proxy",
        "operationId": "get_vendor_v1_branches_places_photo",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Streams a place photo (key stays server-side). `Cache-Control: public, max-age=86400`. **Requires permission:** `branches.create`.",
        "responses": {
          "200": {
            "description": "Image stream (`image/jpeg`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "parameters": [
          {
            "name": "reference",
            "in": "query",
            "required": true,
            "description": "`required|string`",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "maxwidth",
            "in": "query",
            "required": false,
            "description": "`nullable|integer|min:100|max:1600`",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/vendor/v1/branches/{branch}/google-place": {
      "post": {
        "tags": [
          "Vendor \u00b7 Google Reviews"
        ],
        "summary": "Link branch to a Google Place",
        "operationId": "post_vendor_v1_branches_branch_google_place",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Attach/replace the branch's `google_place_id`. **Permission:** `branches.edit` \u00b7 **Feature:** `google_reviews`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "description": "Feature not included in the vendor's current package (`checkFeature` gate).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "data": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    },
                    "message": {
                      "type": "string",
                      "example": "\u0647\u0630\u0647 \u0627\u0644\u0645\u064a\u0632\u0629 (\u062a\u0642\u0648\u064a\u0645 Google) \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0629 \u0641\u064a \u0628\u0627\u0642\u062a\u0643 \u0627\u0644\u062d\u0627\u0644\u064a\u0629"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "google_place_id": {
                    "type": "string",
                    "nullable": true,
                    "description": "`nullable|string|max:255` \u2014 null to unlink."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/vendor/v1/branches/{branch}/google-reviews": {
      "post": {
        "tags": [
          "Vendor \u00b7 Google Reviews"
        ],
        "summary": "Configure storefront reviews",
        "operationId": "post_vendor_v1_branches_branch_google_reviews",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Toggle `show_google_reviews` + the minimum-stars filter for the customer storefront. **Permission:** `branches.edit` \u00b7 **Feature:** `google_reviews`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "description": "Feature not included in the vendor's current package (`checkFeature` gate).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "data": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    },
                    "message": {
                      "type": "string",
                      "example": "\u0647\u0630\u0647 \u0627\u0644\u0645\u064a\u0632\u0629 (\u062a\u0642\u0648\u064a\u0645 Google) \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0629 \u0641\u064a \u0628\u0627\u0642\u062a\u0643 \u0627\u0644\u062d\u0627\u0644\u064a\u0629"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "show_google_reviews": {
                    "type": "string",
                    "enum": [
                      "0",
                      "1"
                    ]
                  },
                  "min_stars": {
                    "type": "integer",
                    "description": "Reviews below this rating are hidden from customers (vendor_settings.google_reviews_min_stars, default 5)."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/vendor/v1/branches/{branch}/google-stats": {
      "get": {
        "tags": [
          "Vendor \u00b7 Google Reviews"
        ],
        "summary": "Review-intelligence snapshot",
        "operationId": "get_vendor_v1_branches_branch_google_stats",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "The branch's stored Google snapshot \u2014 rating stats, reviews, employee mentions, competitors and insights. 400 when no Place is linked. **Permission:** `branches.view` \u00b7 **Feature:** `google_reviews`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/GoogleReviewStats"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "description": "Feature not included in the vendor's current package (`checkFeature` gate).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "data": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    },
                    "message": {
                      "type": "string",
                      "example": "\u0647\u0630\u0647 \u0627\u0644\u0645\u064a\u0632\u0629 (\u062a\u0642\u0648\u064a\u0645 Google) \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0629 \u0641\u064a \u0628\u0627\u0642\u062a\u0643 \u0627\u0644\u062d\u0627\u0644\u064a\u0629"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/vendor/v1/branches/{branch}/google-stats/refresh": {
      "post": {
        "tags": [
          "Vendor \u00b7 Google Reviews"
        ],
        "summary": "Refresh rating stats + reviews",
        "operationId": "post_vendor_v1_branches_branch_google_stats_refresh",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Re-fetches **rating stats + reviews** from Google/Apify into the snapshot. **Permission:** `branches.edit` \u00b7 **Feature:** `google_reviews`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/GoogleReviewStats"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "description": "Feature not included in the vendor's current package (`checkFeature` gate).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "data": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    },
                    "message": {
                      "type": "string",
                      "example": "\u0647\u0630\u0647 \u0627\u0644\u0645\u064a\u0632\u0629 (\u062a\u0642\u0648\u064a\u0645 Google) \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0629 \u0641\u064a \u0628\u0627\u0642\u062a\u0643 \u0627\u0644\u062d\u0627\u0644\u064a\u0629"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/vendor/v1/branches/{branch}/google-stats/employees/refresh": {
      "post": {
        "tags": [
          "Vendor \u00b7 Google Reviews"
        ],
        "summary": "Refresh employee mentions",
        "operationId": "post_vendor_v1_branches_branch_google_stats_employees_refresh",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Re-fetches **employee mentions** from Google/Apify into the snapshot. **Permission:** `branches.edit` \u00b7 **Feature:** `google_reviews`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/GoogleReviewStats"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "description": "Feature not included in the vendor's current package (`checkFeature` gate).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "data": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    },
                    "message": {
                      "type": "string",
                      "example": "\u0647\u0630\u0647 \u0627\u0644\u0645\u064a\u0632\u0629 (\u062a\u0642\u0648\u064a\u0645 Google) \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0629 \u0641\u064a \u0628\u0627\u0642\u062a\u0643 \u0627\u0644\u062d\u0627\u0644\u064a\u0629"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/vendor/v1/branches/{branch}/google-stats/competitors/refresh": {
      "post": {
        "tags": [
          "Vendor \u00b7 Google Reviews"
        ],
        "summary": "Refresh competitor list + insights",
        "operationId": "post_vendor_v1_branches_branch_google_stats_competitors_refresh",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Re-fetches **competitor list + insights** from Google/Apify into the snapshot. **Permission:** `branches.edit` \u00b7 **Feature:** `google_reviews`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/GoogleReviewStats"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "description": "Feature not included in the vendor's current package (`checkFeature` gate).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false
                    },
                    "data": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    },
                    "message": {
                      "type": "string",
                      "example": "\u0647\u0630\u0647 \u0627\u0644\u0645\u064a\u0632\u0629 (\u062a\u0642\u0648\u064a\u0645 Google) \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0629 \u0641\u064a \u0628\u0627\u0642\u062a\u0643 \u0627\u0644\u062d\u0627\u0644\u064a\u0629"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "branch",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/vendor/v1/packages": {
      "get": {
        "tags": [
          "Vendor \u00b7 Subscriptions"
        ],
        "summary": "List subscribable packages",
        "operationId": "get_vendor_v1_packages",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Active **public** packages the vendor can subscribe/upgrade to (the \"\u0627\u0634\u062a\u0631\u0627\u0643\u064a\" screen). Server forces `is_active=1` + `type=public`. **Permission:** `subscriptions.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "description": "Paginated package list (incl. `features[]`)."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/public/packages": {
      "get": {
        "tags": [
          "Vendor \u00b7 Subscriptions"
        ],
        "summary": "Public packages (marketing page)",
        "operationId": "get_vendor_v1_public_packages",
        "security": [],
        "description": "**Public** \u2014 active public packages for the pre-signup marketing/landing page so a visitor can pick a plan, then register with `package_id`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "description": "Paginated package list."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/vendor/v1/subscriptions/activate-free": {
      "post": {
        "tags": [
          "Vendor \u00b7 Subscriptions"
        ],
        "summary": "Activate a free plan",
        "operationId": "post_vendor_v1_subscriptions_activate_free",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Activates a **price-0** subscription directly, skipping the payment gateway. The service rejects any non-zero price \u2014 can't be used to bypass payment. **Permission:** `subscriptions.pay`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "subscription_id"
                ],
                "properties": {
                  "subscription_id": {
                    "type": "integer",
                    "description": "`required|exists:subscriptions,id`"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/vendor/v1/reminders/reset-defaults": {
      "post": {
        "tags": [
          "Vendor \u00b7 Reminders"
        ],
        "summary": "Reset reminders to platform defaults",
        "operationId": "post_vendor_v1_reminders_reset_defaults",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Restores every vendor reminder to the admin template (content + per-channel contents + duration + channel flags). **Permission:** `vendor-reminders.edit`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/vendor/v1/popular-services": {
      "get": {
        "tags": [
          "Vendor \u00b7 Services"
        ],
        "summary": "Popular-service templates",
        "operationId": "get_vendor_v1_popular_services",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Admin-curated popular-service templates for the mobile create-service picker. Active only, ordered by `sort`. Auth-only \u2014 no permission gate.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AdminDefaultItem"
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          }
        }
      }
    },
    "/admin/v1/integrations": {
      "get": {
        "tags": [
          "Admin \u00b7 Integrations"
        ],
        "summary": "List integrations",
        "operationId": "get_admin_v1_integrations",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `integrations.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AdminIntegration"
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/integrations/{integration}": {
      "get": {
        "tags": [
          "Admin \u00b7 Integrations"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_integrations_integration",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `integrations.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminIntegration"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "integration",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "Admin \u00b7 Integrations"
        ],
        "summary": "Update credentials",
        "operationId": "put_admin_v1_integrations_integration",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update credentials / toggle. Secrets are stored encrypted; masked values in reads. **Requires permission:** `integrations.edit`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminIntegration"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "parameters": [
          {
            "name": "integration",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "credentials": {
                    "type": "object",
                    "description": "`sometimes|array` \u2014 keyed by the integration's `fields`."
                  },
                  "is_active": {
                    "type": "boolean",
                    "description": "`sometimes|boolean`"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/admin/v1/integrations/{integration}/activate": {
      "post": {
        "tags": [
          "Admin \u00b7 Integrations"
        ],
        "summary": "Activate",
        "operationId": "post_admin_v1_integrations_integration_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `integrations.edit`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "integration",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/admin/v1/integrations/{integration}/deactivate": {
      "post": {
        "tags": [
          "Admin \u00b7 Integrations"
        ],
        "summary": "Deactivate",
        "operationId": "post_admin_v1_integrations_integration_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `integrations.edit`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "integration",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/admin/v1/vendors/{vendor}/integrations": {
      "get": {
        "tags": [
          "Admin \u00b7 Integrations"
        ],
        "summary": "Vendor integration adoption",
        "operationId": "get_admin_v1_vendors_vendor_integrations",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Which integrations a given vendor actually uses: `{ zatca, reminders, google_reviews, custom_roles }`. **Requires permission:** `vendor_report.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "zatca": {
                          "type": "object"
                        },
                        "reminders": {
                          "type": "object"
                        },
                        "google_reviews": {
                          "type": "object"
                        },
                        "custom_roles": {
                          "type": "object"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "vendor",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/admin/v1/default-sections": {
      "get": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "List default sections",
        "operationId": "get_admin_v1_default_sections",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `default_sections.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AdminDefaultItem"
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Create default section",
        "operationId": "post_admin_v1_default_sections",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `default_sections.create`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminDefaultItem"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminDefaultItemRequest"
              }
            }
          }
        }
      }
    },
    "/admin/v1/default-sections/{id}": {
      "get": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_default_sections_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `default_sections.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminDefaultItem"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_default_sections_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `default_sections.edit`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminDefaultItem"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminDefaultItemRequest"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_default_sections_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Soft delete. **Requires permission:** `default_sections.delete`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/admin/v1/default-sections/{id}/activate": {
      "post": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Activate",
        "operationId": "post_admin_v1_default_sections_id_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `default_sections.edit`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/admin/v1/default-sections/{id}/deactivate": {
      "post": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Deactivate",
        "operationId": "post_admin_v1_default_sections_id_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `default_sections.edit`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/admin/v1/popular-services": {
      "get": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "List popular services",
        "operationId": "get_admin_v1_popular_services",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `popular_services.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AdminDefaultItem"
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      },
      "post": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Create popular service",
        "operationId": "post_admin_v1_popular_services",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `popular_services.create`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminDefaultItem"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminDefaultItemRequest"
              }
            }
          }
        }
      }
    },
    "/admin/v1/popular-services/{id}": {
      "get": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Get one",
        "operationId": "get_admin_v1_popular_services_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `popular_services.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminDefaultItem"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      },
      "put": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Update",
        "operationId": "put_admin_v1_popular_services_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `popular_services.edit`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "$ref": "#/components/schemas/AdminDefaultItem"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminDefaultItemRequest"
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Delete",
        "operationId": "delete_admin_v1_popular_services_id",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Soft delete. **Requires permission:** `popular_services.delete`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/admin/v1/popular-services/{id}/activate": {
      "post": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Activate",
        "operationId": "post_admin_v1_popular_services_id_activate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `popular_services.edit`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/admin/v1/popular-services/{id}/deactivate": {
      "post": {
        "tags": [
          "Admin \u00b7 Defaults"
        ],
        "summary": "Deactivate",
        "operationId": "post_admin_v1_popular_services_id_deactivate",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "**Requires permission:** `popular_services.edit`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "nullable": true
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/admin/v1/calendar": {
      "post": {
        "tags": [
          "Admin \u00b7 Bookings"
        ],
        "summary": "Vendor calendar (admin view)",
        "operationId": "post_admin_v1_calendar",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "The vendor calendar surface, admin-scoped \u2014 view ANY vendor's day. **Requires permission:** `booking_report.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "description": "Same calendar payload as the vendor endpoint."
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "vendor_id",
                  "date"
                ],
                "properties": {
                  "vendor_id": {
                    "type": "integer",
                    "description": "`required|integer|exists:vendors,id`"
                  },
                  "date": {
                    "type": "string",
                    "description": "`required|date_format:Y-m-d`"
                  },
                  "branch_id": {
                    "type": "integer",
                    "description": "`nullable|integer`"
                  },
                  "employee_id": {
                    "type": "integer",
                    "description": "`nullable|integer`"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/admin/v1/reviews": {
      "get": {
        "tags": [
          "Admin \u00b7 Reviews"
        ],
        "summary": "Cross-platform reviews",
        "operationId": "get_admin_v1_reviews",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "All reviews with filters + a ratings-breakdown summary. **Requires permission:** `booking_report.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        },
                        "current_page": {
                          "type": "integer"
                        },
                        "last_page": {
                          "type": "integer"
                        },
                        "per_page": {
                          "type": "integer"
                        },
                        "total": {
                          "type": "integer"
                        },
                        "summary": {
                          "type": "object",
                          "properties": {
                            "average": {
                              "type": "number"
                            },
                            "count": {
                              "type": "integer"
                            },
                            "breakdown": {
                              "type": "object",
                              "description": "{'1'..'5': count}"
                            }
                          }
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "parameters": [
          {
            "name": "vendor_id",
            "in": "query",
            "required": false,
            "description": "Filter by vendor.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "branch_id",
            "in": "query",
            "required": false,
            "description": "Filter by branch.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "employee_id",
            "in": "query",
            "required": false,
            "description": "Filter by employee.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "rating",
            "in": "query",
            "required": false,
            "description": "Exact stars 1\u20135.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Date from (Y-m-d).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Date to (Y-m-d).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default 20.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/admin/v1/schema": {
      "get": {
        "tags": [
          "Admin \u00b7 Dashboard"
        ],
        "summary": "Live DB schema",
        "operationId": "get_admin_v1_schema",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Live schema introspection for the admin \"\u0642\u0627\u0639\u062f\u0629 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a\" page \u2014 tables, columns, types. **Requires permission:** `home.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/schema/{table}/rows": {
      "get": {
        "tags": [
          "Admin \u00b7 Dashboard"
        ],
        "summary": "Browse table rows",
        "operationId": "get_admin_v1_schema_table_rows",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Read-only paginated row browser for one table. **Requires permission:** `home.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        },
        "parameters": [
          {
            "name": "table",
            "in": "path",
            "required": true,
            "description": "Table name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Default 1.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Default 25.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Free-text search.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/admin/v1/system_notifications/broadcast": {
      "post": {
        "tags": [
          "Admin \u00b7 Content"
        ],
        "summary": "Broadcast push notification",
        "operationId": "post_admin_v1_system_notifications_broadcast",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Queues a push to **every** matching user that has an `fcm_token` (batched 200 at a time). **Requires permission:** `system_notifications.create`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "target": {
                          "type": "string"
                        },
                        "recipients": {
                          "type": "integer"
                        }
                      }
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "422": {
            "$ref": "#/components/responses/ValidationError"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "target",
                  "title",
                  "message"
                ],
                "properties": {
                  "target": {
                    "type": "string",
                    "enum": [
                      "customers",
                      "vendors",
                      "all"
                    ],
                    "description": "`required|in:customers,vendors,all`"
                  },
                  "title": {
                    "type": "string",
                    "description": "`required|string|min:2|max:255`"
                  },
                  "message": {
                    "type": "string",
                    "description": "`required|string|min:2|max:1000`"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/admin/v1/customer_report_list": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Customer report (list)",
        "operationId": "get_admin_v1_customer_report_list",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Paginated customer report. **Requires permission:** `customer_report.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/customer_report_show/{customer}": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Customer report (one)",
        "operationId": "get_admin_v1_customer_report_show",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Single customer report detail. **Requires permission:** `customer_report.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "parameters": [
          {
            "name": "customer",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/admin/v1/booking_report_list": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Booking report (list)",
        "operationId": "get_admin_v1_booking_report_list",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Paginated booking report. **Requires permission:** `booking_report.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        }
      }
    },
    "/admin/v1/booking_report_show/{booking}": {
      "get": {
        "tags": [
          "Admin \u00b7 Reports"
        ],
        "summary": "Booking report (one)",
        "operationId": "get_admin_v1_booking_report_show",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Single booking report detail. **Requires permission:** `booking_report.view`.",
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "integer",
                      "example": 1
                    },
                    "success": {
                      "type": "boolean",
                      "example": true
                    },
                    "status": {
                      "type": "integer",
                      "example": 200
                    },
                    "data": {
                      "type": "object"
                    },
                    "message": {
                      "type": "string",
                      "nullable": true,
                      "example": null
                    },
                    "errors": {
                      "type": "object",
                      "nullable": true,
                      "example": null
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthenticated"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          }
        },
        "parameters": [
          {
            "name": "booking",
            "in": "path",
            "required": true,
            "description": "Resource identifier.",
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Passport personal-access token from login. Send as `Authorization: Bearer <access_token>`."
      }
    },
    "responses": {
      "Unauthenticated": {
        "description": "Missing or invalid bearer token.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/_Unauthenticated"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Authenticated but lacks the required permission (`message: \"You Dont have Permissions\"`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/_ErrorFull"
            },
            "example": {
              "version": 1,
              "success": false,
              "status": 403,
              "data": null,
              "message": "You Dont have Permissions",
              "errors": null
            }
          }
        }
      },
      "ValidationError": {
        "description": "Validation failed (HTTP 422, or 401 for FormRequests that override `failedValidation`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/_ValidationError"
            }
          }
        }
      },
      "NotFound": {
        "description": "Resource not found.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/_ErrorFull"
            }
          }
        }
      }
    },
    "schemas": {
      "users": {
        "type": "object",
        "description": "DB table `users` \u2014 _Authentication & Users_\n\n**Keys / indexes:**\n- created_by \u2192 users.id (onDelete not specified on original create; FK present)\n- updated_by \u2192 users.id\n- country_id \u2192 countries.id ON DELETE CASCADE\n- city_id \u2192 cities.id ON DELETE CASCADE\n- region_id \u2192 regions.id ON DELETE CASCADE\n- UNIQUE `(phone, type)` \u2014 original `phone` unique was dropped (2025_09_20)\n- UNIQUE `(email, type)` \u2014 original `email` unique was dropped (2025_09_25)",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK, auto-inc)` \u00b7 Primary key"
          },
          "first_name": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "last_name": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "email": {
            "type": "string",
            "description": "`varchar(255)` \u00b7 Originally unique; unique dropped, replaced by composite `(email, type)`"
          },
          "phone": {
            "type": "string",
            "description": "`varchar(255)` \u00b7 Originally unique; unique dropped, replaced by composite `(phone, type)`"
          },
          "image": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "two_factor_secret": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "two_factor_recovery_codes": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "two_factor_confirmed_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp`"
          },
          "email_verified_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp`"
          },
          "type": {
            "type": "string",
            "enum": [
              "admin",
              "vendor",
              "customer",
              "employee"
            ],
            "description": "`enum('admin','vendor','customer','employee')` \u00b7 `'employee'` added in 2025_10_05"
          },
          "model_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned`"
          },
          "password": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "active": {
            "type": "string",
            "description": "`int` \u00b7 default `1`"
          },
          "reset_code": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "fcm_token": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "remember_token": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(100)`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "last_login": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp`"
          },
          "birthdate": {
            "type": "string",
            "nullable": true,
            "description": "`date` \u00b7 Added 2024_03_20_022951"
          },
          "country_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 countries.id (added 2024_03_20_022951)"
          },
          "city_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 cities.id"
          },
          "region_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 regions.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "users"
      },
      "password_resets": {
        "type": "object",
        "description": "DB table `password_resets` \u2014 _Authentication & Users_\n\n**Keys / indexes:**\n- INDEX on `email`\n- No primary key.",
        "properties": {
          "email": {
            "type": "string",
            "description": "`varchar(255)` \u00b7 indexed"
          },
          "token": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "created_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 single column, not full timestamps"
          }
        },
        "x-db-table": "password_resets"
      },
      "failed_jobs": {
        "type": "object",
        "description": "DB table `failed_jobs` \u2014 _Authentication & Users_\n\n**Keys / indexes:**\n- UNIQUE on `uuid`",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK, auto-inc)` \u00b7 Primary key"
          },
          "uuid": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 UNIQUE, added 2026_04_04 (after id)"
          },
          "connection": {
            "type": "string",
            "description": "`text`"
          },
          "queue": {
            "type": "string",
            "description": "`text`"
          },
          "payload": {
            "type": "string",
            "description": "`longtext`"
          },
          "exception": {
            "type": "string",
            "description": "`longtext`"
          },
          "failed_at": {
            "type": "string",
            "description": "`timestamp` \u00b7 default `CURRENT_TIMESTAMP` \u00b7 useCurrent"
          }
        },
        "x-db-table": "failed_jobs"
      },
      "cache": {
        "type": "object",
        "description": "DB table `cache` \u2014 _Authentication & Users_",
        "properties": {
          "key": {
            "type": "string",
            "description": "`varchar(255) (PK)` \u00b7 Primary key"
          },
          "value": {
            "type": "string",
            "description": "`mediumtext`"
          },
          "expiration": {
            "type": "string",
            "description": "`int`"
          }
        },
        "x-db-table": "cache"
      },
      "cache_locks": {
        "type": "object",
        "description": "DB table `cache_locks` \u2014 _Authentication & Users_",
        "properties": {
          "key": {
            "type": "string",
            "description": "`varchar(255) (PK)` \u00b7 Primary key"
          },
          "owner": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "expiration": {
            "type": "string",
            "description": "`int`"
          }
        },
        "x-db-table": "cache_locks"
      },
      "categories": {
        "type": "object",
        "description": "DB table `categories` \u2014 _Lookups & Geography_\n\n**Keys / indexes:**\n- created_by \u2192 users.id ON DELETE CASCADE\n- updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name_ar": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "name_en": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "icon": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "categories"
      },
      "countries": {
        "type": "object",
        "description": "DB table `countries` \u2014 _Lookups & Geography_\n\n**Keys / indexes:**\n- created_by \u2192 users.id ON DELETE CASCADE; updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name_ar": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "name_en": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "code": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "countries"
      },
      "regions": {
        "type": "object",
        "description": "DB table `regions` \u2014 _Lookups & Geography_\n\n**Keys / indexes:**\n- country_id \u2192 countries.id ON DELETE CASCADE\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name_ar": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "name_en": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "country_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 countries.id"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "regions"
      },
      "cities": {
        "type": "object",
        "description": "DB table `cities` \u2014 _Lookups & Geography_\n\n**Keys / indexes:**\n- region_id \u2192 regions.id ON DELETE CASCADE\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name_ar": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "name_en": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "region_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 regions.id"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "cities"
      },
      "service_categories": {
        "type": "object",
        "description": "DB table `service_categories` \u2014 _Lookups & Geography_\n\n**Keys / indexes:**\n- category_id \u2192 categories.id ON DELETE CASCADE\n- main_service_category_id \u2192 service_categories.id ON DELETE CASCADE (self-reference)\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name_ar": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "name_en": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "icon": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "type": {
            "type": "string",
            "enum": [
              "main",
              "sub"
            ],
            "description": "`enum('main','sub')`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "category_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 categories.id"
          },
          "main_service_category_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 self FK \u2192 service_categories.id"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "service_categories"
      },
      "cancellation_reasons": {
        "type": "object",
        "description": "DB table `cancellation_reasons` \u2014 _Lookups & Geography_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "reason_ar": {
            "type": "string",
            "description": "`text`"
          },
          "reason_en": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "cancellation_reasons"
      },
      "client_cancellation_reasons": {
        "type": "object",
        "description": "DB table `client_cancellation_reasons` \u2014 _Lookups & Geography_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id ON DELETE SET NULL\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE\n- INDEX `ccr_vendor_active_sort_idx` on `(vendor_id, is_active, sort)`",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "reason_ar": {
            "type": "string",
            "description": "`text`"
          },
          "reason_en": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "vendor_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id, ON DELETE SET NULL (added 2026_05_26)"
          },
          "sort": {
            "type": "integer",
            "description": "`tinyint` \u00b7 default `0` \u00b7 Added 2026_05_26 (after vendor_id)"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "client_cancellation_reasons"
      },
      "vendors": {
        "type": "object",
        "description": "DB table `vendors` \u2014 _Vendors, Branches, Employees_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "commercial_no": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "tax_number": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "`longtext`"
          },
          "website_url": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "twitter": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "instagram": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "snapchat": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "seller_name_en": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 ZATCA, added 2026_01_14"
          },
          "seller_name_ar": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 ZATCA"
          },
          "address": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 ZATCA"
          },
          "zatca_environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ],
            "description": "`enum('sandbox','production')` \u00b7 default `'sandbox'`"
          },
          "zatca_registered": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `0 (false)`"
          },
          "zatca_status": {
            "type": "string",
            "enum": [
              "not_compliant",
              "in_progress",
              "compliant"
            ],
            "description": "`enum('not_compliant','in_progress','compliant')` \u00b7 default `'not_compliant'`"
          },
          "zatca_active": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `0 (false)`"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "vendors"
      },
      "vendor_categories": {
        "type": "object",
        "description": "DB table `vendor_categories` \u2014 _Vendors, Branches, Employees_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id ON DELETE CASCADE; category_id \u2192 categories.id ON DELETE CASCADE\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "vendor_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "category_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 categories.id"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "vendor_categories"
      },
      "vendor_branches": {
        "type": "object",
        "description": "DB table `vendor_branches` \u2014 _Vendors, Branches, Employees_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id; country_id \u2192 countries.id; city_id \u2192 cities.id; region_id \u2192 regions.id; created_by / updated_by \u2192 users.id \u2014 all ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name_ar": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "name_en": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "address": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "image": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "lat": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "long": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "vendor_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "country_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 countries.id"
          },
          "city_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 cities.id"
          },
          "region_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 regions.id"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "vendor_branches"
      },
      "branches": {
        "type": "object",
        "description": "DB table `branches` \u2014 _Vendors, Branches, Employees_\n\n**Keys / indexes:**\n- manager_id \u2192 users.id; vendor_id \u2192 vendors.id; country_id \u2192 countries.id; city_id \u2192 cities.id; region_id \u2192 regions.id; created_by / updated_by \u2192 users.id \u2014 all ON DELETE CASCADE\n- INDEX on `slug`",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "slug": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 indexed; added 2025_12_11 (after name)"
          },
          "address": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "image": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "lat": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "long": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "show_rates": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "manager_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "vendor_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "country_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 countries.id"
          },
          "city_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 cities.id"
          },
          "region_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 regions.id"
          },
          "rate": {
            "type": "number",
            "description": "`decimal(8,2)` \u00b7 default `5` \u00b7 Added 2025_12_10 (after region_id)"
          },
          "bookings": {
            "type": "string",
            "description": "`int` \u00b7 default `0` \u00b7 Added 2025_12_10 (after rate)"
          },
          "views_count": {
            "type": "string",
            "description": "`int` \u00b7 default `0` \u00b7 Added 2025_12_11 (after bookings)"
          },
          "national_address": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 Added 2025_01_06"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "branches"
      },
      "branch_images": {
        "type": "object",
        "description": "DB table `branch_images` \u2014 _Vendors, Branches, Employees_\n\n**Keys / indexes:**\n- branch_id \u2192 branches.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "branch_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 branches.id"
          },
          "image": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "branch_images"
      },
      "branch_views": {
        "type": "object",
        "description": "DB table `branch_views` \u2014 _Vendors, Branches, Employees_\n\n**Keys / indexes:**\n- branch_id \u2192 branches.id (default FK, no explicit onDelete)\n- user_id \u2192 users.id (default FK)\n- No soft deletes.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "branch_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 branches.id"
          },
          "user_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "device_token": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          }
        },
        "x-db-table": "branch_views"
      },
      "favourites": {
        "type": "object",
        "description": "DB table `favourites` \u2014 _Vendors, Branches, Employees_\n\n**Keys / indexes:**\n- branch_id \u2192 branches.id; user_id \u2192 users.id; created_by \u2192 users.id; updated_by \u2192 users.id (default FKs, no explicit onDelete)\n- No soft deletes.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "branch_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 branches.id"
          },
          "user_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "device_token": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          }
        },
        "x-db-table": "favourites"
      },
      "official_hours": {
        "type": "object",
        "description": "DB table `official_hours` \u2014 _Vendors, Branches, Employees_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "start_time": {
            "type": "string",
            "description": "`time`"
          },
          "end_time": {
            "type": "string",
            "description": "`time`"
          },
          "day": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "type": {
            "type": "string",
            "enum": [
              "work",
              "break"
            ],
            "description": "`enum('work','break')` \u00b7 default `'work'`"
          },
          "model_type": {
            "type": "integer",
            "description": "`tinyint` \u00b7 polymorphic discriminator"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "model_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 polymorphic id (no FK)"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "official_hours"
      },
      "employees": {
        "type": "object",
        "description": "DB table `employees` \u2014 _Vendors, Branches, Employees_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id ON DELETE CASCADE; user_id \u2192 users.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "user_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "vendor_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "salary": {
            "type": "number",
            "nullable": true,
            "description": "`decimal(8,2)` \u00b7 default Laravel decimal precision (8,2)"
          },
          "start_date": {
            "type": "string",
            "nullable": true,
            "description": "`date`"
          },
          "end_date": {
            "type": "string",
            "nullable": true,
            "description": "`date`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "job_title": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 Added 2024_09_06"
          },
          "commission_type": {
            "type": "string",
            "enum": [
              "none",
              "fixed",
              "percentage"
            ],
            "description": "`enum('none','fixed','percentage')` \u00b7 default `'none'` \u00b7 Added 2025_11_25"
          },
          "commission": {
            "type": "number",
            "description": "`decimal(8,2)` \u00b7 default `0` \u00b7 Added 2025_11_25"
          },
          "commission_calculation_method": {
            "type": "string",
            "enum": [
              "gross",
              "net"
            ],
            "description": "`enum('gross','net')` \u00b7 default `'gross'` \u00b7 Added 2025_11_25"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "employees"
      },
      "employee_services": {
        "type": "object",
        "description": "DB table `employee_services` \u2014 _Vendors, Branches, Employees_\n\n**Keys / indexes:**\n- service_id \u2192 services.id ON DELETE CASCADE; employee_id \u2192 employees.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "employee_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 employees.id"
          },
          "service_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 services.id"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps (NO soft deletes)"
          }
        },
        "x-db-table": "employee_services"
      },
      "employee_branches": {
        "type": "object",
        "description": "DB table `employee_branches` \u2014 _Vendors, Branches, Employees_\n\n**Keys / indexes:**\n- branch_id \u2192 branches.id ON DELETE CASCADE; employee_id \u2192 employees.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "employee_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 employees.id"
          },
          "branch_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 branches.id"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps (NO soft deletes)"
          }
        },
        "x-db-table": "employee_branches"
      },
      "sections": {
        "type": "object",
        "description": "DB table `sections` \u2014 _Sections, Services, Offers_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name_ar": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "name_en": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "description_ar": {
            "type": "string",
            "nullable": true,
            "description": "`longtext`"
          },
          "description_en": {
            "type": "string",
            "nullable": true,
            "description": "`longtext`"
          },
          "image": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 Made nullable in 2025_05_26"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "sort": {
            "type": "string",
            "description": "`int` \u00b7 default `0` \u00b7 Added 2026_05_20 (after is_active)"
          },
          "vendor_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "sections"
      },
      "services": {
        "type": "object",
        "description": "DB table `services` \u2014 _Sections, Services, Offers_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id; section_id \u2192 sections.id; category_id \u2192 service_categories.id; sub_category_id \u2192 service_categories.id; created_by / updated_by \u2192 users.id \u2014 all ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name_ar": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "name_en": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "description_ar": {
            "type": "string",
            "nullable": true,
            "description": "`longtext`"
          },
          "description_en": {
            "type": "string",
            "nullable": true,
            "description": "`longtext`"
          },
          "vendor_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "section_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 sections.id"
          },
          "category_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 service_categories.id. Made nullable 2025_05_12"
          },
          "sub_category_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 service_categories.id"
          },
          "price": {
            "type": "number",
            "nullable": true,
            "description": "`decimal(8,2)`"
          },
          "service_time": {
            "type": "number",
            "nullable": true,
            "description": "`decimal(8,2)`"
          },
          "extra_time": {
            "type": "number",
            "nullable": true,
            "description": "`decimal(8,2)`"
          },
          "featured": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "is_home_service": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `0 (false)` \u00b7 Added 2026_05_25 (after featured)"
          },
          "home_service_fee": {
            "type": "number",
            "description": "`decimal(8,2)` \u00b7 default `0` \u00b7 Added 2026_05_25 (after is_home_service)"
          },
          "discount_type": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "discount": {
            "type": "number",
            "nullable": true,
            "description": "`decimal(8,2)`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "sort": {
            "type": "string",
            "description": "`int` \u00b7 default `0` \u00b7 Added 2026_05_20 (after is_active)"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "services"
      },
      "service_branches": {
        "type": "object",
        "description": "DB table `service_branches` \u2014 _Sections, Services, Offers_\n\n**Keys / indexes:**\n- branch_id \u2192 branches.id ON DELETE CASCADE; service_id \u2192 services.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "service_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 services.id"
          },
          "branch_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 branches.id"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes added 2025_12_25"
          }
        },
        "x-db-table": "service_branches"
      },
      "service_home_hours": {
        "type": "object",
        "description": "DB table `service_home_hours` \u2014 _Sections, Services, Offers_\n\n**Keys / indexes:**\n- service_id \u2192 services.id ON DELETE CASCADE\n- INDEX `svc_home_hours_svc_day_idx` on `(service_id, day)`",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "service_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 services.id"
          },
          "day": {
            "type": "string",
            "enum": [
              "sat",
              "sun",
              "mon",
              "tue",
              "wed",
              "thu",
              "fri"
            ],
            "description": "`enum('sat','sun','mon','tue','wed','thu','fri')`"
          },
          "start_time": {
            "type": "string",
            "description": "`time`"
          },
          "end_time": {
            "type": "string",
            "description": "`time`"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps (NO soft deletes)"
          }
        },
        "x-db-table": "service_home_hours"
      },
      "offers": {
        "type": "object",
        "description": "DB table `offers` \u2014 _Sections, Services, Offers_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id; section_id \u2192 sections.id; category_id \u2192 service_categories.id; sub_category_id \u2192 service_categories.id; created_by / updated_by \u2192 users.id \u2014 all ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name_ar": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "name_en": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "description_en": {
            "type": "string",
            "nullable": true,
            "description": "`longtext`"
          },
          "description_ar": {
            "type": "string",
            "nullable": true,
            "description": "`longtext`"
          },
          "vendor_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "section_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 sections.id"
          },
          "category_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 service_categories.id. Made nullable 2025_06_04"
          },
          "sub_category_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 service_categories.id"
          },
          "service_price": {
            "type": "number",
            "nullable": true,
            "description": "`decimal(10,2)`"
          },
          "price_type": {
            "type": "string",
            "enum": [
              "service",
              "free",
              "special",
              "discount"
            ],
            "description": "`enum('service','free','special','discount')` \u00b7 default `'service'`"
          },
          "discount_percentage": {
            "type": "number",
            "nullable": true,
            "description": "`decimal(8,2)`"
          },
          "offer_price": {
            "type": "number",
            "nullable": true,
            "description": "`decimal(8,2)`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "sort": {
            "type": "string",
            "description": "`int` \u00b7 default `0` \u00b7 Added 2026_05_20 (after is_active)"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          }
        },
        "x-db-table": "offers"
      },
      "offer_services": {
        "type": "object",
        "description": "DB table `offer_services` \u2014 _Sections, Services, Offers_\n\n**Keys / indexes:**\n- offer_id \u2192 offers.id ON DELETE CASCADE; service_id \u2192 services.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "offer_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 offers.id"
          },
          "service_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 services.id"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps (NO soft deletes)"
          }
        },
        "x-db-table": "offer_services"
      },
      "bookings": {
        "type": "object",
        "description": "DB table `bookings` \u2014 _Bookings & Reviews_\n\n**Keys / indexes:**\n- promo_code_id \u2192 promo_codes.id ON DELETE CASCADE\n- vendor_id \u2192 vendors.id ON DELETE CASCADE\n- offer_id \u2192 offers.id ON DELETE CASCADE\n- user_id \u2192 users.id ON DELETE CASCADE\n- employee_id \u2192 employees.id ON DELETE CASCADE\n- cancel_reason_id \u2192 client_cancellation_reasons.id ON DELETE SET NULL\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE\n- NOTE: `branch_id`, `customer_invoice`, `vendor_invoice` are plain columns with NO foreign key constraints.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "attendance": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "booking_day": {
            "type": "string",
            "nullable": true,
            "description": "`date`"
          },
          "booking_time": {
            "type": "string",
            "nullable": true,
            "description": "`time`"
          },
          "start_time": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Added 2025_07_10 (after booking_time)"
          },
          "end_time": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Added 2025_07_10 (after start_time)"
          },
          "future_booking": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `'0'` \u00b7 Added 2025_11_17 (after end_time)"
          },
          "sub_total": {
            "type": "number",
            "description": "`decimal(8,2)` \u00b7 default `0`"
          },
          "discount": {
            "type": "number",
            "description": "`decimal(8,2)` \u00b7 default `0`"
          },
          "total": {
            "type": "number",
            "description": "`decimal(8,2)` \u00b7 default `0`"
          },
          "vat": {
            "type": "number",
            "description": "`decimal(8,2)` \u00b7 Added 2025_07_16 (after total), NOT NULL no default"
          },
          "employee_commission": {
            "type": "number",
            "description": "`decimal(8,2)` \u00b7 default `0` \u00b7 Added 2025_11_26 (after vat)"
          },
          "status": {
            "type": "string",
            "enum": [
              "confirmed",
              "not_confirmed",
              "completed",
              "not_available",
              "canceled",
              "missed"
            ],
            "description": "`enum('confirmed','not_confirmed','completed','not_available','canceled','missed')` \u00b7 default `'not_confirmed'` \u00b7 See history note below"
          },
          "payment_way": {
            "type": "string",
            "enum": [
              "online",
              "cash"
            ],
            "description": "`enum('online','cash')` \u00b7 default `'cash'`"
          },
          "promo_code_value": {
            "type": "number",
            "nullable": true,
            "description": "`decimal(8,2)` \u00b7 Renamed from `promocode_value` (2025_06_16)"
          },
          "promo_code_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 Renamed from `promocode_id`; FK \u2192 promo_codes.id"
          },
          "notes": {
            "type": "string",
            "nullable": true,
            "description": "`longtext`"
          },
          "cancellation_reason": {
            "type": "string",
            "nullable": true,
            "description": "`text` \u00b7 Added 2026_05_25 (after notes)"
          },
          "canceled_by": {
            "type": "string",
            "enum": [
              "customer",
              "vendor",
              "system"
            ],
            "nullable": true,
            "description": "`enum('customer','vendor','system')` \u00b7 Added 2026_05_25 (after cancellation_reason)"
          },
          "cancel_reason_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 client_cancellation_reasons.id, ON DELETE SET NULL (added 2026_05_26, after canceled_by)"
          },
          "is_home_service": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `0 (false)` \u00b7 Added 2026_05_25 (after canceled_by)"
          },
          "customer_lat": {
            "type": "number",
            "nullable": true,
            "description": "`decimal(10,7)` \u00b7 Added 2026_05_25"
          },
          "customer_lng": {
            "type": "number",
            "nullable": true,
            "description": "`decimal(10,7)` \u00b7 Added 2026_05_25"
          },
          "transit_minutes": {
            "type": "integer",
            "nullable": true,
            "description": "`int unsigned` \u00b7 Added 2026_05_25"
          },
          "customer_address": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(500)` \u00b7 Added 2026_05_25"
          },
          "vendor_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "user_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id. Made nullable 2025_09_12"
          },
          "offer_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 offers.id"
          },
          "employee_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 employees.id"
          },
          "branch_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 Added 2024_05_11 (no FK declared)"
          },
          "customer_invoice": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 Added 2024_05_11 (no FK)"
          },
          "vendor_invoice": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 Added 2024_05_11 (no FK)"
          },
          "confirmation": {
            "type": "string",
            "enum": [
              "confirmed",
              "not_confirmed"
            ],
            "description": "`enum('confirmed','not_confirmed')` \u00b7 default `'confirmed'` \u00b7 Added 2024_12_10"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "payment_status": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "bookings"
      },
      "booking_services": {
        "type": "object",
        "description": "DB table `booking_services` \u2014 _Bookings & Reviews_\n\n**Keys / indexes:**\n- service_id \u2192 services.id ON DELETE CASCADE; booking_id \u2192 bookings.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE\n- offer_id \u2192 offers.id (no explicit onDelete)",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "booking_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 bookings.id"
          },
          "service_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 services.id"
          },
          "offer_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 offers.id (added 2025_07_15, after service_id)"
          },
          "price": {
            "type": "number",
            "description": "`decimal(8,2)` \u00b7 default `0`"
          },
          "vat": {
            "type": "number",
            "description": "`double` \u00b7 Added 2025_07_15 (after price), NOT NULL no default"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          }
        },
        "x-db-table": "booking_services"
      },
      "booking_updates": {
        "type": "object",
        "description": "DB table `booking_updates` \u2014 _Bookings & Reviews_\n\n**Keys / indexes:**\n- booking_id \u2192 bookings.id; created_by \u2192 users.id; updated_by \u2192 users.id (default FKs, no explicit onDelete)",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "booking_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 bookings.id"
          },
          "status": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "booking_updates"
      },
      "reviews": {
        "type": "object",
        "description": "DB table `reviews` \u2014 _Bookings & Reviews_\n\n**Keys / indexes:**\n- booking_id \u2192 bookings.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "employee_rate": {
            "type": "integer",
            "description": "`tinyint` \u00b7 default `1`"
          },
          "employee_comment": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "booking_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 bookings.id"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "reviews"
      },
      "review_reports": {
        "type": "object",
        "description": "DB table `review_reports` \u2014 _Bookings & Reviews_\n\n**Keys / indexes:**\n- review_id \u2192 reviews.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "comment": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "review_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 reviews.id"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "review_reports"
      },
      "tax_invoices": {
        "type": "object",
        "description": "DB table `tax_invoices` \u2014 _Invoicing & ZATCA_\n\n**Keys / indexes:**\n- booking_id \u2192 bookings.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "type": {
            "type": "string",
            "enum": [
              "service",
              "product"
            ],
            "description": "`enum('service','product')`"
          },
          "cost": {
            "type": "number",
            "nullable": true,
            "description": "`float`"
          },
          "booking_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 bookings.id"
          },
          "product_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 no FK"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "email": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "tax_invoices"
      },
      "invoices": {
        "type": "object",
        "description": "DB table `invoices` \u2014 _Invoicing & ZATCA_\n\n**Keys / indexes:**\n- booking_id \u2192 bookings.id; vendor_id \u2192 vendors.id; created_by / updated_by \u2192 users.id \u2014 all ON DELETE CASCADE\n- UNIQUE on `uuid`; UNIQUE on `invoice_number`\n- UNIQUE `invoices_vendor_icv_unique` on `(vendor_id, icv)`\n- INDEX on `zatca_status`",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "uuid": {
            "type": "string",
            "description": "`char(36)` \u00b7 UNIQUE (Laravel `uuid()` default column name `uuid`)"
          },
          "invoice_number": {
            "type": "string",
            "description": "`varchar(255)` \u00b7 UNIQUE"
          },
          "buyer_name": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "buyer_vat_number": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "seller_name": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "seller_vat_number": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "total": {
            "type": "number",
            "description": "`decimal(8,2)`"
          },
          "vat": {
            "type": "number",
            "description": "`decimal(8,2)`"
          },
          "qr_code_base64": {
            "type": "string",
            "description": "`longtext`"
          },
          "type": {
            "type": "string",
            "enum": [
              "customer",
              "vendor"
            ],
            "description": "`enum('customer','vendor')`"
          },
          "booking_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 bookings.id"
          },
          "vendor_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "zatca_status": {
            "type": "string",
            "enum": [
              "pending",
              "skipped",
              "reported",
              "cleared",
              "failed"
            ],
            "description": "`enum('pending','skipped','reported','cleared','failed')` \u00b7 default `'pending'` \u00b7 Added 2026_05_25 (after vendor_id); INDEXED"
          },
          "zatca_environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ],
            "nullable": true,
            "description": "`enum('sandbox','production')`"
          },
          "icv": {
            "type": "integer",
            "nullable": true,
            "description": "`int unsigned` \u00b7 per-vendor counter"
          },
          "pih": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(100)` \u00b7 previous invoice hash"
          },
          "hash": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(100)` \u00b7 this invoice hash"
          },
          "zatca_uuid": {
            "type": "string",
            "nullable": true,
            "description": "`char(36)`"
          },
          "signed_xml": {
            "type": "string",
            "nullable": true,
            "description": "`longtext`"
          },
          "zatca_qr_base64": {
            "type": "string",
            "nullable": true,
            "description": "`longtext`"
          },
          "zatca_response": {
            "type": "object",
            "nullable": true,
            "description": "`json`"
          },
          "zatca_warnings": {
            "type": "object",
            "nullable": true,
            "description": "`json`"
          },
          "zatca_errors": {
            "type": "object",
            "nullable": true,
            "description": "`json`"
          },
          "zatca_attempts": {
            "type": "integer",
            "description": "`tinyint unsigned` \u00b7 default `0`"
          },
          "cleared_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps (NO soft deletes)"
          }
        },
        "x-db-table": "invoices"
      },
      "zatca_egs": {
        "type": "object",
        "description": "DB table `zatca_egs` \u2014 _Invoicing & ZATCA_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id (default FK, no explicit onDelete)",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "vendor_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ],
            "description": "`enum('sandbox','production')` \u00b7 default `'sandbox'`"
          },
          "csr": {
            "type": "string",
            "description": "`longtext`"
          },
          "private_key": {
            "type": "string",
            "description": "`longtext`"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          }
        },
        "x-db-table": "zatca_egs"
      },
      "zatca_credentials": {
        "type": "object",
        "description": "DB table `zatca_credentials` \u2014 _Invoicing & ZATCA_\n\n**Keys / indexes:**\n- egs_id \u2192 zatca_egs.id (default FK, no explicit onDelete)",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "egs_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 zatca_egs.id"
          },
          "request_id": {
            "type": "integer",
            "description": "`bigint` \u00b7 signed bigint"
          },
          "certificate": {
            "type": "string",
            "description": "`longtext`"
          },
          "api_secret": {
            "type": "string",
            "description": "`longtext`"
          },
          "icv": {
            "type": "string",
            "nullable": true,
            "description": "`int`"
          },
          "pih": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          }
        },
        "x-db-table": "zatca_credentials"
      },
      "wallets": {
        "type": "object",
        "description": "DB table `wallets` \u2014 _Wallets & Promotions_\n\n**Keys / indexes:**\n- user_id \u2192 users.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "user_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "balance": {
            "type": "number",
            "description": "`float` \u00b7 default `0`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "wallets"
      },
      "wallet_transactions": {
        "type": "object",
        "description": "DB table `wallet_transactions` \u2014 _Wallets & Promotions_\n\n**Keys / indexes:**\n- wallet_id \u2192 wallets.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE\n- branch_id \u2192 branches.id ON DELETE CASCADE; booking_id \u2192 bookings.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "wallet_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 wallets.id"
          },
          "value": {
            "type": "number",
            "description": "`float` \u00b7 default `0`"
          },
          "description_en": {
            "type": "string",
            "nullable": true,
            "description": "`text` \u00b7 Renamed from `description` (2025_09_23)"
          },
          "description_ar": {
            "type": "string",
            "nullable": true,
            "description": "`text` \u00b7 Added 2025_09_23"
          },
          "type": {
            "type": "string",
            "enum": [
              "debit",
              "credit"
            ],
            "description": "`enum('debit','credit')` \u00b7 default `'debit'`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "branch_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 branches.id (added 2025_01_06)"
          },
          "booking_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 bookings.id (added 2025_11_24)"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "wallet_transactions"
      },
      "promo_codes": {
        "type": "object",
        "description": "DB table `promo_codes` \u2014 _Wallets & Promotions_\n\n**Keys / indexes:**\n- user_id \u2192 users.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "discount_type": {
            "type": "string",
            "enum": [
              "percentage",
              "fixed"
            ],
            "description": "`enum('percentage','fixed')` \u00b7 default `'percentage'`"
          },
          "category_type": {
            "type": "string",
            "enum": [
              "public",
              "private"
            ],
            "description": "`enum('public','private')` \u00b7 default `'public'`"
          },
          "value": {
            "type": "number",
            "description": "`float` \u00b7 default `1`"
          },
          "code": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "start_date": {
            "type": "string",
            "description": "`varchar(255)` \u00b7 stored as string"
          },
          "end_date": {
            "type": "string",
            "description": "`varchar(255)` \u00b7 stored as string"
          },
          "user_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "uses": {
            "type": "string",
            "description": "`int` \u00b7 default `1`"
          },
          "actual_uses": {
            "type": "string",
            "description": "`int` \u00b7 default `0` \u00b7 Added 2026_03_04 (after uses)"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "promo_codes"
      },
      "packages": {
        "type": "object",
        "description": "DB table `packages` \u2014 _Packages & Subscriptions_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name_ar": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "name_en": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "description_ar": {
            "type": "string",
            "description": "`text`"
          },
          "description_en": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "period": {
            "type": "string",
            "enum": [
              "unknown",
              "days",
              "month",
              "quarter",
              "half_year",
              "year"
            ],
            "description": "`enum('unknown','days','month','quarter','half_year','year')` \u00b7 default `'unknown'`"
          },
          "days": {
            "type": "string",
            "nullable": true,
            "description": "`int`"
          },
          "unknown_price": {
            "type": "number",
            "description": "`float` \u00b7 default `0`"
          },
          "days_price": {
            "type": "number",
            "description": "`float` \u00b7 default `0`"
          },
          "month_price": {
            "type": "number",
            "description": "`float` \u00b7 default `0`"
          },
          "quarter_price": {
            "type": "number",
            "description": "`float` \u00b7 default `0`"
          },
          "half_year_price": {
            "type": "number",
            "description": "`float` \u00b7 default `0`"
          },
          "year_price": {
            "type": "number",
            "description": "`float` \u00b7 default `0`"
          },
          "type": {
            "type": "string",
            "enum": [
              "public",
              "private"
            ],
            "description": "`enum('public','private')` \u00b7 default `'public'`"
          },
          "manager_role_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 no FK"
          },
          "subscription_type": {
            "type": "string",
            "enum": [
              "subscribe",
              "commission",
              "subscribe_and_commission"
            ],
            "description": "`enum('subscribe','commission','subscribe_and_commission')` \u00b7 default `'subscribe'`"
          },
          "commission": {
            "type": "number",
            "description": "`float` \u00b7 default `0`"
          },
          "features": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "sms_messages": {
            "type": "string",
            "description": "`int` \u00b7 default `0`"
          },
          "whatsapp_messages": {
            "type": "string",
            "description": "`int` \u00b7 default `0`"
          },
          "is_default": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "policy": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "branches": {
            "type": "string",
            "description": "`int` \u00b7 default `1` \u00b7 Added 2024_03_31"
          },
          "employees": {
            "type": "string",
            "description": "`int` \u00b7 default `1` \u00b7 Added 2024_03_31"
          },
          "customers": {
            "type": "string",
            "description": "`int` \u00b7 default `1` \u00b7 Added 2024_03_31"
          },
          "payments": {
            "type": "string",
            "enum": [
              "cash",
              "percentage",
              "cash_and_percentage"
            ],
            "description": "`enum('cash','percentage','cash_and_percentage')` \u00b7 default `'cash'` \u00b7 Added 2024_03_31; enum expanded 2025_01_06"
          },
          "remove_copy_right": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0` \u00b7 Added 2024_03_31"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "packages"
      },
      "subscriptions": {
        "type": "object",
        "description": "DB table `subscriptions` \u2014 _Packages & Subscriptions_\n\n**Keys / indexes:**\n- package_id \u2192 packages.id ON DELETE CASCADE; vendor_id \u2192 vendors.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "name_ar": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "package_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 packages.id"
          },
          "vendor_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "period": {
            "type": "string",
            "enum": [
              "unknown",
              "days",
              "month",
              "quarter",
              "half_year",
              "year"
            ],
            "description": "`enum('unknown','days','month','quarter','half_year','year')` \u00b7 default `'unknown'`"
          },
          "subscription_type": {
            "type": "string",
            "enum": [
              "subscribe",
              "commission",
              "subscribe_and_commission"
            ],
            "description": "`enum('subscribe','commission','subscribe_and_commission')` \u00b7 default `'subscribe'`"
          },
          "days": {
            "type": "string",
            "nullable": true,
            "description": "`int`"
          },
          "price": {
            "type": "number",
            "description": "`float` \u00b7 default `0`"
          },
          "start_date": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 string"
          },
          "end_date": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 string"
          },
          "payment_date": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 string"
          },
          "commission": {
            "type": "number",
            "description": "`float` \u00b7 default `0`"
          },
          "sms_messages": {
            "type": "string",
            "description": "`int` \u00b7 default `0`"
          },
          "whatsapp_messages": {
            "type": "string",
            "description": "`int` \u00b7 default `0`"
          },
          "auto_renew": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "wait_payment",
              "cancelled",
              "finished",
              "expanded",
              "renewed",
              "suspended",
              "active"
            ],
            "description": "`enum('pending','wait_payment','cancelled','finished','expanded','renewed','suspended','active')` \u00b7 default `'pending'`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "branches": {
            "type": "string",
            "description": "`int` \u00b7 default `1` \u00b7 Added 2024_03_31"
          },
          "employee": {
            "type": "string",
            "description": "`int` \u00b7 default `1` \u00b7 Added 2024_03_31 (note: singular `employee`)"
          },
          "customers": {
            "type": "string",
            "description": "`int` \u00b7 default `1` \u00b7 Added 2024_03_31"
          },
          "payments": {
            "type": "string",
            "enum": [
              "cash",
              "percentage",
              "cash_and_percentage"
            ],
            "description": "`enum('cash','percentage','cash_and_percentage')` \u00b7 default `'cash'` \u00b7 Added 2024_03_31; enum expanded 2025_05_11"
          },
          "remove_copy_right": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0` \u00b7 Added 2024_03_31"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "subscriptions"
      },
      "payment_settings": {
        "type": "object",
        "description": "DB table `payment_settings` \u2014 _Settings_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "online_payment": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "online_on_delivery_payment": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "payment_settings"
      },
      "service_settings": {
        "type": "object",
        "description": "DB table `service_settings` \u2014 _Settings_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "difference_in_min": {
            "type": "string",
            "description": "`int` \u00b7 default `15`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "service_settings"
      },
      "tax_settings": {
        "type": "object",
        "description": "DB table `tax_settings` \u2014 _Settings_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "tax_percentage": {
            "type": "string",
            "description": "`int` \u00b7 default `0`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "tax_settings"
      },
      "notification_settings": {
        "type": "object",
        "description": "DB table `notification_settings` \u2014 _Settings_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "email": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "sms": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "whatsapp": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "notification_settings"
      },
      "user_notification_settings": {
        "type": "object",
        "description": "DB table `user_notification_settings` \u2014 _Settings_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "email": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "sms": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "whatsapp": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "user_notification_settings"
      },
      "language_settings": {
        "type": "object",
        "description": "DB table `language_settings` \u2014 _Settings_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE. `user_id` has NO FK.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "default": {
            "type": "string",
            "enum": [
              "en",
              "ar"
            ],
            "description": "`enum('en','ar')` \u00b7 default `'ar'`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "user_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 Added 2024_03_28 (no FK)"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "language_settings"
      },
      "vendor_settings": {
        "type": "object",
        "description": "DB table `vendor_settings` \u2014 _Settings_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id ON DELETE CASCADE; created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "stock_alert": {
            "type": "integer",
            "description": "`tinyint` \u00b7 default `1`"
          },
          "calender_differance": {
            "type": "integer",
            "description": "`tinyint` \u00b7 default `10`"
          },
          "calender_differance_type": {
            "type": "string",
            "enum": [
              "fixed",
              "vary"
            ],
            "description": "`enum('fixed','vary')` \u00b7 default `'fixed'`"
          },
          "booking_differance": {
            "type": "integer",
            "description": "`tinyint` \u00b7 default `30` \u00b7 Default changed from 1 \u2192 30 (2025_05_07)"
          },
          "booking_range": {
            "type": "string",
            "enum": [
              "one_month",
              "twelve_month"
            ],
            "description": "`enum('one_month',...,'twelve_month')` \u00b7 default `'one_month'` \u00b7 12 values: one_month, two_month, three_month, four_month, five_month, six_month, seven_month, eight_month, nine_month, ten_month, eleven_month, twelve_month"
          },
          "cancel_booking": {
            "type": "integer",
            "description": "`tinyint` \u00b7 default `1`"
          },
          "reschedule_booking": {
            "type": "integer",
            "description": "`tinyint` \u00b7 default `1`"
          },
          "reviews_enabled": {
            "type": "integer",
            "description": "`tinyint` \u00b7 default `1` \u00b7 Added 2026_05_26 (after reschedule_booking)"
          },
          "vendor_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "is_system": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "accept_payment": {
            "type": "string",
            "enum": [
              "cash",
              "online",
              "both"
            ],
            "description": "`enum('cash','online','both')` \u00b7 default `'both'` \u00b7 Added 2024_09_21"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "vendor_settings"
      },
      "system_notifications": {
        "type": "object",
        "description": "DB table `system_notifications` \u2014 _Content & Misc_\n\n**Keys / indexes:**\n- sender_id / receiver_id / created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "message": {
            "type": "string",
            "description": "`text`"
          },
          "sender_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "receiver_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "url": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "is_read": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "is_system": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "system_notifications"
      },
      "help_centers": {
        "type": "object",
        "description": "DB table `help_centers` \u2014 _Content & Misc_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "title": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "image": {
            "type": "string",
            "nullable": true,
            "description": "`text`"
          },
          "video": {
            "type": "string",
            "description": "`text` \u00b7 NOT NULL"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "help_centers"
      },
      "term_conditions": {
        "type": "object",
        "description": "DB table `term_conditions` \u2014 _Content & Misc_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE. `vendor_id` has NO FK.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "content": {
            "type": "string",
            "description": "`longtext`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "is_system": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0` \u00b7 Added 2024_03_28"
          },
          "vendor_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 Added 2024_03_28 (no FK)"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "term_conditions"
      },
      "privacy_policies": {
        "type": "object",
        "description": "DB table `privacy_policies` \u2014 _Content & Misc_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE. `vendor_id` has NO FK.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "content": {
            "type": "string",
            "description": "`longtext`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "is_system": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0` \u00b7 Added 2024_03_28"
          },
          "vendor_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 Added 2024_03_28 (no FK)"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "privacy_policies"
      },
      "f_a_q_s": {
        "type": "object",
        "description": "DB table `f_a_q_s` \u2014 _Content & Misc_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "question": {
            "type": "string",
            "description": "`text`"
          },
          "answer": {
            "type": "string",
            "description": "`text`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "f_a_q_s"
      },
      "contact_messages": {
        "type": "object",
        "description": "DB table `contact_messages` \u2014 _Content & Misc_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "message": {
            "type": "string",
            "description": "`text`"
          },
          "name": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "email": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "is_read": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `0`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "contact_messages"
      },
      "banners": {
        "type": "object",
        "description": "DB table `banners` \u2014 _Content & Misc_\n\n**Keys / indexes:**\n- created_by / updated_by \u2192 users.id ON DELETE CASCADE",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "title": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "url": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "image": {
            "type": "string",
            "description": "`varchar(255)` \u00b7 NOT NULL"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "banners"
      },
      "reminder_channels": {
        "type": "object",
        "description": "DB table `reminder_channels` \u2014 _Reminders_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id (default FK, no explicit onDelete)",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "vendor_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "email_enabled": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `1 (true)`"
          },
          "sms_enabled": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `1 (true)`"
          },
          "whatsapp_enabled": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `1 (true)`"
          },
          "push_enabled": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `1 (true)`"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          }
        },
        "x-db-table": "reminder_channels"
      },
      "reminders": {
        "type": "object",
        "description": "DB table `reminders` \u2014 _Reminders_\n\n**Keys / indexes:**\n- created_by \u2192 users.id; updated_by \u2192 users.id (default FKs)\n- UNIQUE `(type, event_type)`",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "type": {
            "type": "string",
            "enum": [
              "reminder",
              "alert"
            ],
            "description": "`enum('reminder','alert')` \u00b7 default `'alert'`"
          },
          "event_type": {
            "type": "string",
            "enum": [
              "new_booking",
              "rescheduled_booking",
              "cancelled_booking",
              "customer_did_not_show_up",
              "completed_booking",
              "new_booking_reminder"
            ],
            "description": "`enum('new_booking','rescheduled_booking','cancelled_booking','customer_did_not_show_up','completed_booking','new_booking_reminder')`"
          },
          "sort": {
            "type": "string",
            "description": "`int` \u00b7 NOT NULL no default"
          },
          "icon": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)`"
          },
          "name": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "description": {
            "type": "string",
            "description": "`text`"
          },
          "content": {
            "type": "string",
            "description": "`longtext`"
          },
          "duration": {
            "type": "string",
            "description": "`int` \u00b7 default `0`"
          },
          "is_active": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `1 (true)`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "reminders"
      },
      "vendor_reminders": {
        "type": "object",
        "description": "DB table `vendor_reminders` \u2014 _Reminders_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id; reminder_id \u2192 reminders.id; created_by \u2192 users.id; updated_by \u2192 users.id (default FKs)",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK)`"
          },
          "vendor_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id"
          },
          "reminder_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 reminders.id"
          },
          "content": {
            "type": "string",
            "description": "`longtext`"
          },
          "duration": {
            "type": "string",
            "description": "`int` \u00b7 default `0`"
          },
          "email_enabled": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `1 (true)`"
          },
          "sms_enabled": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `1 (true)`"
          },
          "whatsapp_enabled": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `1 (true)`"
          },
          "push_enabled": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `1 (true)`"
          },
          "is_active": {
            "type": "integer",
            "description": "`boolean (tinyint 1)` \u00b7 default `1 (true)`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps"
          },
          "deleted_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Soft deletes"
          }
        },
        "x-db-table": "vendor_reminders"
      },
      "jobs": {
        "type": "object",
        "description": "DB table `jobs` \u2014 _Queue_\n\n**Keys / indexes:**\n- INDEX on `queue`",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK, auto-inc)` \u00b7 Primary key"
          },
          "queue": {
            "type": "string",
            "description": "`varchar(255)` \u00b7 indexed"
          },
          "payload": {
            "type": "string",
            "description": "`longtext`"
          },
          "attempts": {
            "type": "integer",
            "description": "`tinyint unsigned`"
          },
          "reserved_at": {
            "type": "integer",
            "nullable": true,
            "description": "`int unsigned`"
          },
          "available_at": {
            "type": "integer",
            "description": "`int unsigned`"
          },
          "created_at": {
            "type": "integer",
            "description": "`int unsigned` \u00b7 (integer, not timestamp)"
          }
        },
        "x-db-table": "jobs"
      },
      "permissions": {
        "type": "object",
        "description": "DB table `permissions` \u2014 _Spatie Permission Tables (teams=false)_\n\n**Keys / indexes:**\n- UNIQUE `(name, guard_name)` (from create migration)\n- UNIQUE `(name, guard_name, model_type)` (added 2024_04_05_003109)",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK, auto-inc)` \u00b7 Primary key"
          },
          "name": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "guard_name": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "group": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "model_type": {
            "type": "string",
            "enum": [
              "admin",
              "vendor",
              "general"
            ],
            "description": "`enum('admin','vendor','general')` \u00b7 default `'admin'`"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps (NO soft deletes)"
          }
        },
        "x-db-table": "permissions"
      },
      "roles": {
        "type": "object",
        "description": "DB table `roles` \u2014 _Spatie Permission Tables (teams=false)_\n\n**Keys / indexes:**\n- vendor_id \u2192 vendors.id ON DELETE CASCADE\n- created_by \u2192 users.id ON DELETE CASCADE; updated_by \u2192 users.id ON DELETE CASCADE\n- UNIQUE `(name, vendor_id)`",
        "properties": {
          "id": {
            "type": "integer",
            "description": "`bigint unsigned (PK, auto-inc)` \u00b7 Primary key"
          },
          "name": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "can_edit": {
            "type": "integer",
            "description": "`tinyint` \u00b7 default `1`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`enum('0','1')` \u00b7 default `1`"
          },
          "display_name": {
            "type": "string",
            "nullable": true,
            "description": "`varchar(255)` \u00b7 (this is on roles, NOT removed)"
          },
          "model_type": {
            "type": "string",
            "enum": [
              "admin",
              "vendor"
            ],
            "description": "`enum('admin','vendor')` \u00b7 default `'admin'`"
          },
          "model_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned`"
          },
          "vendor_id": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 vendors.id (added 2025_08_07, after model_id)"
          },
          "guard_name": {
            "type": "string",
            "description": "`varchar(255)`"
          },
          "created_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id (added 2025_10_27)"
          },
          "updated_by": {
            "type": "integer",
            "nullable": true,
            "description": "`bigint unsigned` \u00b7 FK \u2192 users.id (added 2025_10_27)"
          },
          "created_at / updated_at": {
            "type": "string",
            "nullable": true,
            "description": "`timestamp` \u00b7 Timestamps (NO soft deletes)"
          }
        },
        "x-db-table": "roles"
      },
      "model_has_permissions": {
        "type": "object",
        "description": "DB table `model_has_permissions` \u2014 _Spatie Permission Tables (teams=false)_\n\n**Keys / indexes:**\n- permission_id \u2192 permissions.id ON DELETE CASCADE\n- INDEX `model_has_permissions_model_id_model_type_index` on `(model_id, model_type)`\n- PRIMARY KEY `(permission_id, model_id, model_type)`",
        "properties": {
          "permission_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 permissions.id"
          },
          "model_type": {
            "type": "string",
            "description": "`varchar(255)` \u00b7 morph type"
          },
          "model_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 morph id"
          }
        },
        "x-db-table": "model_has_permissions"
      },
      "model_has_roles": {
        "type": "object",
        "description": "DB table `model_has_roles` \u2014 _Spatie Permission Tables (teams=false)_\n\n**Keys / indexes:**\n- role_id \u2192 roles.id ON DELETE CASCADE\n- INDEX `model_has_roles_model_id_model_type_index` on `(model_id, model_type)`\n- PRIMARY KEY `(role_id, model_id, model_type)`",
        "properties": {
          "role_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 roles.id"
          },
          "model_type": {
            "type": "string",
            "description": "`varchar(255)` \u00b7 morph type"
          },
          "model_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 morph id"
          }
        },
        "x-db-table": "model_has_roles"
      },
      "role_has_permissions": {
        "type": "object",
        "description": "DB table `role_has_permissions` \u2014 _Spatie Permission Tables (teams=false)_\n\n**Keys / indexes:**\n- permission_id \u2192 permissions.id ON DELETE CASCADE\n- role_id \u2192 roles.id ON DELETE CASCADE\n- PRIMARY KEY `(permission_id, role_id)`",
        "properties": {
          "permission_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 permissions.id"
          },
          "role_id": {
            "type": "integer",
            "description": "`bigint unsigned` \u00b7 FK \u2192 roles.id"
          }
        },
        "x-db-table": "role_has_permissions"
      },
      "PermissionResource": {
        "type": "object",
        "description": "Resource `PermissionResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      },
      "AdminAdminResource": {
        "type": "object",
        "description": "Resource `Admin\\AdminResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "model_id": {
            "type": "integer"
          },
          "first_name": {
            "type": "string"
          },
          "last_name": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "birthdate": {
            "type": "string",
            "description": "date-time"
          },
          "image": {
            "type": "string"
          },
          "photo": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/VendorRoleResource"
          },
          "permissions": {
            "$ref": "#/components/schemas/PermissionResource"
          },
          "access_token": {
            "type": "string"
          },
          "is_super_admin": {
            "type": "boolean",
            "description": "Super admins bypass per-permission checks. Jun-2026."
          }
        },
        "required": [
          "id"
        ]
      },
      "AdminReminderResource": {
        "type": "object",
        "description": "Resource `Admin\\ReminderResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          },
          "event_type": {
            "type": "string"
          },
          "sort": {
            "type": "integer"
          },
          "icon": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "duration": {
            "type": "integer"
          },
          "is_active": {
            "type": "boolean"
          },
          "content_push": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **push** (falls back to `content` when empty). Jun-2026."
          },
          "content_sms": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **sms** (falls back to `content` when empty). Jun-2026."
          },
          "content_whatsapp": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **whatsapp** (falls back to `content` when empty). Jun-2026."
          },
          "content_email": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **email** (falls back to `content` when empty). Jun-2026."
          },
          "email_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "email channel enabled."
          },
          "sms_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "sms channel enabled."
          },
          "whatsapp_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "whatsapp channel enabled."
          },
          "push_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "push channel enabled."
          }
        },
        "required": [
          "id"
        ]
      },
      "CustomerBookingResource": {
        "type": "object",
        "description": "Resource `Customer\\BookingResource`. Fields only present in single/detail responses: `employee`, `payment_way`, `payment_status`, `duration`, `notes`, `cancellation_reason`, `canceled_by`, `is_home_service`, `customer_lat`, `customer_lng`, `transit_minutes`, `customer_address`, `booking_items`, `sub_total`, `discount`, `total`, `customer_invoice`, `promo_code`, `can_cancel`, `can_review`, `cancel_blocked_reason`, `cancel_window_minutes`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "description": "date-time"
          },
          "start_time": {
            "type": "string",
            "description": "**Customer-facing** appointment start. For home bookings the one-way travel buffer is stripped so the customer sees the actual service window, not the reserved block. Added May-2026."
          },
          "end_time": {
            "type": "string",
            "description": "**Customer-facing** appointment end (travel buffer stripped for home bookings)."
          },
          "branch": {
            "$ref": "#/components/schemas/CustomerBranchResource"
          },
          "employee": {
            "$ref": "#/components/schemas/CustomerEmployeeResource",
            "description": "only in detail/show responses"
          },
          "payment_way": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "payment_status": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "duration": {
            "type": "integer",
            "description": "only in detail/show responses"
          },
          "notes": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "cancellation_reason": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "canceled_by": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "is_home_service": {
            "type": "boolean",
            "description": "only in detail/show responses"
          },
          "customer_lat": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "customer_lng": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "transit_minutes": {
            "type": "integer",
            "description": "only in detail/show responses"
          },
          "customer_address": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "booking_items": {
            "$ref": "#/components/schemas/VendorBookingServiceResource",
            "description": "only in detail/show responses"
          },
          "sub_total": {
            "type": "number",
            "description": "only in detail/show responses"
          },
          "discount": {
            "type": "number",
            "description": "only in detail/show responses"
          },
          "total": {
            "type": "number",
            "description": "only in detail/show responses"
          },
          "customer_invoice": {
            "$ref": "#/components/schemas/VendorInvoiceResource",
            "description": "only in detail/show responses"
          },
          "promo_code": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "can_cancel": {
            "type": "boolean",
            "description": "only in detail/show responses"
          },
          "can_review": {
            "type": "boolean",
            "description": "only in detail/show responses"
          },
          "cancel_blocked_reason": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "cancel_window_minutes": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "bundle_duration": {
            "type": "integer",
            "description": "For an offer line item: the offer's **full** duration (sum of constituent services' `service_time`). Fixes line items that previously showed only the first service's duration. Added May-2026."
          }
        },
        "required": [
          "id"
        ]
      },
      "CustomerBranchResource": {
        "type": "object",
        "description": "Resource `Customer\\BranchResource`. Fields only present in single/detail responses: `vendor`, `sections`, `employees`, `working_hours`, `in_favourites`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "photo": {
            "type": "string"
          },
          "lat": {
            "type": "number"
          },
          "lng": {
            "type": "number"
          },
          "images": {
            "type": "string"
          },
          "services_count": {
            "type": "integer"
          },
          "services": {
            "$ref": "#/components/schemas/VendorServiceResource"
          },
          "average_rate": {
            "type": "string"
          },
          "vendor": {
            "$ref": "#/components/schemas/CustomerVendorResource",
            "description": "only in detail/show responses"
          },
          "sections": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "employees": {
            "$ref": "#/components/schemas/CustomerEmployeeResource",
            "description": "only in detail/show responses"
          },
          "working_hours": {
            "$ref": "#/components/schemas/VendorOfficialHourResource",
            "description": "only in detail/show responses"
          },
          "in_favourites": {
            "type": "boolean",
            "description": "only in detail/show responses"
          },
          "home_services_count": {
            "type": "integer",
            "description": "Count of services on this branch flagged `is_home_service=1`. Surfaces on the `/customer/v1/home-services/branches` endpoint."
          },
          "home_offers_count": {
            "type": "integer",
            "description": "Count of vendor offers flagged `is_home_service=1` (May-2026). Surfaces on `/customer/v1/home-services/branches`."
          },
          "home_items_count": {
            "type": "integer",
            "description": "`home_services_count + home_offers_count` \u2014 the customer card label uses this so the count reflects both services and offers."
          },
          "reviews_count": {
            "type": "integer",
            "description": "Sample size backing `average_rate`. UI renders \"4.6 \u00b7 123 reviews\"; returns `0` when the branch has no reviews. Added May-2026."
          },
          "has_home_services": {
            "type": "boolean",
            "description": "`true` when the branch has at least one active home-eligible service. Use to render a home-delivery badge on branch listings. Added May-2026."
          },
          "offers_home_services": {
            "type": "boolean",
            "description": "Master flag \u2014 branch delivers at least some services to the home. Added May-2026."
          },
          "is_cloud": {
            "type": "boolean",
            "description": "Home-**only** (\u201ccloud\u201d / \u0633\u062d\u0627\u0628\u064a) branch \u2014 no in-branch storefront tab; every card flips to home mode. Implies `offers_home_services`. Vendor toggles this explicitly. Added May-2026."
          }
        },
        "required": [
          "id"
        ]
      },
      "CustomerCustomerResource": {
        "type": "object",
        "description": "Resource `Customer\\CustomerResource`. Fields only present in single/detail responses: `first_name`, `last_name`, `type`, `active`, `birthdate`, `photo`, `created_at`, `access_token`, `created_by`, `updated_by`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "bookings_count": {
            "type": "integer"
          },
          "first_name": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "last_name": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "type": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "active": {
            "type": "boolean",
            "description": "only in detail/show responses"
          },
          "birthdate": {
            "type": "string",
            "description": "date-time \u00b7 only in detail/show responses"
          },
          "photo": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "created_at": {
            "type": "string",
            "description": "date-time \u00b7 only in detail/show responses"
          },
          "access_token": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "created_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "updated_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          }
        },
        "required": [
          "id"
        ]
      },
      "CustomerEmployeeResource": {
        "type": "object",
        "description": "Resource `Customer\\EmployeeResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "job_title": {
            "type": "string"
          },
          "photo": {
            "type": "string"
          },
          "average_rate": {
            "type": "string"
          },
          "reviews_count": {
            "type": "integer",
            "description": "Sample size for the employee's rating. Self-consistent with `average_rate` when the vendor toggles `reviews_enabled`. Added May-2026."
          }
        },
        "required": [
          "id"
        ]
      },
      "CustomerFavouriteResource": {
        "type": "object",
        "description": "Resource `Customer\\FavouriteResource`.",
        "properties": {
          "Merges": {
            "$ref": "#/components/schemas/CustomerBranchResource"
          }
        }
      },
      "CustomerHomeServiceResource": {
        "type": "object",
        "description": "Resource `Customer\\HomeServiceResource`.",
        "properties": {}
      },
      "CustomerOfferResource": {
        "type": "object",
        "description": "Resource `Customer\\OfferResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "service_time": {
            "type": "string"
          },
          "section": {
            "$ref": "#/components/schemas/VendorSectionResource"
          },
          "is_home_service": {
            "type": "boolean",
            "description": "Whether this offer is bookable as home delivery."
          },
          "home_service_fee": {
            "type": "number",
            "description": "Surcharge applied when checking out as home."
          }
        },
        "required": [
          "id"
        ]
      },
      "CustomerReviewResource": {
        "type": "object",
        "description": "Resource `Customer\\ReviewResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "employee_rate": {
            "type": "string"
          },
          "employee_comment": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "description": "date-time"
          },
          "booking_id": {
            "type": "integer"
          }
        },
        "required": [
          "id"
        ]
      },
      "CustomerVendorResource": {
        "type": "object",
        "description": "Resource `Customer\\VendorResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "website_url": {
            "type": "string"
          },
          "instagram": {
            "type": "string"
          },
          "accept_payment": {
            "type": "string"
          },
          "terms": {
            "type": "string"
          },
          "tiktok": {
            "type": "string",
            "nullable": true,
            "description": "TikTok handle/URL. Replaced Twitter + Snapchat (retired May-2026; their DB columns are left in place but unused)."
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorBookingResource": {
        "type": "object",
        "description": "Resource `Vendor\\BookingResource`. Fields only present in single/detail responses: `total`, `vat`, `employee_commission`, `payment_way`, `notes`, `cancellation_reason`, `canceled_by`, `cancel_reason`, `is_home_service`, `customer_lat`, `customer_lng`, `transit_minutes`, `customer_address`, `employee`, `customer`, `booking_items`, `customer_invoice`, `vendor_invoice`, `created_by`, `updated_by`, `promo_code`, `updates`, `review`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "created_at": {
            "type": "string",
            "description": "date-time"
          },
          "start_time": {
            "type": "string",
            "description": "date-time"
          },
          "end_time": {
            "type": "string",
            "description": "date-time"
          },
          "future_booking": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "payment_status": {
            "type": "string"
          },
          "branch": {
            "$ref": "#/components/schemas/VendorBranchResource"
          },
          "vendor": {
            "$ref": "#/components/schemas/VendorVendorResource"
          },
          "total": {
            "type": "number",
            "description": "only in detail/show responses"
          },
          "vat": {
            "type": "number",
            "description": "only in detail/show responses"
          },
          "employee_commission": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "payment_way": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "notes": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "cancellation_reason": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "canceled_by": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "cancel_reason": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "is_home_service": {
            "type": "boolean",
            "description": "only in detail/show responses"
          },
          "customer_lat": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "customer_lng": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "transit_minutes": {
            "type": "integer",
            "description": "only in detail/show responses"
          },
          "customer_address": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "employee": {
            "$ref": "#/components/schemas/VendorEmployeeResource",
            "description": "only in detail/show responses"
          },
          "customer": {
            "$ref": "#/components/schemas/CustomerCustomerResource",
            "description": "only in detail/show responses"
          },
          "booking_items": {
            "$ref": "#/components/schemas/VendorBookingServiceResource",
            "description": "only in detail/show responses"
          },
          "customer_invoice": {
            "$ref": "#/components/schemas/VendorInvoiceResource",
            "description": "only in detail/show responses"
          },
          "vendor_invoice": {
            "$ref": "#/components/schemas/VendorInvoiceResource",
            "description": "only in detail/show responses"
          },
          "created_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "updated_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "promo_code": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "updates": {
            "$ref": "#/components/schemas/VendorBookingUpdateResource",
            "description": "only in detail/show responses"
          },
          "review": {
            "$ref": "#/components/schemas/CustomerReviewResource",
            "description": "only in detail/show responses"
          },
          "bundle_duration": {
            "type": "integer",
            "description": "For an offer line item: the offer's **full** duration (sum of constituent services' `service_time`). Fixes line items that previously showed only the first service's duration. Added May-2026."
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorBookingServiceResource": {
        "type": "object",
        "description": "Resource `Vendor\\BookingServiceResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "service_id": {
            "type": "integer"
          },
          "offer_id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "duration": {
            "type": "integer"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorBookingUpdateResource": {
        "type": "object",
        "description": "Resource `Vendor\\BookingUpdateResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "description": "date-time"
          },
          "creator": {
            "type": "string"
          },
          "creator_type": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorBranchResource": {
        "type": "object",
        "description": "Resource `Vendor\\BranchResource`. Fields only present in single/detail responses: `address`, `lat`, `long`, `photo`, `images`, `official_hours`, `employees`, `created_by`, `updated_by`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "is_active": {
            "type": "boolean"
          },
          "vendor": {
            "$ref": "#/components/schemas/VendorVendorResource"
          },
          "country": {
            "$ref": "#/components/schemas/VendorCountryResource"
          },
          "region": {
            "$ref": "#/components/schemas/VendorRegionResource"
          },
          "city": {
            "$ref": "#/components/schemas/VendorCityResource"
          },
          "bookings_count": {
            "type": "integer"
          },
          "employees_count": {
            "type": "integer"
          },
          "address": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "lat": {
            "type": "number",
            "description": "only in detail/show responses"
          },
          "long": {
            "type": "number",
            "description": "only in detail/show responses"
          },
          "photo": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "images": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "official_hours": {
            "$ref": "#/components/schemas/VendorOfficialHourResource",
            "description": "only in detail/show responses"
          },
          "employees": {
            "$ref": "#/components/schemas/VendorEmployeeResource",
            "description": "only in detail/show responses"
          },
          "created_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "updated_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "home_pricing_type": {
            "type": "string",
            "enum": [
              "fixed",
              "by_distance"
            ],
            "description": "How the home-delivery fee is computed for this branch. Added May-2026."
          },
          "home_fixed_fee": {
            "type": "number",
            "description": "Flat home-delivery fee when `home_pricing_type = fixed`."
          },
          "home_pricing_tiers": {
            "type": "array",
            "description": "Distance-based fee tiers (only when `home_pricing_type = by_distance`). Loaded only when the relation is eager-loaded.",
            "items": {
              "type": "object",
              "properties": {
                "up_to_minutes": {
                  "type": "integer",
                  "description": "Upper bound of one-way driving minutes for this tier."
                },
                "fee": {
                  "type": "number",
                  "description": "Fee charged for trips within this tier."
                }
              }
            }
          },
          "offers_home_services": {
            "type": "boolean",
            "description": "Master flag \u2014 branch delivers at least some services to the home. Added May-2026."
          },
          "is_cloud": {
            "type": "boolean",
            "description": "Home-**only** (\u201ccloud\u201d / \u0633\u062d\u0627\u0628\u064a) branch \u2014 no in-branch storefront tab; every card flips to home mode. Implies `offers_home_services`. Vendor toggles this explicitly. Added May-2026."
          },
          "slug": {
            "type": "string",
            "nullable": true,
            "description": "Branch slug \u2014 used for the QR deep-link and the home wizard's employee fetch."
          },
          "google_place_id": {
            "type": "string",
            "nullable": true
          },
          "google_rating": {
            "type": "number",
            "nullable": true,
            "description": "Synced Google rating (1 decimal)."
          },
          "google_user_ratings_total": {
            "type": "integer",
            "nullable": true
          },
          "show_google_reviews": {
            "type": "boolean"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorCalendarBookingResource": {
        "type": "object",
        "description": "Resource `Vendor\\CalendarBookingResource`.",
        "properties": {}
      },
      "VendorCalendarEmployeeResource": {
        "type": "object",
        "description": "Resource `Vendor\\CalendarEmployeeResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "bookings": {
            "$ref": "#/components/schemas/VendorCalendarBookingResource"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorCancellationReasonResource": {
        "type": "object",
        "description": "Resource `Vendor\\CancellationReasonResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "reason_ar": {
            "type": "string"
          },
          "reason_en": {
            "type": "string"
          },
          "sort": {
            "type": "integer"
          },
          "is_active": {
            "type": "boolean"
          },
          "vendor_id": {
            "type": "integer"
          },
          "created_at": {
            "type": "string",
            "description": "date-time"
          },
          "updated_at": {
            "type": "string",
            "description": "date-time"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorCityResource": {
        "type": "object",
        "description": "Resource `Vendor\\CityResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorCountryResource": {
        "type": "object",
        "description": "Resource `Vendor\\CountryResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorCreatorResource": {
        "type": "object",
        "description": "Resource `Vendor\\CreatorResource`. Fields only present in single/detail responses: `id`, `name`, `email`.",
        "properties": {
          "id": {
            "type": "integer",
            "description": "only in detail/show responses"
          },
          "name": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "email": {
            "type": "string",
            "description": "only in detail/show responses"
          }
        }
      },
      "VendorEmployeeResource": {
        "type": "object",
        "description": "Resource `Vendor\\EmployeeResource`. Fields only present in single/detail responses: `first_name`, `last_name`, `phone`, `services`, `start_date`, `end_date`, `salary`, `commission_type`, `commission`, `commission_calculation_method`, `working_hours`, `break_hours`, `created_by`, `updated_by`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "job_title": {
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/VendorRoleResource"
          },
          "photo": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "is_active": {
            "type": "boolean"
          },
          "branches": {
            "$ref": "#/components/schemas/VendorBranchResource"
          },
          "vendor": {
            "$ref": "#/components/schemas/VendorVendorResource"
          },
          "bookings_count": {
            "type": "integer"
          },
          "branches_count": {
            "type": "integer"
          },
          "services_count": {
            "type": "integer"
          },
          "first_name": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "last_name": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "phone": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "services": {
            "$ref": "#/components/schemas/VendorServiceResource",
            "description": "only in detail/show responses"
          },
          "start_date": {
            "type": "string",
            "description": "date-time \u00b7 only in detail/show responses"
          },
          "end_date": {
            "type": "string",
            "description": "date-time \u00b7 only in detail/show responses"
          },
          "salary": {
            "type": "number",
            "description": "only in detail/show responses"
          },
          "commission_type": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "commission": {
            "type": "number",
            "description": "only in detail/show responses"
          },
          "commission_calculation_method": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "working_hours": {
            "$ref": "#/components/schemas/VendorOfficialHourResource",
            "description": "only in detail/show responses"
          },
          "break_hours": {
            "$ref": "#/components/schemas/VendorOfficialHourResource",
            "description": "only in detail/show responses"
          },
          "created_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "updated_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "bio": {
            "type": "string",
            "nullable": true,
            "description": "Free-text bio \u00b7 only in detail/show responses"
          },
          "portfolio_images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmployeePortfolioImage"
            },
            "description": "Public portfolio images \u00b7 only in detail/show responses \u00b7 loaded only when the relation is eager-loaded."
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorInvoiceResource": {
        "type": "object",
        "description": "Resource `Vendor\\InvoiceResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "invoice_number": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "total": {
            "type": "number"
          },
          "vat": {
            "type": "number"
          },
          "created_at": {
            "type": "string",
            "description": "date-time"
          },
          "created_by": {
            "$ref": "#/components/schemas/VendorCreatorResource"
          },
          "updated_by": {
            "$ref": "#/components/schemas/VendorCreatorResource"
          },
          "zatca_status": {
            "type": "string"
          },
          "zatca_environment": {
            "type": "string"
          },
          "cleared_at": {
            "type": "string",
            "description": "date-time"
          },
          "zatca_warnings": {
            "type": "string"
          },
          "zatca_errors": {
            "type": "string"
          },
          "zatca_attempts": {
            "type": "string"
          },
          "document_type": {
            "type": "string",
            "description": "`invoice` | `credit_note` | `debit_note`. Added May-2026."
          },
          "net_total": {
            "type": "number",
            "description": "Net total after applying any linked credit/debit notes."
          },
          "net_vat": {
            "type": "number",
            "description": "Net VAT after notes."
          },
          "note_reason": {
            "type": "string",
            "nullable": true,
            "description": "Reason text for a credit/debit note \u00b7 detail only."
          },
          "reference_invoice_id": {
            "type": "integer",
            "nullable": true,
            "description": "The original invoice this note adjusts \u00b7 detail only."
          },
          "notes": {
            "type": "array",
            "description": "Linked credit/debit notes for this invoice \u00b7 detail only. Each note carries its own ZATCA QR.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "invoice_number": {
                  "type": "string"
                },
                "document_type": {
                  "type": "string",
                  "enum": [
                    "credit_note",
                    "debit_note"
                  ]
                },
                "total": {
                  "type": "number"
                },
                "vat": {
                  "type": "number"
                },
                "note_reason": {
                  "type": "string",
                  "nullable": true
                },
                "zatca_status": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time"
                }
              }
            }
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorOfferResource": {
        "type": "object",
        "description": "Resource `Vendor\\OfferResource`. Fields only present in single/detail responses: `price_type`, `description`, `services`, `created_by`, `updated_by`. Also includes `home_hours` in detail responses.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "sort": {
            "type": "integer"
          },
          "is_active": {
            "type": "boolean"
          },
          "offer_price": {
            "type": "number"
          },
          "service_time": {
            "type": "string"
          },
          "discount_percentage": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "description": "date-time"
          },
          "section": {
            "$ref": "#/components/schemas/VendorSectionResource"
          },
          "vendor": {
            "$ref": "#/components/schemas/VendorVendorResource"
          },
          "price_type": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "description": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "services": {
            "$ref": "#/components/schemas/VendorServiceResource",
            "description": "only in detail/show responses"
          },
          "created_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "updated_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "is_home_service": {
            "type": "boolean",
            "description": "Whether this offer is opted-in to home delivery (May-2026)."
          },
          "home_service_fee": {
            "type": "number",
            "description": "Per-offer home-delivery surcharge (decimal 8,2, default 0). When booking the offer as home, the BookingService takes `MAX(offer.home_service_fee, underlying services' fees)`."
          },
          "home_hours": {
            "type": "array",
            "description": "Per-weekday home-availability windows \u00b7 only in detail/show responses \u00b7 loaded only when relation is eager-loaded.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "day": {
                  "type": "string",
                  "enum": [
                    "sat",
                    "sun",
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri"
                  ]
                },
                "start_time": {
                  "type": "string",
                  "description": "`H:i`"
                },
                "end_time": {
                  "type": "string",
                  "description": "`H:i`"
                }
              }
            }
          },
          "home_only": {
            "type": "boolean",
            "nullable": true,
            "description": "When `true`, the offer is withheld from the in-branch storefront and only appears in home mode. Added May-2026."
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorOfficialHourResource": {
        "type": "object",
        "description": "Resource `Vendor\\OfficialHourResource`.",
        "properties": {
          "day": {
            "type": "string"
          },
          "start_time": {
            "type": "string",
            "description": "date-time"
          },
          "end_time": {
            "type": "string",
            "description": "date-time"
          }
        }
      },
      "VendorPermissionResource": {
        "type": "object",
        "description": "Resource `Vendor\\PermissionResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "selected": {
            "type": "boolean"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorPromoCodeResource": {
        "type": "object",
        "description": "Resource `Vendor\\PromoCodeResource`. Fields only present in single/detail responses: `discount_type`, `value`, `created_by`, `updated_by`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "description": "date-time"
          },
          "start_date": {
            "type": "string",
            "description": "date-time"
          },
          "end_date": {
            "type": "string",
            "description": "date-time"
          },
          "uses": {
            "type": "integer"
          },
          "is_active": {
            "type": "boolean"
          },
          "discount_type": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "value": {
            "type": "integer",
            "description": "only in detail/show responses"
          },
          "created_by": {
            "$ref": "#/components/schemas/CustomerCustomerResource",
            "description": "only in detail/show responses"
          },
          "updated_by": {
            "$ref": "#/components/schemas/CustomerCustomerResource",
            "description": "only in detail/show responses"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorRegionResource": {
        "type": "object",
        "description": "Resource `Vendor\\RegionResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorReminderChannelResource": {
        "type": "object",
        "description": "Resource `Vendor\\ReminderChannelResource`.",
        "properties": {
          "email_enabled": {
            "type": "boolean"
          },
          "sms_enabled": {
            "type": "boolean"
          },
          "whatsapp_enabled": {
            "type": "boolean"
          },
          "push_enabled": {
            "type": "boolean"
          }
        }
      },
      "VendorReminderResource": {
        "type": "object",
        "description": "Resource `Vendor\\ReminderResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "type": {
            "type": "string"
          },
          "event_type": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "duration": {
            "type": "integer"
          },
          "email_enabled": {
            "type": "boolean"
          },
          "sms_enabled": {
            "type": "boolean"
          },
          "whatsapp_enabled": {
            "type": "boolean"
          },
          "push_enabled": {
            "type": "boolean"
          },
          "is_active": {
            "type": "boolean"
          },
          "content_push": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **push** (falls back to `content` when empty). Jun-2026."
          },
          "content_sms": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **sms** (falls back to `content` when empty). Jun-2026."
          },
          "content_whatsapp": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **whatsapp** (falls back to `content` when empty). Jun-2026."
          },
          "content_email": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **email** (falls back to `content` when empty). Jun-2026."
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorReviewResource": {
        "type": "object",
        "description": "Resource `Vendor\\ReviewResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "employee_rate": {
            "type": "string"
          },
          "employee_comment": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "description": "date-time"
          },
          "booking_id": {
            "type": "integer"
          },
          "reviewer_name": {
            "type": "string"
          },
          "reviewer_email": {
            "type": "string"
          },
          "booking": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorRoleResource": {
        "type": "object",
        "description": "Resource `Vendor\\RoleResource`. Fields only present in single/detail responses: `permissions`, `created_by`, `updated_by`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "model_type": {
            "type": "string"
          },
          "is_active": {
            "type": "boolean"
          },
          "permissions": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "created_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "updated_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorSectionResource": {
        "type": "object",
        "description": "Resource `Vendor\\SectionResource`. Fields only present in single/detail responses: `created_by`, `updated_by`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "sort": {
            "type": "integer"
          },
          "is_active": {
            "type": "boolean"
          },
          "services": {
            "$ref": "#/components/schemas/VendorServiceResource"
          },
          "created_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "updated_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorServiceResource": {
        "type": "object",
        "description": "Resource `Vendor\\ServiceResource`. Fields only present in single/detail responses: `description`, `extra_time`, `branches`, `employees`, `home_hours`, `created_by`, `updated_by`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "sort": {
            "type": "integer"
          },
          "is_active": {
            "type": "boolean"
          },
          "price": {
            "type": "number"
          },
          "service_time": {
            "type": "string"
          },
          "featured": {
            "type": "boolean"
          },
          "is_home_service": {
            "type": "boolean"
          },
          "home_service_fee": {
            "type": "string"
          },
          "section": {
            "$ref": "#/components/schemas/VendorSectionResource"
          },
          "vendor": {
            "$ref": "#/components/schemas/VendorVendorResource"
          },
          "branches_count": {
            "type": "integer"
          },
          "employees_count": {
            "type": "integer"
          },
          "description": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "extra_time": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "branches": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "employees": {
            "$ref": "#/components/schemas/VendorEmployeeResource",
            "description": "only in detail/show responses"
          },
          "home_hours": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "created_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "updated_by": {
            "$ref": "#/components/schemas/VendorCreatorResource",
            "description": "only in detail/show responses"
          },
          "home_only": {
            "type": "boolean",
            "nullable": true,
            "description": "When `true`, the item is withheld from the in-branch storefront and only appears in home mode. Added May-2026."
          },
          "sub_services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubService"
            },
            "description": "Variants \u00b7 loaded when the relation is eager-loaded."
          },
          "has_sub_services": {
            "type": "boolean",
            "description": "Quick flag for list views."
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorSettingResource": {
        "type": "object",
        "description": "Resource `Vendor\\SettingResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "booking_differance": {
            "type": "string"
          },
          "calender_differance": {
            "type": "string"
          },
          "cancel_booking": {
            "type": "string"
          },
          "reviews_enabled": {
            "type": "string"
          },
          "terms": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorVendorResource": {
        "type": "object",
        "description": "Resource `Vendor\\VendorResource`. Fields only present in single/detail responses: `model_id`, `first_name`, `last_name`, `email`, `phone`, `type`, `active`, `birthdate`, `image`, `photo`, `role`, `permissions`, `access_token`, `website_url`, `twitter`, `instagram`, `snapchat`, `terms`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "model_id": {
            "type": "integer",
            "description": "only in detail/show responses"
          },
          "first_name": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "last_name": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "email": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "phone": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "type": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "active": {
            "type": "boolean",
            "description": "only in detail/show responses"
          },
          "birthdate": {
            "type": "string",
            "description": "date-time \u00b7 only in detail/show responses"
          },
          "image": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "photo": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "role": {
            "$ref": "#/components/schemas/VendorRoleResource",
            "description": "only in detail/show responses"
          },
          "permissions": {
            "$ref": "#/components/schemas/PermissionResource",
            "description": "only in detail/show responses"
          },
          "access_token": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "website_url": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "instagram": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "terms": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "push_enabled": {
            "type": "boolean",
            "description": "Per-user master switch for push notifications. Controls both 1-hour booking reminders and the 23:00 daily summary. Defaults to `true` for existing users. Toggle via `PUT /vendor/v1/notification-preferences`. Added June-2026."
          },
          "tiktok": {
            "type": "string",
            "nullable": true,
            "description": "TikTok handle/URL. Replaced Twitter + Snapchat (retired May-2026; their DB columns are left in place but unused)."
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorWalletResource": {
        "type": "object",
        "description": "Resource `Vendor\\WalletResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "balance": {
            "type": "integer"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorWalletTransactionResource": {
        "type": "object",
        "description": "Resource `Vendor\\WalletTransactionResource`.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "value": {
            "type": "integer"
          },
          "description": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "description": "date-time"
          },
          "branch": {
            "$ref": "#/components/schemas/VendorBranchResource"
          }
        },
        "required": [
          "id"
        ]
      },
      "VendorZatcaResource": {
        "type": "object",
        "description": "Resource `Vendor\\ZatcaResource`. Fields only present in single/detail responses: `seller_name_en`, `seller_name_ar`, `tax_number`, `address`, `environment`, `registered`, `status`, `active`.",
        "properties": {
          "seller_name_en": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "seller_name_ar": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "tax_number": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "address": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "environment": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "registered": {
            "type": "boolean",
            "description": "only in detail/show responses"
          },
          "status": {
            "type": "string",
            "description": "only in detail/show responses"
          },
          "active": {
            "type": "boolean",
            "description": "only in detail/show responses"
          }
        }
      },
      "AdminActivateVendorRequest": {
        "type": "object",
        "properties": {
          "vendor_id": {
            "type": "string",
            "description": "`required|exists:vendors,id`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "vendor_id",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nvendor_id => required|exists:vendors,id\nis_active => required|in:0,1\n```"
      },
      "AdminBannerRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "description": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "url": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "image": {
            "type": "string",
            "format": "binary",
            "description": "`required|image|mimes:jpeg,png,jpg,gif|max:20000`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "image",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\ntitle => nullable|string|min:2\ndescription => nullable|string|min:2\nurl => nullable|string|min:2\nimage => required|image|mimes:jpeg,png,jpg,gif|max:20000\nis_active => required|in:0,1\n```"
      },
      "AdminBannerRequestUpdate": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "description": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "url": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "image": {
            "type": "string",
            "format": "binary",
            "description": "`sometimes|image|mimes:jpeg,png,jpg,gif|max:20000`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\ntitle => nullable|string|min:2\ndescription => nullable|string|min:2\nurl => nullable|string|min:2\nimage => sometimes|image|mimes:jpeg,png,jpg,gif|max:20000\nis_active => required|in:0,1\n```"
      },
      "AdminBookingCustomerInvoiceRequest": {
        "type": "object",
        "properties": {
          "booking_id": {
            "type": "string",
            "description": "`required|exists:bookings,id`"
          }
        },
        "required": [
          "booking_id"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbooking_id => required|exists:bookings,id\n```"
      },
      "AdminContactMessageRequest": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "name": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`required|email`"
          }
        },
        "required": [
          "message",
          "name",
          "email"
        ],
        "description": "Validation rules (verbatim):\n\n```\nmessage => required|string|min:2\nname => required|string|min:2\nemail => required|email\n```"
      },
      "AdminContactMessageRequestUpdate": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "name": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`required|email`"
          },
          "is_read": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          }
        },
        "required": [
          "message",
          "name",
          "email"
        ],
        "description": "Validation rules (verbatim):\n\n```\nmessage => required|string|min:2\nname => required|string|min:2\nemail => required|email\nis_read => sometimes|in:0,1\n```"
      },
      "AdminFAQRequest": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "answer": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          }
        },
        "required": [
          "question",
          "answer"
        ],
        "description": "Validation rules (verbatim):\n\n```\nquestion => required|string|min:2\nanswer => required|string|min:2\nis_active => sometimes|in:0,1\n```"
      },
      "AdminHelpCenterRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "description": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "image": {
            "type": "string",
            "format": "binary",
            "description": "`required|image|mimes:jpeg,png,jpg,gif|max:20000`"
          },
          "video": {
            "type": "string",
            "format": "binary",
            "description": "`['required', 'file', 'max:20000', new ValidVideoFile()]`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "title",
          "description",
          "image",
          "video",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\ntitle => required|string|min:2\ndescription => required|string|min:2\nimage => required|image|mimes:jpeg,png,jpg,gif|max:20000\nvideo => ['required', 'file', 'max:20000', new ValidVideoFile()]\nis_active => required|in:0,1\n```"
      },
      "AdminHelpCenterRequestUpdate": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "description": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "image": {
            "type": "string",
            "format": "binary",
            "description": "`sometimes|image|mimes:jpeg,png,jpg,gif|max:20000`"
          },
          "video": {
            "type": "string",
            "format": "binary",
            "description": "`['sometimes', 'file', 'max:20000', new ValidVideoFile()]`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "title",
          "description",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\ntitle => required|string|min:2\ndescription => required|string|min:2\nimage => sometimes|image|mimes:jpeg,png,jpg,gif|max:20000\nvideo => ['sometimes', 'file', 'max:20000', new ValidVideoFile()]\nis_active => required|in:0,1\n```"
      },
      "AdminLanguageSettingRequest": {
        "type": "object",
        "properties": {
          "default": {
            "type": "string",
            "enum": [
              "en",
              "ar"
            ],
            "description": "`required|in:en,ar`"
          }
        },
        "required": [
          "default"
        ],
        "description": "Validation rules (verbatim):\n\n```\ndefault => required|in:en,ar\n```"
      },
      "AdminNotificationSettingRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "whatsapp": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "sms": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "email",
          "whatsapp",
          "sms"
        ],
        "description": "Validation rules (verbatim):\n\n```\nemail => required|in:0,1\nwhatsapp => required|in:0,1\nsms => required|in:0,1\n```"
      },
      "AdminPackageRequest": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2|unique:categories,name_ar`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2|unique:categories,name_en`"
          },
          "description_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "description_en": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "period": {
            "type": "string",
            "enum": [
              "unknown",
              "days",
              "month",
              "quarter",
              "half_year",
              "year"
            ],
            "description": "`required|in:unknown,days,month,quarter,half_year,year`"
          },
          "type": {
            "type": "string",
            "enum": [
              "public",
              "private"
            ],
            "description": "`required|in:public,private`"
          },
          "subscription_type": {
            "type": "string",
            "enum": [
              "subscribe",
              "commission",
              "subscribe_and_commission"
            ],
            "description": "`required|in:subscribe,commission,subscribe_and_commission`"
          },
          "days": {
            "type": "integer",
            "description": "`required_if:period,days|integer|min:0`"
          },
          "unknown_price": {
            "type": "number",
            "description": "`required_if:period,unknown|numeric|min:0`"
          },
          "days_price": {
            "type": "number",
            "description": "`required_if:period,days|numeric|min:0`"
          },
          "month_price": {
            "type": "number",
            "description": "`required_if:period,month|numeric|min:0`"
          },
          "quarter_price": {
            "type": "number",
            "description": "`required_if:period,quarter|numeric|min:0`"
          },
          "half_year_price": {
            "type": "number",
            "description": "`required_if:period,half_year|numeric|min:0`"
          },
          "year_price": {
            "type": "number",
            "description": "`required_if:period,year|numeric|min:0`"
          },
          "manager_role_id": {
            "type": "integer",
            "description": "`sometimes|integer`"
          },
          "commission": {
            "type": "number",
            "description": "`sometimes|numeric|min:0`"
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "`sometimes|nullable|array` \u2014 feature keys this package unlocks (e.g. `google_calendar`, `google_reviews`, `zatca`, `advanced_reports`). Copied onto the subscription at purchase; gated via `checkFeature:<key>` middleware."
          },
          "sms_messages": {
            "type": "integer",
            "description": "`required|integer|min:0`"
          },
          "whatsapp_messages": {
            "type": "integer",
            "description": "`required|integer|min:0`"
          },
          "branches": {
            "type": "integer",
            "description": "`required|integer|min:1`"
          },
          "employees": {
            "type": "integer",
            "description": "`required|integer|min:1`"
          },
          "customers": {
            "type": "integer",
            "description": "`required|integer|min:1`"
          },
          "remove_copy_right": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "payments": {
            "type": "string",
            "enum": [
              "cash",
              "percentage",
              "cash_and_percentage"
            ],
            "description": "`required|in:cash,percentage,cash_and_percentage`"
          },
          "policy": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "is_default": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "name_ar",
          "name_en",
          "description_ar",
          "description_en",
          "period",
          "type",
          "subscription_type",
          "sms_messages",
          "whatsapp_messages",
          "branches",
          "employees",
          "customers",
          "remove_copy_right",
          "payments",
          "policy",
          "is_default",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2|unique:categories,name_ar\nname_en => required|string|min:2|unique:categories,name_en\ndescription_ar => required|string|min:2\ndescription_en => required|string|min:2\nperiod => required|in:unknown,days,month,quarter,half_year,year\ntype => required|in:public,private\nsubscription_type => required|in:subscribe,commission,subscribe_and_commission\ndays => required_if:period,days|integer|min:0\nunknown_price => required_if:period,unknown|numeric|min:0\ndays_price => required_if:period,days|numeric|min:0\nmonth_price => required_if:period,month|numeric|min:0\nquarter_price => required_if:period,quarter|numeric|min:0\nhalf_year_price => required_if:period,half_year|numeric|min:0\nyear_price => required_if:period,year|numeric|min:0\nmanager_role_id => sometimes|integer\ncommission => sometimes|numeric|min:0\nfeatures => sometimes|string|min:2\nsms_messages => required|integer|min:0\nwhatsapp_messages => required|integer|min:0\nbranches => required|integer|min:1\nemployees => required|integer|min:1\ncustomers => required|integer|min:1\nremove_copy_right => required|in:0,1\npayments => required|in:cash,percentage,cash_and_percentage\npolicy => required|string|min:2\nis_default => required|in:0,1\nis_active => required|in:0,1\n```"
      },
      "AdminPackageRequestUpdate": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2 (... all other fields identical to POST ...)`"
          }
        },
        "required": [
          "name_ar",
          "name_en"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2\nname_en => required|string|min:2 (... all other fields identical to POST ...)\n```"
      },
      "AdminPaymentSettingRequest": {
        "type": "object",
        "properties": {
          "online_on_delivery_payment": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "online_payment": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "online_on_delivery_payment",
          "online_payment"
        ],
        "description": "Validation rules (verbatim):\n\n```\nonline_on_delivery_payment => required|in:0,1\nonline_payment => required|in:0,1\n```"
      },
      "AdminPrivacyPolicyRequest": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "description": "`required|string|min:2`"
          }
        },
        "required": [
          "content"
        ],
        "description": "Validation rules (verbatim):\n\n```\ncontent => required|string|min:2\n```"
      },
      "AdminProfileRequest": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "description": "`required|min:2`"
          },
          "last_name": {
            "type": "string",
            "description": "`required|min:2`"
          },
          "image": {
            "type": "string",
            "format": "binary",
            "description": "`nullable|image|mimes:png,jpg,jpeg`"
          }
        },
        "required": [
          "first_name",
          "last_name"
        ],
        "description": "Validation rules (verbatim):\n\n```\nfirst_name => required|min:2\nlast_name => required|min:2\nimage => nullable|image|mimes:png,jpg,jpeg\n```"
      },
      "AdminReminderRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "reminder",
              "alert"
            ],
            "description": "`required|in:reminder,alert`"
          },
          "event_type": {
            "type": "string",
            "enum": [
              "new_booking",
              "rescheduled_booking",
              "cancelled_booking",
              "customer_did_not_show_up",
              "completed_booking",
              "new_booking_reminder"
            ],
            "description": "`[ required, in:new_booking,rescheduled_booking,cancelled_booking,customer_did_not_show_up,completed_booking,new_booking_reminder,`"
          },
          "Rule::unique('reminders')->where(fn($q)": {
            "type": "string",
            "description": "`$q->where('type', $this->type))->ignore($reminderId) ]`"
          },
          "sort": {
            "type": "number",
            "description": "`required|numeric|min:0`"
          },
          "icon": {
            "type": "string",
            "format": "binary",
            "description": "`nullable|image|mimes:png,jpg,jpeg`"
          },
          "name": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "description": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "content": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "duration": {
            "type": "number",
            "enum": [
              "30",
              "60",
              "120",
              "180"
            ],
            "description": "`required_if:type,reminder|numeric|in:30,60,120,180`"
          },
          "content_push": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **push** (falls back to `content` when empty). Jun-2026."
          },
          "content_sms": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **sms** (falls back to `content` when empty). Jun-2026."
          },
          "content_whatsapp": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **whatsapp** (falls back to `content` when empty). Jun-2026."
          },
          "content_email": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **email** (falls back to `content` when empty). Jun-2026."
          },
          "email_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1` \u2014 toggle the email channel."
          },
          "sms_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1` \u2014 toggle the sms channel."
          },
          "whatsapp_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1` \u2014 toggle the whatsapp channel."
          },
          "push_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1` \u2014 toggle the push channel."
          }
        },
        "required": [
          "type",
          "event_type",
          "sort",
          "name",
          "description",
          "content"
        ],
        "description": "Validation rules (verbatim):\n\n```\ntype => required|in:reminder,alert\nevent_type => [ required, in:new_booking,rescheduled_booking,cancelled_booking,customer_did_not_show_up,completed_booking,new_booking_reminder,\nRule::unique('reminders')->where(fn($q) => $q->where('type', $this->type))->ignore($reminderId) ]\nsort => required|numeric|min:0\nicon => nullable|image|mimes:png,jpg,jpeg\nname => required|string|min:2\ndescription => required|string|min:2\ncontent => required|string|min:2\nduration => required_if:type,reminder|numeric|in:30,60,120,180\n```"
      },
      "AdminRoleRequest": {
        "type": "object",
        "properties": {
          "model_type": {
            "type": "string",
            "enum": [
              "admin",
              "vendor"
            ],
            "description": "`required|in:admin,vendor`"
          },
          "name": {
            "type": "string",
            "description": "`['required', 'string', 'min:2']`"
          },
          "permissions_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`required|exists:permissions,id`"
            }
          }
        },
        "required": [
          "model_type",
          "name",
          "permissions_ids"
        ],
        "description": "Validation rules (verbatim):\n\n```\nmodel_type => required|in:admin,vendor\nname => ['required', 'string', 'min:2']\npermissions_ids => required|array\npermissions_ids.* => required|exists:permissions,id\n```"
      },
      "AdminServiceSettingRequest": {
        "type": "object",
        "properties": {
          "difference_in_min": {
            "type": "integer",
            "description": "`required|integer|min:1`"
          }
        },
        "required": [
          "difference_in_min"
        ],
        "description": "Validation rules (verbatim):\n\n```\ndifference_in_min => required|integer|min:1\n```"
      },
      "AdminSystemNotificationRequest": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "sender_id": {
            "type": "integer",
            "description": "`sometimes|integer|exists:users,id`"
          },
          "receiver_id": {
            "type": "integer",
            "description": "`sometimes|integer|exists:users,id`"
          },
          "url": {
            "type": "string",
            "description": "`sometimes|string|min:2`"
          },
          "is_system": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          },
          "is_read": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          }
        },
        "required": [
          "message"
        ],
        "description": "Validation rules (verbatim):\n\n```\nmessage => required|string|min:2\nsender_id => sometimes|integer|exists:users,id\nreceiver_id => sometimes|integer|exists:users,id\nurl => sometimes|string|min:2\nis_system => sometimes|in:0,1\nis_read => sometimes|in:0,1\n```"
      },
      "AdminSystemNotificationRequestUpdate": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "`sometimes|string|min:2`"
          },
          "sender_id": {
            "type": "integer",
            "description": "`sometimes|integer|exists:users,id`"
          },
          "receiver_id": {
            "type": "integer",
            "description": "`sometimes|integer|exists:users,id`"
          },
          "url": {
            "type": "string",
            "description": "`sometimes|string|min:2`"
          },
          "is_system": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          },
          "is_read": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          }
        },
        "description": "Validation rules (verbatim):\n\n```\nmessage => sometimes|string|min:2\nsender_id => sometimes|integer|exists:users,id\nreceiver_id => sometimes|integer|exists:users,id\nurl => sometimes|string|min:2\nis_system => sometimes|in:0,1\nis_read => sometimes|in:0,1\nis_active => sometimes|in:0,1\n```"
      },
      "AdminTaxSettingRequest": {
        "type": "object",
        "properties": {
          "tax_percentage": {
            "type": "integer",
            "description": "`required|integer|min:0|max:100`"
          }
        },
        "required": [
          "tax_percentage"
        ],
        "description": "Validation rules (verbatim):\n\n```\ntax_percentage => required|integer|min:0|max:100\n```"
      },
      "AdminTaxSettingRequestUpdate": {
        "type": "object",
        "properties": {
          "tax_percentage": {
            "type": "integer",
            "description": "`required|integer|min:1`"
          }
        },
        "required": [
          "tax_percentage"
        ],
        "description": "Validation rules (verbatim):\n\n```\ntax_percentage => required|integer|min:1\n```"
      },
      "AdminTermConditionRequest": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "description": "`required|string|min:2`"
          }
        },
        "required": [
          "content"
        ],
        "description": "Validation rules (verbatim):\n\n```\ncontent => required|string|min:2\n```"
      },
      "AdminVendorRequest": {
        "type": "object",
        "properties": {
          "provider_name": {
            "type": "string",
            "description": "`required|min:3|max:20`"
          },
          "commercial_no": {
            "type": "string",
            "description": "`required|min:3|max:20`"
          },
          "description": {
            "type": "string",
            "description": "`nullable|min:3|max:20`"
          },
          "website_url": {
            "type": "string",
            "description": "`nullable|min:3|max:20`"
          },
          "twitter": {
            "type": "string",
            "description": "`nullable|min:3|max:20`"
          },
          "instagram": {
            "type": "string",
            "description": "`nullable|min:3|max:20`"
          },
          "snapchat": {
            "type": "string",
            "description": "`nullable|min:3|max:20`"
          },
          "registered_tax": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "tax_number": {
            "type": "string",
            "description": "`required_if:registered_tax,1`"
          },
          "category_id": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`required|exists:categories,id`"
            }
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`required|email|unique:users,email`"
          },
          "first_name": {
            "type": "string",
            "description": "`required|min:3|max:20`"
          },
          "last_name": {
            "type": "string",
            "description": "`required|min:3|max:20`"
          },
          "phone": {
            "type": "number",
            "description": "`required|numeric|unique:users`"
          },
          "password": {
            "type": "string",
            "description": "`required|min:8|confirmed`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "provider_name",
          "commercial_no",
          "registered_tax",
          "category_id",
          "email",
          "first_name",
          "last_name",
          "phone",
          "password",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nprovider_name => required|min:3|max:20\ncommercial_no => required|min:3|max:20\ndescription => nullable|min:3|max:20\nwebsite_url => nullable|min:3|max:20\ntwitter => nullable|min:3|max:20\ninstagram => nullable|min:3|max:20\nsnapchat => nullable|min:3|max:20\nregistered_tax => required|in:0,1\ntax_number => required_if:registered_tax,1\ncategory_id => required|array\ncategory_id.* => required|exists:categories,id\nemail => required|email|unique:users,email\nfirst_name => required|min:3|max:20\nlast_name => required|min:3|max:20\nphone => required|numeric|unique:users\npassword => required|min:8|confirmed\nis_active => required|in:0,1\n```"
      },
      "AdminVendorRequestUpdate": {
        "type": "object",
        "properties": {
          "provider_name": {
            "type": "string",
            "description": "`sometimes|min:3|max:20`"
          },
          "commercial_no": {
            "type": "string",
            "description": "`sometimes|min:3|max:20`"
          },
          "description": {
            "type": "string",
            "description": "`nullable|min:3|max:20`"
          },
          "website_url": {
            "type": "string",
            "description": "`nullable|min:3|max:20`"
          },
          "twitter": {
            "type": "string",
            "description": "`nullable|min:3|max:20`"
          },
          "instagram": {
            "type": "string",
            "description": "`nullable|min:3|max:20`"
          },
          "snapchat": {
            "type": "string",
            "description": "`nullable|min:3|max:20`"
          },
          "registered_tax": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          },
          "tax_number": {
            "type": "string",
            "description": "`required_if:registered_tax,1`"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`['sometimes', 'email']`"
          },
          "first_name": {
            "type": "string",
            "description": "`sometimes|min:3|max:20`"
          },
          "last_name": {
            "type": "string",
            "description": "`sometimes|min:3|max:20`"
          },
          "phone": {
            "type": "number",
            "description": "`['sometimes', 'numeric']`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          }
        },
        "description": "Validation rules (verbatim):\n\n```\nprovider_name => sometimes|min:3|max:20\ncommercial_no => sometimes|min:3|max:20\ndescription => nullable|min:3|max:20\nwebsite_url => nullable|min:3|max:20\ntwitter => nullable|min:3|max:20\ninstagram => nullable|min:3|max:20\nsnapchat => nullable|min:3|max:20\nregistered_tax => sometimes|in:0,1\ntax_number => required_if:registered_tax,1\nemail => ['sometimes', 'email']\nfirst_name => sometimes|min:3|max:20\nlast_name => sometimes|min:3|max:20\nphone => ['sometimes', 'numeric']\nis_active => sometimes|in:0,1\n```"
      },
      "VendorBookingRequest": {
        "type": "object",
        "properties": {
          "branch_id": {
            "type": "string",
            "description": "`required|exists:branches,id`"
          },
          "customer_id": {
            "type": "string",
            "description": "`nullable|exists:users,id`"
          },
          "service_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:services,id`"
            }
          },
          "offer_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:offers,id`"
            }
          },
          "employee_id": {
            "type": "string",
            "description": "`required|exists:employees,id`"
          },
          "booking_timestamp": {
            "type": "integer",
            "description": "`nullable|integer|gte:0`"
          },
          "future_booking": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "payment_way": {
            "type": "string",
            "enum": [
              "online",
              "cash"
            ],
            "description": "`required_if:future_booking,0|in:online,cash`"
          },
          "sub_service_ids": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "nullable": true
            },
            "description": "`nullable|array` \u2014 chosen variant per service, **keyed by service id** (`{ \"12\": 55 }`). `null` / missing entry falls back to the catalog price/time. Each value `nullable|integer|exists:sub_services,id`."
          },
          "discount": {
            "type": "number",
            "description": "`nullable|numeric|min:0|max:999999.99` \u2014 flat manual discount (SAR) off the booking total; line prices untouched (mirrors a promo discount). Jun-2026."
          },
          "prices": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "nullable": true
            },
            "description": "`nullable|array` \u2014 per-service PRICE override (SAR), keyed by service id. Missing/blank \u2192 catalog/variant price. Totals + invoice recomputed server-side."
          },
          "durations": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "nullable": true
            },
            "description": "`nullable|array` \u2014 per-service DURATION override (minutes), keyed by service id (`nullable|numeric|min:1|max:1440`). Drives `end_time`; `extra_time` still adds on top."
          },
          "offer_prices": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "nullable": true
            },
            "description": "`nullable|array` \u2014 per-OFFER price override, keyed by offer id."
          },
          "offer_durations": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "nullable": true
            },
            "description": "`nullable|array` \u2014 per-OFFER duration override (distributed across the offer's services)."
          }
        },
        "required": [
          "branch_id",
          "employee_id",
          "future_booking"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbranch_id => required|exists:branches,id\ncustomer_id => nullable|exists:users,id\nservice_ids => nullable|array|required_without:offer_ids|min:1\nservice_ids.* => distinct|exists:services,id\noffer_ids => nullable|array|required_without:service_ids|min:1\noffer_ids.* => distinct|exists:offers,id\nemployee_id => required|exists:employees,id\nbooking_timestamp => nullable|integer|gte:0\nfuture_booking => required|in:0,1\npayment_way => required_if:future_booking,0|in:online,cash\n```"
      },
      "VendorBookingRequestUpdate": {
        "type": "object",
        "properties": {
          "branch_id": {
            "type": "string",
            "description": "`nullable|exists:branches,id`"
          },
          "customer_id": {
            "type": "string",
            "description": "`nullable|exists:users,id`"
          },
          "service_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:services,id`"
            }
          },
          "offer_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:offers,id`"
            }
          },
          "employee_id": {
            "type": "string",
            "description": "`nullable|exists:employees,id`"
          },
          "booking_timestamp": {
            "type": "integer",
            "description": "`nullable|integer|gte:0`"
          },
          "future_booking": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`nullable|in:0,1`"
          },
          "payment_way": {
            "type": "string",
            "enum": [
              "online",
              "cash"
            ],
            "description": "`required_if:future_booking,0|in:online,cash`"
          },
          "status": {
            "type": "string",
            "enum": [
              "confirmed",
              "not_confirmed",
              "completed",
              "canceled",
              "missed"
            ],
            "description": "`nullable|in:confirmed,not_confirmed,completed,canceled,missed`"
          },
          "payment_status": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`nullable|in:0,1`"
          },
          "notes": {
            "type": "string",
            "description": "`nullable|string|min:3`"
          },
          "cancellation_reason": {
            "type": "string",
            "description": "`nullable|string|min:2|max:500`"
          }
        },
        "description": "Validation rules (verbatim):\n\n```\nbranch_id => nullable|exists:branches,id\ncustomer_id => nullable|exists:users,id\nservice_ids => nullable|array|min:1\nservice_ids.* => distinct|exists:services,id\noffer_ids => nullable|array|min:1\noffer_ids.* => distinct|exists:offers,id\nemployee_id => nullable|exists:employees,id\nbooking_timestamp => nullable|integer|gte:0\nfuture_booking => nullable|in:0,1\npayment_way => required_if:future_booking,0|in:online,cash\nstatus => nullable|in:confirmed,not_confirmed,completed,canceled,missed\npayment_status => nullable|in:0,1\nnotes => nullable|string|min:3\ncancellation_reason => nullable|string|min:2|max:500\n```"
      },
      "VendorBranchRequest": {
        "type": "object",
        "properties": {
          "vendor_id": {
            "type": "string",
            "description": "`[ Rule::requiredIf(fn() => !currentUser()->isVendor()), Rule::exists('vendors','id') ]`"
          },
          "name": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "manager_id": {
            "type": "string",
            "description": "`required|exists:users,id`"
          },
          "country_id": {
            "type": "string",
            "description": "`required|exists:countries,id`"
          },
          "region_id": {
            "type": "string",
            "description": "`required|exists:regions,id`"
          },
          "city_id": {
            "type": "string",
            "description": "`required|exists:cities,id`"
          },
          "address": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "lat": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "long": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "image": {
            "type": "string",
            "format": "binary",
            "description": "`nullable|image|mimes:png,jpg,jpeg`"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "binary",
              "description": "`image|mimes:png,jpg,jpeg`"
            }
          },
          "official_hours": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "enum": [
                    "sat",
                    "sun",
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri"
                  ],
                  "description": "`required|in:sat,sun,mon,tue,wed,thu,fri`"
                },
                "start_time": {
                  "type": "string",
                  "description": "`required|date_format:H:i`"
                },
                "end_time": {
                  "type": "string",
                  "description": "`required|date_format:H:i`"
                }
              },
              "required": [
                "day",
                "start_time",
                "end_time"
              ]
            }
          },
          "home_pricing_type": {
            "type": "string",
            "enum": [
              "fixed",
              "by_distance"
            ],
            "description": "`nullable|in:fixed,by_distance`"
          },
          "home_fixed_fee": {
            "type": "number",
            "description": "`nullable|numeric|gte:0`"
          },
          "home_pricing_tiers": {
            "type": "array",
            "description": "`nullable|array`",
            "items": {
              "type": "object",
              "properties": {
                "up_to_minutes": {
                  "type": "integer",
                  "description": "`required_with:home_pricing_tiers|integer|min:1`"
                },
                "fee": {
                  "type": "number",
                  "description": "`required_with:home_pricing_tiers|numeric|gte:0`"
                }
              },
              "required": [
                "up_to_minutes",
                "fee"
              ]
            }
          },
          "offers_home_services": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`nullable|in:0,1`"
          },
          "is_cloud": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`nullable|in:0,1` \u2014 when `1`, the request also forces `offers_home_services=1` (cloud implies home)."
          },
          "google_place_id": {
            "type": "string",
            "description": "`nullable|string|max:255` \u2014 Google Place linked to this branch."
          },
          "show_google_reviews": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`nullable|in:0,1` \u2014 expose live Google reviews on the customer storefront."
          }
        },
        "required": [
          "name",
          "manager_id",
          "country_id",
          "region_id",
          "city_id",
          "address",
          "lat",
          "long",
          "official_hours"
        ],
        "description": "Validation rules (verbatim):\n\n```\nvendor_id => [ Rule::requiredIf(fn() => !currentUser()->isVendor()), Rule::exists('vendors','id') ]\nname => required|string|min:2\nmanager_id => required|exists:users,id\ncountry_id => required|exists:countries,id\nregion_id => required|exists:regions,id\ncity_id => required|exists:cities,id\naddress => required|string|min:2\nlat => required|string|min:2\nlong => required|string|min:2\nimage => nullable|image|mimes:png,jpg,jpeg\nimages => nullable|array\nimages.* => image|mimes:png,jpg,jpeg\nofficial_hours => required|array\nofficial_hours.*.day => required|in:sat,sun,mon,tue,wed,thu,fri\nofficial_hours.*.start_time => required|date_format:H:i\nofficial_hours.*.end_time => required|date_format:H:i\n```"
      },
      "VendorCalendarRequest": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "description": "`required|date_format:Y-m-d`"
          },
          "branch_id": {
            "type": "string",
            "description": "`nullable|exists:branches,id`"
          },
          "employee_id": {
            "type": "string",
            "description": "`nullable|exists:employees,id`"
          }
        },
        "required": [
          "date"
        ],
        "description": "Validation rules (verbatim):\n\n```\ndate => required|date_format:Y-m-d\nbranch_id => nullable|exists:branches,id\nemployee_id => nullable|exists:employees,id\n```"
      },
      "VendorCancellationReasonRequest": {
        "type": "object",
        "properties": {
          "reason_ar": {
            "type": "string",
            "description": "`required|string|min:2|max:500`"
          },
          "reason_en": {
            "type": "string",
            "description": "`nullable|string|min:2|max:500`"
          },
          "sort": {
            "type": "integer",
            "description": "`nullable|integer|min:0|max:127`"
          }
        },
        "required": [
          "reason_ar"
        ],
        "description": "Validation rules (verbatim):\n\n```\nreason_ar => required|string|min:2|max:500\nreason_en => nullable|string|min:2|max:500\nsort => nullable|integer|min:0|max:127\n```"
      },
      "VendorCustomerRequest": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "description": "`['required', 'string', 'min:2', 'max:255']`"
          },
          "last_name": {
            "type": "string",
            "description": "`['nullable', 'string', 'min:2', 'max:255']`"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`['nullable', 'string', 'email', 'max:255', Rule::unique('users','email')->where(type = 'customer')]`"
          },
          "phone": {
            "type": "string",
            "description": "`['required', 'string', Rule::unique('users','phone')->where(type = 'customer')]`"
          }
        },
        "required": [
          "first_name",
          "phone"
        ],
        "description": "Validation rules (verbatim):\n\n```\nfirst_name => ['required', 'string', 'min:2', 'max:255']\nlast_name => ['nullable', 'string', 'min:2', 'max:255']\nemail => ['nullable', 'string', 'email', 'max:255', Rule::unique('users','email')->where(type = 'customer')]\nphone => ['required', 'string', Rule::unique('users','phone')->where(type = 'customer')]\n```"
      },
      "VendorEmployeeRequest": {
        "type": "object",
        "properties": {
          "vendor_id": {
            "type": "string",
            "description": "`[ Rule::requiredIf(fn() => !currentUser()->isVendor() && !currentUser()->isEmployee()), Rule::exists('vendors','id') ]`"
          },
          "image": {
            "type": "string",
            "format": "binary",
            "description": "`nullable|image|mimes:png,jpg,jpeg`"
          },
          "first_name": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "last_name": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`[ required, email, Rule::unique('users','email')->where(type='employee')->ignore(request()->employee->user->id ?? null) ]`"
          },
          "phone": {
            "type": "number",
            "description": "`[ required, numeric, Rule::unique('users','phone')->where(type='employee')->ignore(request()->employee->user->id ?? null) ]`"
          },
          "start_date": {
            "type": "string",
            "format": "date",
            "description": "`nullable|date`"
          },
          "end_date": {
            "type": "string",
            "format": "date",
            "description": "`nullable|date|after:start_date`"
          },
          "branch_id": {
            "type": "string",
            "description": "`required|exists:branches,id`"
          },
          "official_hours": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "enum": [
                    "sat",
                    "sun",
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri"
                  ],
                  "description": "`required|in:sat,sun,mon,tue,wed,thu,fri`"
                },
                "start_time": {
                  "type": "string",
                  "description": "`required|date_format:H:i`"
                },
                "end_time": {
                  "type": "string",
                  "description": "`required|date_format:H:i`"
                }
              },
              "required": [
                "day",
                "start_time",
                "end_time"
              ]
            }
          },
          "break_hours": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "enum": [
                    "sat",
                    "sun",
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri"
                  ],
                  "description": "`nullable|in:sat,sun,mon,tue,wed,thu,fri`"
                },
                "start_time": {
                  "type": "string",
                  "description": "`nullable|date_format:H:i`"
                },
                "end_time": {
                  "type": "string",
                  "description": "`nullable|date_format:H:i`"
                }
              }
            }
          },
          "service_id": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`required|exists:services,id`"
            }
          },
          "salary": {
            "type": "number",
            "description": "`nullable|numeric`"
          },
          "job_title": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "role_id": {
            "type": "string",
            "description": "`[ required, Rule::exists('roles','id')->where(model_type='vendor', vendor_id=auth()->user()->model_id) ]`"
          },
          "commission_type": {
            "type": "string",
            "enum": [
              "none",
              "fixed",
              "percentage"
            ],
            "description": "`sometimes|in:none,fixed,percentage`"
          },
          "commission": {
            "type": "number",
            "description": "`nullable|required_unless:commission_type,none|numeric`"
          },
          "commission_calculation_method": {
            "type": "string",
            "enum": [
              "gross",
              "net"
            ],
            "description": "`sometimes|in:gross,net`"
          },
          "bio": {
            "type": "string",
            "nullable": true,
            "description": "`nullable|string|min:2|max:1000`"
          }
        },
        "required": [
          "first_name",
          "email",
          "phone",
          "branch_id",
          "official_hours",
          "role_id"
        ],
        "description": "Validation rules (verbatim):\n\n```\nvendor_id => [ Rule::requiredIf(fn() => !currentUser()->isVendor() && !currentUser()->isEmployee()), Rule::exists('vendors','id') ]\nimage => nullable|image|mimes:png,jpg,jpeg\nfirst_name => required|string|min:2\nlast_name => nullable|string|min:2\nemail => [ required, email, Rule::unique('users','email')->where(type='employee')->ignore(request()->employee->user->id ?? null) ]\nphone => [ required, numeric, Rule::unique('users','phone')->where(type='employee')->ignore(request()->employee->user->id ?? null) ]\nstart_date => nullable|date\nend_date => nullable|date|after:start_date\nbranch_id => required|exists:branches,id\nofficial_hours => required|array\nofficial_hours.*.day => required|in:sat,sun,mon,tue,wed,thu,fri\nofficial_hours.*.start_time => required|date_format:H:i\nofficial_hours.*.end_time => required|date_format:H:i\nbreak_hours => nullable|array\nbreak_hours.*.day => nullable|in:sat,sun,mon,tue,wed,thu,fri\nbreak_hours.*.start_time => nullable|date_format:H:i\nbreak_hours.*.end_time => nullable|date_format:H:i\nservice_id => nullable|array\nservice_id.* => required|exists:services,id\nsalary => nullable|numeric\njob_title => nullable|string|min:2\nrole_id => [ required, Rule::exists('roles','id')->where(model_type='vendor', vendor_id=auth()->user()->model_id) ]\ncommission_type => sometimes|in:none,fixed,percentage\ncommission => nullable|required_unless:commission_type,none|numeric\ncommission_calculation_method => sometimes|in:gross,net\n```"
      },
      "VendorOfferRequest": {
        "type": "object",
        "properties": {
          "vendor_id": {
            "type": "string",
            "description": "`[ Rule::requiredIf(fn() => !currentUser()->isVendor()), Rule::exists('vendors','id') ]`"
          },
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "name_en": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "description_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "description_en": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "section_id": {
            "type": "string",
            "description": "`required|exists:sections,id`"
          },
          "service_id": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`required|exists:services,id`"
            }
          },
          "price_type": {
            "type": "string",
            "enum": [
              "service",
              "free",
              "special",
              "discount"
            ],
            "description": "`required|in:service,free,special,discount`"
          },
          "service_price": {
            "type": "number",
            "description": "`required|numeric`"
          },
          "discount_percentage": {
            "type": "number",
            "description": "`required|numeric`"
          },
          "offer_price": {
            "type": "number",
            "description": "`required|numeric`"
          },
          "sort": {
            "type": "integer",
            "description": "`nullable|numeric|integer|min:1`"
          },
          "is_home_service": {
            "type": "string",
            "enum": [
              "0",
              "1",
              "true",
              "false"
            ],
            "description": "`nullable|in:0,1,true,false`"
          },
          "home_service_fee": {
            "type": "number",
            "description": "`nullable|numeric|gte:0`"
          },
          "home_hours": {
            "type": "array",
            "description": "`nullable|array`",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "enum": [
                    "sat",
                    "sun",
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri"
                  ],
                  "description": "`required_with:home_hours|in:sat,sun,mon,tue,wed,thu,fri`"
                },
                "start_time": {
                  "type": "string",
                  "description": "`required_with:home_hours|date_format:H:i`"
                },
                "end_time": {
                  "type": "string",
                  "description": "`required_with:home_hours|date_format:H:i|after:home_hours.*.start_time`"
                }
              },
              "required": [
                "day",
                "start_time",
                "end_time"
              ]
            }
          },
          "home_only": {
            "type": "string",
            "enum": [
              "0",
              "1",
              "true",
              "false"
            ],
            "description": "`nullable|in:0,1,true,false`"
          }
        },
        "required": [
          "name_ar",
          "description_ar",
          "section_id",
          "service_id",
          "price_type",
          "service_price",
          "discount_percentage",
          "offer_price"
        ],
        "description": "Validation rules (verbatim):\n\n```\nvendor_id => [ Rule::requiredIf(fn() => !currentUser()->isVendor()), Rule::exists('vendors','id') ]\nname_ar => required|string|min:2\nname_en => nullable|string|min:2\ndescription_ar => required|string|min:2\ndescription_en => nullable|string|min:2\nsection_id => required|exists:sections,id\nservice_id => required|array\nservice_id.* => required|exists:services,id\nprice_type => required|in:service,free,special,discount\nservice_price => required|numeric\ndiscount_percentage => required|numeric\noffer_price => required|numeric\nsort => nullable|numeric|integer|min:1\n```"
      },
      "VendorPayRequest": {
        "type": "object",
        "properties": {
          "subscription_id": {
            "type": "string",
            "description": "`required|exists:subscriptions,id`"
          }
        },
        "required": [
          "subscription_id"
        ],
        "description": "Validation rules (verbatim):\n\n```\nsubscription_id => required|exists:subscriptions,id\n```"
      },
      "VendorPosRequest": {
        "type": "object",
        "properties": {
          "branch_id": {
            "type": "string",
            "description": "`nullable|exists:branches,id`"
          },
          "employee_id": {
            "type": "string",
            "description": "`nullable|exists:employees,id`"
          },
          "service_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:services,id`"
            }
          },
          "offer_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:offers,id`"
            }
          },
          "sub_service_ids": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "nullable": true
            },
            "description": "`nullable|array` \u2014 chosen variant per service, **keyed by service id** (`{ \"12\": 55 }`). `null` / missing entry falls back to the catalog price/time. Each value `nullable|integer|exists:sub_services,id`."
          }
        },
        "description": "Validation rules (verbatim):\n\n```\nbranch_id => nullable|exists:branches,id\nemployee_id => nullable|exists:employees,id\nservice_ids => nullable|array|min:1\nservice_ids.* => distinct|exists:services,id\noffer_ids => nullable|array|min:1\noffer_ids.* => distinct|exists:offers,id\n```"
      },
      "VendorProfileRequest": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "description": "`required|min:5`"
          },
          "last_name": {
            "type": "string",
            "description": "`required|min:5`"
          },
          "image": {
            "type": "string",
            "format": "binary",
            "description": "`nullable|image|mimes:png,jpg,jpeg`"
          },
          "description": {
            "type": "string",
            "description": "`sometimes|min:3|max:200`"
          },
          "website_url": {
            "type": "string",
            "description": "`sometimes|min:3|max:200`"
          },
          "instagram": {
            "type": "string",
            "description": "`sometimes|min:3|max:200`"
          },
          "terms": {
            "type": "string",
            "description": "`sometimes|min:3`"
          },
          "tiktok": {
            "type": "string",
            "description": "`sometimes|min:3|max:200`"
          }
        },
        "required": [
          "first_name",
          "last_name"
        ],
        "description": "Validation rules (verbatim):\n\n```\nfirst_name => required|min:5\nlast_name => required|min:5\nimage => nullable|image|mimes:png,jpg,jpeg\ndescription => sometimes|min:3|max:200\nwebsite_url => sometimes|min:3|max:200\ntwitter => sometimes|min:3|max:200\ninstagram => sometimes|min:3|max:200\nsnapchat => sometimes|min:3|max:200\nterms => sometimes|min:3\n```"
      },
      "VendorReminderChannelRequest": {
        "type": "object",
        "properties": {
          "email_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "sms_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "whatsapp_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "push_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "email_enabled",
          "sms_enabled",
          "whatsapp_enabled",
          "push_enabled"
        ],
        "description": "Validation rules (verbatim):\n\n```\nemail_enabled => required|in:0,1\nsms_enabled => required|in:0,1\nwhatsapp_enabled => required|in:0,1\npush_enabled => required|in:0,1\n```"
      },
      "VendorReminderRequest": {
        "type": "object",
        "properties": {
          "email_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1` \u2014 toggle the email channel."
          },
          "sms_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1` \u2014 toggle the sms channel."
          },
          "whatsapp_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1` \u2014 toggle the whatsapp channel."
          },
          "push_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1` \u2014 toggle the push channel."
          },
          "content": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "duration": {
            "type": "number",
            "enum": [
              "30",
              "60",
              "120",
              "180"
            ],
            "description": "`[ Rule::requiredIf($reminder?->type === 'reminder'), 'numeric', 'in:30,60,120,180' ]`"
          },
          "content_push": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **push** (falls back to `content` when empty). Jun-2026."
          },
          "content_sms": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **sms** (falls back to `content` when empty). Jun-2026."
          },
          "content_whatsapp": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **whatsapp** (falls back to `content` when empty). Jun-2026."
          },
          "content_email": {
            "type": "string",
            "nullable": true,
            "description": "Channel-specific template for **email** (falls back to `content` when empty). Jun-2026."
          }
        },
        "required": [
          "email_enabled",
          "sms_enabled",
          "whatsapp_enabled",
          "push_enabled",
          "content"
        ],
        "description": "Validation rules (verbatim):\n\n```\nemail_enabled => required|in:0,1\nsms_enabled => required|in:0,1\nwhatsapp_enabled => required|in:0,1\npush_enabled => required|in:0,1\ncontent => required|string|min:2\nduration => [ Rule::requiredIf($reminder?->type === 'reminder'), 'numeric', 'in:30,60,120,180' ]\n```"
      },
      "VendorReportRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "home",
              "services",
              "offers",
              "customers",
              "employees",
              "employees_commissions"
            ],
            "description": "`required|in:home,services,offers,customers,employees,employees_commissions`"
          },
          "period": {
            "type": "string",
            "enum": [
              "day",
              "week",
              "month",
              "3months",
              "6months",
              "9months",
              "year"
            ],
            "description": "`required|in:day,week,month,3months,6months,9months,year`"
          },
          "branch_id": {
            "type": "string",
            "description": "`nullable|exists:branches,id`"
          },
          "employee_id": {
            "type": "string",
            "description": "`nullable|exists:employees,id`"
          }
        },
        "required": [
          "type",
          "period"
        ],
        "description": "Validation rules (verbatim):\n\n```\ntype => required|in:home,services,offers,customers,employees,employees_commissions\nperiod => required|in:day,week,month,3months,6months,9months,year\nbranch_id => nullable|exists:branches,id\nemployee_id => nullable|exists:employees,id\n```"
      },
      "VendorRescheduleBookingRequest": {
        "type": "object",
        "properties": {
          "employee_id": {
            "type": "string",
            "description": "`required|exists:employees,id`"
          },
          "booking_timestamp": {
            "type": "integer",
            "description": "`required|integer|gte:0`"
          }
        },
        "required": [
          "employee_id",
          "booking_timestamp"
        ],
        "description": "Validation rules (verbatim):\n\n```\nemployee_id => required|exists:employees,id\nbooking_timestamp => required|integer|gte:0\n```"
      },
      "VendorRoleRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "`[ required, string, min:2, Rule::unique('roles')->where(fn($q)=>$q->where('vendor_id', currentUser()?->model_id))->ignore(request()->role->id ?? null) ]`"
          },
          "permissions_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`required|exists:permissions,id`"
            }
          }
        },
        "required": [
          "name",
          "permissions_ids"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname => [ required, string, min:2, Rule::unique('roles')->where(fn($q)=>$q->where('vendor_id', currentUser()?->model_id))->ignore(request()->role->id ?? null) ]\npermissions_ids => required|array\npermissions_ids.* => required|exists:permissions,id\n```"
      },
      "VendorSectionRequest": {
        "type": "object",
        "properties": {
          "name_en": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "description_en": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "description_ar": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "sort": {
            "type": "integer",
            "description": "`nullable|numeric|integer|min:1`"
          }
        },
        "required": [
          "name_ar"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_en => nullable|string|min:2\nname_ar => required|string|min:2\ndescription_en => nullable|string|min:2\ndescription_ar => nullable|string|min:2\nsort => nullable|numeric|integer|min:1\n```"
      },
      "VendorServiceRequest": {
        "type": "object",
        "properties": {
          "vendor_id": {
            "type": "string",
            "description": "`[ Rule::requiredIf(fn() => !currentUser()->isVendor()), Rule::exists('vendors','id') ]`"
          },
          "section_id": {
            "type": "string",
            "description": "`required|exists:sections,id`"
          },
          "name_en": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "description_en": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "description_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "price": {
            "type": "number",
            "description": "`required|numeric`"
          },
          "service_time": {
            "type": "number",
            "description": "`required|numeric`"
          },
          "extra_time": {
            "type": "number",
            "description": "`nullable|numeric`"
          },
          "featured": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`nullable|in:0,1`"
          },
          "branch_id": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`required|exists:branches,id`"
            }
          },
          "sort": {
            "type": "integer",
            "description": "`nullable|numeric|integer|min:1`"
          },
          "is_home_service": {
            "type": "string",
            "enum": [
              "0",
              "1",
              "true",
              "false"
            ],
            "description": "`nullable|in:0,1,true,false`"
          },
          "home_service_fee": {
            "type": "number",
            "description": "`nullable|numeric|gte:0`"
          },
          "home_hours": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "day": {
                  "type": "string",
                  "enum": [
                    "sat",
                    "sun",
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri"
                  ],
                  "description": "`required|in:sat,sun,mon,tue,wed,thu,fri`"
                },
                "start_time": {
                  "type": "string",
                  "description": "`required|date_format:H:i`"
                },
                "end_time": {
                  "type": "string",
                  "description": "`required|date_format:H:i|after:home_hours.*.start_time`"
                }
              },
              "required": [
                "day",
                "start_time",
                "end_time"
              ]
            },
            "description": "`nullable|array` \u2014 relaxed May-2026 (was `required_if:is_home_service`); cloud branches deliver on the branch's own hours so per-service windows are optional."
          },
          "home_only": {
            "type": "string",
            "enum": [
              "0",
              "1",
              "true",
              "false"
            ],
            "description": "`nullable|in:0,1,true,false`"
          },
          "sub_services": {
            "type": "array",
            "description": "`nullable|array` \u2014 per-service variants. Pass `id` to update an existing variant; omit to create. Variants not re-sent are removed.",
            "items": {
              "type": "object",
              "required": [
                "name_ar",
                "price",
                "service_time"
              ],
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "`nullable|integer|exists:sub_services,id`"
                },
                "name_ar": {
                  "type": "string",
                  "description": "`required|string|min:1`"
                },
                "name_en": {
                  "type": "string",
                  "description": "`nullable|string`"
                },
                "price": {
                  "type": "number",
                  "description": "`required|numeric|gte:0`"
                },
                "service_time": {
                  "type": "number",
                  "description": "`required|numeric|gte:0`"
                },
                "extra_time": {
                  "type": "number",
                  "description": "`nullable|numeric|gte:0`"
                },
                "sort": {
                  "type": "integer",
                  "description": "`nullable|integer`"
                },
                "is_active": {
                  "type": "string",
                  "enum": [
                    "0",
                    "1",
                    "true",
                    "false"
                  ],
                  "description": "`nullable|in:0,1,true,false`"
                }
              }
            }
          }
        },
        "required": [
          "section_id",
          "name_ar",
          "description_ar",
          "price",
          "service_time",
          "branch_id"
        ],
        "description": "Validation rules (verbatim):\n\n```\nvendor_id => [ Rule::requiredIf(fn() => !currentUser()->isVendor()), Rule::exists('vendors','id') ]\nsection_id => required|exists:sections,id\nname_en => nullable|string|min:2\nname_ar => required|string|min:2\ndescription_en => nullable|string|min:2\ndescription_ar => required|string|min:2\nprice => required|numeric\nservice_time => required|numeric\nextra_time => nullable|numeric\nfeatured => nullable|in:0,1\nbranch_id => required|array\nbranch_id.* => required|exists:branches,id\nsort => nullable|numeric|integer|min:1\nis_home_service => nullable|in:0,1,true,false\nhome_service_fee => nullable|numeric|gte:0\nhome_hours => nullable|array|required_if:is_home_service,1,true\nhome_hours.*.day => required|in:sat,sun,mon,tue,wed,thu,fri\nhome_hours.*.start_time => required|date_format:H:i\nhome_hours.*.end_time => required|date_format:H:i|after:home_hours.*.start_time\n```"
      },
      "VendorSettingRequest": {
        "type": "object",
        "properties": {
          "booking_differance": {
            "type": "integer",
            "description": "`required|integer|min:0`"
          },
          "calender_differance": {
            "type": "integer",
            "description": "`required|integer|min:5|:max:30   (verbatim; malformed :max:30)`"
          },
          "cancel_booking": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "reviews_enabled": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          },
          "terms": {
            "type": "string",
            "description": "`sometimes|min:3`"
          }
        },
        "required": [
          "booking_differance",
          "calender_differance",
          "cancel_booking"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbooking_differance => required|integer|min:0\ncalender_differance => required|integer|min:5|:max:30   (verbatim; malformed :max:30)\ncancel_booking => required|in:0,1\nreviews_enabled => sometimes|in:0,1\nterms => sometimes|min:3\n```"
      },
      "VendorSortSectionsRequest": {
        "type": "object",
        "properties": {
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "`['required', 'integer', 'exists:sections,id']`"
                },
                "sort": {
                  "type": "integer",
                  "description": "`['required', 'integer', 'min:1']`"
                },
                "services": {
                  "type": "array",
                  "description": "`['sometimes', 'array']`"
                },
                "services.*.id": {
                  "type": "integer",
                  "description": "`['required_with:sections.*.services', 'integer', 'exists:services,id']`"
                },
                "services.*.sort": {
                  "type": "integer",
                  "description": "`['required_with:sections.*.services', 'integer', 'min:1']`"
                }
              }
            }
          }
        },
        "required": [
          "sections"
        ],
        "description": "Validation rules (verbatim):\n\n```\nsections => ['required', 'array']\nsections.*.id => ['required', 'integer', 'exists:sections,id']\nsections.*.sort => ['required', 'integer', 'min:1']\nsections.*.services => ['sometimes', 'array']\nsections.*.services.*.id => ['required_with:sections.*.services', 'integer', 'exists:services,id']\nsections.*.services.*.sort => ['required_with:sections.*.services', 'integer', 'min:1']\n```"
      },
      "VendorSubscriptionRequest": {
        "type": "object",
        "properties": {
          "package_id": {
            "type": "string",
            "description": "`required|exists:packages,id`"
          },
          "auto_renew": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "package_id",
          "auto_renew"
        ],
        "description": "Validation rules (verbatim):\n\n```\npackage_id => required|exists:packages,id\nauto_renew => required|in:0,1\n```"
      },
      "VendorSubscriptionRequestUpdate": {
        "type": "object",
        "properties": {
          "auto_renew": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "auto_renew"
        ],
        "description": "Validation rules (verbatim):\n\n```\nauto_renew => required|in:0,1\n```"
      },
      "VendorTaxInvoiceRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "service",
              "product"
            ],
            "description": "`required|in:service,product`"
          },
          "cost": {
            "type": "number",
            "description": "`required|numeric|min:1`"
          },
          "name": {
            "type": "string",
            "description": "`sometimes|string|min:2`"
          },
          "phone": {
            "type": "string",
            "description": "`sometimes|string|min:2`"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`sometimes|email`"
          },
          "product_id": {
            "type": "integer",
            "description": "`required_if:type,product|integer`"
          },
          "booking_id": {
            "type": "string",
            "description": "`required_if:type,service|exists:bookings,id`"
          }
        },
        "required": [
          "type",
          "cost"
        ],
        "description": "Validation rules (verbatim):\n\n```\ntype => required|in:service,product\ncost => required|numeric|min:1\nname => sometimes|string|min:2\nphone => sometimes|string|min:2\nemail => sometimes|email\nproduct_id => required_if:type,product|integer\nbooking_id => required_if:type,service|exists:bookings,id\n```"
      },
      "VendorTaxInvoiceRequestUpdate": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "service",
              "product"
            ],
            "description": "`required|in:service,product`"
          },
          "cost": {
            "type": "number",
            "description": "`required|numeric|min:1`"
          },
          "name": {
            "type": "string",
            "description": "`sometimes|string|min:2`"
          },
          "phone": {
            "type": "string",
            "description": "`sometimes|string|min:2`"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`sometimes|email`"
          },
          "product_id": {
            "type": "integer",
            "description": "`required_if:type,product|integer`"
          },
          "booking_id": {
            "type": "string",
            "description": "`required_if:type,service|exists:bookings,id`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "type",
          "cost",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\ntype => required|in:service,product\ncost => required|numeric|min:1\nname => sometimes|string|min:2\nphone => sometimes|string|min:2\nemail => sometimes|email\nproduct_id => required_if:type,product|integer\nbooking_id => required_if:type,service|exists:bookings,id\nis_active => required|in:0,1\n```"
      },
      "VendorUserRequest": {
        "type": "object",
        "properties": {
          "first_name": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "last_name": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "birthdate": {
            "type": "string",
            "format": "date",
            "description": "`required|date`"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`required|email|unique:users,email`"
          },
          "phone": {
            "type": "number",
            "description": "`required|numeric|unique:users,phone`"
          },
          "country_id": {
            "type": "string",
            "description": "`required|exists:countries,id`"
          },
          "region_id": {
            "type": "string",
            "description": "`required|exists:regions,id`"
          },
          "city_id": {
            "type": "string",
            "description": "`required|exists:cities,id`"
          },
          "image": {
            "type": "string",
            "format": "binary",
            "description": "`nullable|image|mimes:png,jpg,jpeg`"
          },
          "branch_id": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`required|exists:branches,id`"
            }
          },
          "role_id": {
            "type": "string",
            "description": "`required|exists:roles,id`"
          },
          "password": {
            "type": "string",
            "description": "`required|confirmed`"
          },
          "active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          }
        },
        "required": [
          "first_name",
          "last_name",
          "birthdate",
          "email",
          "phone",
          "country_id",
          "region_id",
          "city_id",
          "branch_id",
          "role_id",
          "password"
        ],
        "description": "Validation rules (verbatim):\n\n```\nfirst_name => required|string|min:2\nlast_name => required|string|min:2\nbirthdate => required|date\nemail => required|email|unique:users,email\nphone => required|numeric|unique:users,phone\ncountry_id => required|exists:countries,id\nregion_id => required|exists:regions,id\ncity_id => required|exists:cities,id\nimage => nullable|image|mimes:png,jpg,jpeg\nbranch_id => required|array\nbranch_id.* => required|exists:branches,id\nrole_id => required|exists:roles,id\npassword => required|confirmed\nactive => sometimes|in:0,1\n```"
      },
      "VendorUserRequestUpdate": {
        "type": "object",
        "properties": {
          "phone": {
            "type": "string",
            "description": "`sometimes|unique:users,phone,{request()->user->id}`"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`sometimes|unique:users,email,{request()->user->id}`"
          },
          "first_name": {
            "type": "string",
            "description": "`sometimes|string|min:2`"
          },
          "last_name": {
            "type": "string",
            "description": "`sometimes|string|min:2`"
          },
          "birthdate": {
            "type": "string",
            "format": "date",
            "description": "`sometimes|date`"
          },
          "country_id": {
            "type": "string",
            "description": "`sometimes|exists:countries,id`"
          },
          "region_id": {
            "type": "string",
            "description": "`sometimes|exists:regions,id`"
          },
          "city_id": {
            "type": "string",
            "description": "`sometimes|exists:cities,id`"
          },
          "image": {
            "type": "string",
            "format": "binary",
            "description": "`nullable|image|mimes:png,jpg,jpeg`"
          },
          "role_id": {
            "type": "string",
            "description": "`sometimes|exists:roles,id`"
          },
          "password": {
            "type": "string",
            "description": "`sometimes|confirmed`"
          },
          "active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          }
        },
        "description": "Validation rules (verbatim):\n\n```\nphone => sometimes|unique:users,phone,{request()->user->id}\nemail => sometimes|unique:users,email,{request()->user->id}\nfirst_name => sometimes|string|min:2\nlast_name => sometimes|string|min:2\nbirthdate => sometimes|date\ncountry_id => sometimes|exists:countries,id\nregion_id => sometimes|exists:regions,id\ncity_id => sometimes|exists:cities,id\nimage => nullable|image|mimes:png,jpg,jpeg\nrole_id => sometimes|exists:roles,id\npassword => sometimes|confirmed\nactive => sometimes|in:0,1\n```"
      },
      "VendorZatcaRegisterRequest": {
        "type": "object",
        "properties": {
          "environment": {
            "type": "string",
            "enum": [
              "sandbox",
              "production"
            ],
            "description": "`required|string|in:sandbox,production`"
          },
          "otp": {
            "type": "integer",
            "description": "`required|digits:6`"
          }
        },
        "required": [
          "environment",
          "otp"
        ],
        "description": "Validation rules (verbatim):\n\n```\nenvironment => required|string|in:sandbox,production\notp => required|digits:6\n```"
      },
      "VendorZatcaRequest": {
        "type": "object",
        "properties": {
          "seller_name_en": {
            "type": "string",
            "description": "`required|string`"
          },
          "seller_name_ar": {
            "type": "string",
            "description": "`required|string`"
          },
          "tax_number": {
            "type": "number",
            "description": "`required|numeric`"
          },
          "address": {
            "type": "string",
            "description": "`required|string`"
          }
        },
        "required": [
          "seller_name_en",
          "seller_name_ar",
          "tax_number",
          "address"
        ],
        "description": "Validation rules (verbatim):\n\n```\nseller_name_en => required|string\nseller_name_ar => required|string\ntax_number => required|numeric\naddress => required|string\n```"
      },
      "CustomerBookingRequest": {
        "type": "object",
        "properties": {
          "branch_id": {
            "type": "string",
            "description": "`required|exists:branches,id`"
          },
          "service_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:services,id`"
            }
          },
          "offer_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:offers,id`"
            }
          },
          "employee_id": {
            "type": "string",
            "description": "`required|exists:employees,id`"
          },
          "booking_timestamp": {
            "type": "integer",
            "description": "`required|integer|gte:0`"
          },
          "payment_way": {
            "type": "string",
            "enum": [
              "online",
              "cash"
            ],
            "description": "`required|in:online,cash`"
          },
          "notes": {
            "type": "string",
            "description": "`nullable|string|min:3`"
          },
          "promo_code": {
            "type": "string",
            "description": "`nullable|exists:promo_codes,code`"
          },
          "is_home_service": {
            "type": "string",
            "enum": [
              "0",
              "1",
              "true",
              "false"
            ],
            "description": "`nullable|in:0,1,true,false` \u2014 on PUT (reschedule)."
          },
          "customer_lat": {
            "type": "number",
            "description": "`nullable|numeric|between:-90,90|required_if:is_home_service,1,true` \u2014 presence triggers the home appointment-shift on reschedule."
          },
          "customer_lng": {
            "type": "number",
            "description": "`nullable|numeric|between:-180,180|required_if:is_home_service,1,true`"
          },
          "customer_address": {
            "type": "string",
            "description": "`nullable|string|max:500`"
          },
          "sub_service_ids": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "nullable": true
            },
            "description": "`nullable|array` \u2014 chosen variant per service, **keyed by service id** (`{ \"12\": 55 }`). `null` / missing entry falls back to the catalog price/time. Each value `nullable|integer|exists:sub_services,id`."
          }
        },
        "required": [
          "branch_id",
          "employee_id",
          "booking_timestamp",
          "payment_way"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbranch_id => required|exists:branches,id\nservice_ids => nullable|array|required_without:offer_ids|min:1\nservice_ids.* => distinct|exists:services,id\noffer_ids => nullable|array|required_without:service_ids|min:1\noffer_ids.* => distinct|exists:offers,id\nemployee_id => required|exists:employees,id\nbooking_timestamp => required|integer|gte:0\npayment_way => required|in:online,cash\nnotes => nullable|string|min:3\npromo_code => nullable|exists:promo_codes,code\nis_home_service => nullable|in:0,1,true,false\ncustomer_lat => nullable|numeric|between:-90,90|required_if:is_home_service,1,true\ncustomer_lng => nullable|numeric|between:-180,180|required_if:is_home_service,1,true\ncustomer_address => nullable|string|max:500\n```"
      },
      "CustomerBookingRequestUpdate": {
        "type": "object",
        "properties": {
          "service_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:services,id`"
            }
          },
          "offer_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:offers,id`"
            }
          },
          "employee_id": {
            "type": "string",
            "description": "`nullable|exists:employees,id`"
          },
          "booking_timestamp": {
            "type": "integer",
            "description": "`nullable|integer|gte:0`"
          },
          "payment_way": {
            "type": "string",
            "enum": [
              "online",
              "cash"
            ],
            "description": "`required_if:future_booking,0|in:online,cash`"
          },
          "status": {
            "type": "string",
            "enum": [
              "confirmed",
              "canceled"
            ],
            "description": "`nullable|in:confirmed,canceled`"
          },
          "notes": {
            "type": "string",
            "description": "`nullable|string|min:3`"
          },
          "promo_code": {
            "type": "string",
            "description": "`nullable|exists:promo_codes,code`"
          },
          "cancellation_reason": {
            "type": "string",
            "description": "`nullable|string|min:2|max:500`"
          },
          "cancel_reason_id": {
            "type": "integer",
            "description": "`nullable|integer|exists:client_cancellation_reasons,id`"
          }
        },
        "description": "Validation rules (verbatim):\n\n```\nservice_ids => nullable|array|min:1\nservice_ids.* => distinct|exists:services,id\noffer_ids => nullable|array|min:1\noffer_ids.* => distinct|exists:offers,id\nemployee_id => nullable|exists:employees,id\nbooking_timestamp => nullable|integer|gte:0\npayment_way => required_if:future_booking,0|in:online,cash\nstatus => nullable|in:confirmed,canceled\nnotes => nullable|string|min:3\npromo_code => nullable|exists:promo_codes,code\ncancellation_reason => nullable|string|min:2|max:500\ncancel_reason_id => nullable|integer|exists:client_cancellation_reasons,id\n```"
      },
      "CustomerCheckoutRequest": {
        "type": "object",
        "properties": {
          "branch_id": {
            "type": "string",
            "description": "`required|exists:branches,id`"
          },
          "service_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:services,id`"
            }
          },
          "offer_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`distinct|exists:offers,id`"
            }
          },
          "employee_id": {
            "type": "string",
            "description": "`nullable|exists:employees,id`"
          },
          "promo_code": {
            "type": "string",
            "description": "`nullable|exists:promo_codes,code`"
          },
          "sub_service_ids": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "nullable": true
            },
            "description": "`nullable|array` \u2014 chosen variant per service, **keyed by service id** (`{ \"12\": 55 }`). `null` / missing entry falls back to the catalog price/time. Each value `nullable|integer|exists:sub_services,id`."
          }
        },
        "required": [
          "branch_id"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbranch_id => required|exists:branches,id\nservice_ids => nullable|array|required_without:offer_ids|min:1\nservice_ids.* => distinct|exists:services,id\noffer_ids => nullable|array|required_without:service_ids|min:1\noffer_ids.* => distinct|exists:offers,id\nemployee_id => nullable|exists:employees,id\npromo_code => nullable|exists:promo_codes,code\n```"
      },
      "CustomerFavouriteRequest": {
        "type": "object",
        "properties": {
          "branch_id": {
            "type": "string",
            "description": "`required|exists:branches,id`"
          }
        },
        "required": [
          "branch_id"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbranch_id => required|exists:branches,id\n```"
      },
      "CustomerFcmRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "`required|string`"
          }
        },
        "required": [
          "token"
        ],
        "description": "Validation rules (verbatim):\n\n```\ntoken => required|string\n```"
      },
      "CustomerHomeRequest": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "description": "`nullable|numeric|between:-90,90|required_with:lng`"
          },
          "lng": {
            "type": "number",
            "description": "`nullable|numeric|between:-180,180|required_with:lat`"
          }
        },
        "description": "Validation rules (verbatim):\n\n```\nlat => nullable|numeric|between:-90,90|required_with:lng\nlng => nullable|numeric|between:-180,180|required_with:lat\n```"
      },
      "CustomerPayRequest": {
        "type": "object",
        "properties": {
          "booking_id": {
            "type": "string",
            "description": "`required|exists:bookings,id`"
          }
        },
        "required": [
          "booking_id"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbooking_id => required|exists:bookings,id\n```"
      },
      "CustomerRegisterRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "`[ required, email, Rule::unique('users')->where(fn($q)=>$q->where('type','customer')) ]`"
          },
          "first_name": {
            "type": "string",
            "description": "`required|min:3|max:20`"
          },
          "last_name": {
            "type": "string",
            "description": "`nullable|min:3|max:20`"
          },
          "phone": {
            "type": "number",
            "description": "`[ required, numeric, Rule::unique('users')->where(fn($q)=>$q->where('type','customer')) ]`"
          },
          "password": {
            "type": "string",
            "description": "`required|min:8|confirmed`"
          }
        },
        "required": [
          "email",
          "first_name",
          "phone",
          "password"
        ],
        "description": "Validation rules (verbatim):\n\n```\nemail => [ required, email, Rule::unique('users')->where(fn($q)=>$q->where('type','customer')) ]\nfirst_name => required|min:3|max:20\nlast_name => nullable|min:3|max:20\nphone => [ required, numeric, Rule::unique('users')->where(fn($q)=>$q->where('type','customer')) ]\npassword => required|min:8|confirmed\n```"
      },
      "CustomerReviewRequest": {
        "type": "object",
        "properties": {
          "booking_id": {
            "type": "string",
            "description": "`required|exists:bookings,id`"
          },
          "employee_rate": {
            "type": "integer",
            "description": "`required|integer|min:1|max:5`"
          },
          "employee_comment": {
            "type": "string",
            "description": "`nullable|string|min:2|max:500`"
          }
        },
        "required": [
          "booking_id",
          "employee_rate"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbooking_id => required|exists:bookings,id\nemployee_rate => required|integer|min:1|max:5\nemployee_comment => nullable|string|min:2|max:500\n```"
      },
      "CustomerSearchRequest": {
        "type": "object",
        "properties": {
          "lat": {
            "type": "number",
            "description": "`nullable|numeric|between:-90,90|required_with:lng`"
          },
          "lng": {
            "type": "number",
            "description": "`nullable|numeric|between:-180,180|required_with:lat`"
          },
          "radius": {
            "type": "number",
            "description": "`nullable|numeric`"
          },
          "q": {
            "type": "string",
            "description": "`nullable|string`"
          }
        },
        "description": "Validation rules (verbatim):\n\n```\nlat => nullable|numeric|between:-90,90|required_with:lng\nlng => nullable|numeric|between:-180,180|required_with:lat\nradius => nullable|numeric\nq => nullable|string\n```"
      },
      "CustomerVendorDetailsRequest": {
        "type": "object",
        "properties": {
          "vendor_id": {
            "type": "string",
            "description": "`required|exists:vendors,id`"
          }
        },
        "required": [
          "vendor_id"
        ],
        "description": "Validation rules (verbatim):\n\n```\nvendor_id => required|exists:vendors,id\n```"
      },
      "GeneralCancellationReasonRequest": {
        "type": "object",
        "properties": {
          "reason_ar": {
            "type": "string",
            "description": "`required|string|min:2|unique:client_cancellation_reasons,reason_ar`"
          },
          "reason_en": {
            "type": "string",
            "description": "`required|string|min:2|unique:client_cancellation_reasons,reason_en`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "reason_ar",
          "reason_en",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nreason_ar => required|string|min:2|unique:client_cancellation_reasons,reason_ar\nreason_en => required|string|min:2|unique:client_cancellation_reasons,reason_en\nis_active => required|in:0,1\n```"
      },
      "GeneralCancellationReasonRequestUpdate": {
        "type": "object",
        "properties": {
          "reason_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "reason_en": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "reason_ar",
          "reason_en",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nreason_ar => required|string|min:2\nreason_en => required|string|min:2\nis_active => required|in:0,1\n```"
      },
      "GeneralCategoryRequest": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2|unique:categories,name_ar`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2|unique:categories,name_en`"
          },
          "icon": {
            "type": "string",
            "format": "binary",
            "description": "`required|image|mimes:jpeg,png,jpg,gif|max:20000`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "name_ar",
          "name_en",
          "icon",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2|unique:categories,name_ar\nname_en => required|string|min:2|unique:categories,name_en\nicon => required|image|mimes:jpeg,png,jpg,gif|max:20000\nis_active => required|in:0,1\n```"
      },
      "GeneralCategoryRequestUpdate": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "icon": {
            "type": "string",
            "format": "binary",
            "description": "`sometimes|image|mimes:jpeg,png,jpg,gif|max:20000`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "name_ar",
          "name_en",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2\nname_en => required|string|min:2\nicon => sometimes|image|mimes:jpeg,png,jpg,gif|max:20000\nis_active => required|in:0,1\n```"
      },
      "GeneralCityRequest": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2|unique:cities,name_ar`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2|unique:cities,name_en`"
          },
          "region_id": {
            "type": "string",
            "description": "`required|exists:regions,id`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "name_ar",
          "name_en",
          "region_id",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2|unique:cities,name_ar\nname_en => required|string|min:2|unique:cities,name_en\nregion_id => required|exists:regions,id\nis_active => required|in:0,1\n```"
      },
      "GeneralCityRequestUpdate": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "region_id": {
            "type": "string",
            "description": "`required|exists:regions,id`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "name_ar",
          "name_en",
          "region_id",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2\nname_en => required|string|min:2\nregion_id => required|exists:regions,id\nis_active => required|in:0,1\n```"
      },
      "GeneralClientCancellationReasonRequest": {
        "type": "object",
        "properties": {
          "reason_ar": {
            "type": "string",
            "description": "`required|string|min:2|unique:client_cancellation_reasons,reason_ar`"
          },
          "reason_en": {
            "type": "string",
            "description": "`required|string|min:2|unique:client_cancellation_reasons,reason_en`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "reason_ar",
          "reason_en",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nreason_ar => required|string|min:2|unique:client_cancellation_reasons,reason_ar\nreason_en => required|string|min:2|unique:client_cancellation_reasons,reason_en\nis_active => required|in:0,1\n```"
      },
      "GeneralClientCancellationReasonRequestUpdate": {
        "type": "object",
        "properties": {
          "reason_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "reason_en": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "reason_ar",
          "reason_en",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nreason_ar => required|string|min:2\nreason_en => required|string|min:2\nis_active => required|in:0,1\n```"
      },
      "GeneralCountryRequest": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2|unique:countries,name_ar`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2|unique:countries,name_en`"
          },
          "code": {
            "type": "string",
            "description": "`required|string|min:2|unique:countries,name_en   (verbatim; column likely mis-targeted)`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "name_ar",
          "name_en",
          "code",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2|unique:countries,name_ar\nname_en => required|string|min:2|unique:countries,name_en\ncode => required|string|min:2|unique:countries,name_en   (verbatim; column likely mis-targeted)\nis_active => required|in:0,1\n```"
      },
      "GeneralCountryRequestUpdate": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "code": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "name_ar",
          "name_en",
          "code",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2\nname_en => required|string|min:2\ncode => required|string|min:2\nis_active => required|in:0,1\n```"
      },
      "GeneralPromoCodeRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "`[ sometimes, alpha_num:ascii, min:5, Rule::unique('promo_codes','code')->ignore(request()->promo_code->id ?? null) ]`"
          },
          "discount_type": {
            "type": "string",
            "enum": [
              "percentage",
              "fixed"
            ],
            "description": "`required|in:percentage,fixed`"
          },
          "value": {
            "type": "number",
            "description": "`required|numeric|min:0`"
          },
          "start_date": {
            "type": "string",
            "format": "date",
            "description": "`required|date`"
          },
          "end_date": {
            "type": "string",
            "format": "date",
            "description": "`required|date|after:start_date`"
          },
          "uses": {
            "type": "integer",
            "description": "`required_if:category_type,public|integer|min:1`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          }
        },
        "required": [
          "discount_type",
          "value",
          "start_date",
          "end_date"
        ],
        "description": "Validation rules (verbatim):\n\n```\ncode => [ sometimes, alpha_num:ascii, min:5, Rule::unique('promo_codes','code')->ignore(request()->promo_code->id ?? null) ]\ndiscount_type => required|in:percentage,fixed\nvalue => required|numeric|min:0\nstart_date => required|date\nend_date => required|date|after:start_date\nuses => required_if:category_type,public|integer|min:1\nis_active => sometimes|in:0,1\n```"
      },
      "GeneralRegionRequest": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2|unique:regions,name_ar`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2|unique:regions,name_en`"
          },
          "country_id": {
            "type": "string",
            "description": "`required|exists:countries,id`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "name_ar",
          "name_en",
          "country_id",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2|unique:regions,name_ar\nname_en => required|string|min:2|unique:regions,name_en\ncountry_id => required|exists:countries,id\nis_active => required|in:0,1\n```"
      },
      "GeneralRegionRequestUpdate": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "country_id": {
            "type": "string",
            "description": "`required|exists:countries,id`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "name_ar",
          "name_en",
          "country_id",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2\nname_en => required|string|min:2\ncountry_id => required|exists:countries,id\nis_active => required|in:0,1\n```"
      },
      "GeneralReviewReportRequest": {
        "type": "object",
        "properties": {
          "review_id": {
            "type": "string",
            "description": "`required|exists:reviews,id`"
          },
          "comment": {
            "type": "string",
            "description": "`required|string|min:2`"
          }
        },
        "required": [
          "review_id",
          "comment"
        ],
        "description": "Validation rules (verbatim):\n\n```\nreview_id => required|exists:reviews,id\ncomment => required|string|min:2\n```"
      },
      "GeneralReviewReportRequestUpdate": {
        "type": "object",
        "properties": {
          "review_id": {
            "type": "string",
            "description": "`required|exists:reviews,id`"
          },
          "comment": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          }
        },
        "required": [
          "review_id",
          "comment"
        ],
        "description": "Validation rules (verbatim):\n\n```\nreview_id => required|exists:reviews,id\ncomment => required|string|min:2\nis_active => sometimes|in:0,1\n```"
      },
      "GeneralReviewRequest": {
        "type": "object",
        "properties": {
          "booking_id": {
            "type": "string",
            "description": "`required|exists:bookings,id`"
          },
          "service_rate": {
            "type": "integer",
            "description": "`required|integer|min:1|max:5`"
          },
          "service_comment": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "employee_rate": {
            "type": "integer",
            "description": "`required|integer|min:1|max:5`"
          },
          "employee_comment": {
            "type": "string",
            "description": "`required|string|min:2`"
          }
        },
        "required": [
          "booking_id",
          "service_rate",
          "service_comment",
          "employee_rate",
          "employee_comment"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbooking_id => required|exists:bookings,id\nservice_rate => required|integer|min:1|max:5\nservice_comment => required|string|min:2\nemployee_rate => required|integer|min:1|max:5\nemployee_comment => required|string|min:2\n```"
      },
      "GeneralReviewRequestUpdate": {
        "type": "object",
        "properties": {
          "booking_id": {
            "type": "string",
            "description": "`required|exists:bookings,id`"
          },
          "service_rate": {
            "type": "integer",
            "description": "`required|integer|min:1|max:5`"
          },
          "service_comment": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "employee_rate": {
            "type": "integer",
            "description": "`required|integer|min:1|max:5`"
          },
          "employee_comment": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`sometimes|in:0,1`"
          }
        },
        "required": [
          "booking_id",
          "service_rate",
          "service_comment",
          "employee_rate",
          "employee_comment"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbooking_id => required|exists:bookings,id\nservice_rate => required|integer|min:1|max:5\nservice_comment => required|string|min:2\nemployee_rate => required|integer|min:1|max:5\nemployee_comment => required|string|min:2\nis_active => sometimes|in:0,1\n```"
      },
      "GeneralRoleRequest": {
        "type": "object",
        "properties": {
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`required|exists:permissions,id`"
            }
          },
          "name": {
            "type": "string",
            "description": "`required|string|min:2|unique:roles,name`"
          },
          "display_name": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "permissions",
          "name",
          "display_name",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\npermissions => required|array\npermissions.* => required|exists:permissions,id\nname => required|string|min:2|unique:roles,name\ndisplay_name => required|string|min:2\nis_active => required|in:0,1\n```"
      },
      "GeneralRoleRequestUpdate": {
        "type": "object",
        "properties": {
          "permissions": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`required|exists:permissions,id`"
            }
          },
          "name": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "display_name": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "permissions",
          "name",
          "display_name",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\npermissions => required|array\npermissions.* => required|exists:permissions,id\nname => required|string|min:2\ndisplay_name => required|string|min:2\nis_active => required|in:0,1\n```"
      },
      "GeneralServiceCategoryRequest": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2|unique:service_categories,name_ar`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2|unique:service_categories,name_en`"
          },
          "category_id": {
            "type": "string",
            "description": "`required|exists:categories,id`"
          },
          "main_service_category_id": {
            "type": "string",
            "description": "`required_if:type,sub|exists:service_categories,id`"
          },
          "type": {
            "type": "string",
            "enum": [
              "main",
              "sub"
            ],
            "description": "`required|in:main,sub`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "name_ar",
          "name_en",
          "category_id",
          "type",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2|unique:service_categories,name_ar\nname_en => required|string|min:2|unique:service_categories,name_en\ncategory_id => required|exists:categories,id\nmain_service_category_id => required_if:type,sub|exists:service_categories,id\ntype => required|in:main,sub\nis_active => required|in:0,1\n```"
      },
      "GeneralServiceCategoryRequestUpdate": {
        "type": "object",
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "name_en": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "category_id": {
            "type": "string",
            "description": "`required|exists:categories,id`"
          },
          "main_service_category_id": {
            "type": "string",
            "description": "`required_if:type,sub|exists:service_categories,id`"
          },
          "type": {
            "type": "string",
            "enum": [
              "main",
              "sub"
            ],
            "description": "`required|in:main,sub`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "name_ar",
          "name_en",
          "category_id",
          "type",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nname_ar => required|string|min:2\nname_en => required|string|min:2\ncategory_id => required|exists:categories,id\nmain_service_category_id => required_if:type,sub|exists:service_categories,id\ntype => required|in:main,sub\nis_active => required|in:0,1\n```"
      },
      "GeneralUserNotificationSettingRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "whatsapp": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "sms": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "email",
          "whatsapp",
          "sms"
        ],
        "description": "Validation rules (verbatim):\n\n```\nemail => required|in:0,1\nwhatsapp => required|in:0,1\nsms => required|in:0,1\n```"
      },
      "GeneralWalletRequest": {
        "type": "object",
        "properties": {
          "balance": {
            "type": "number",
            "description": "`required|numeric|min:0`"
          },
          "user_id": {
            "type": "string",
            "description": "`required|unique:wallets,user_id|exists:users,id`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "balance",
          "user_id",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbalance => required|numeric|min:0\nuser_id => required|unique:wallets,user_id|exists:users,id\nis_active => required|in:0,1\n```"
      },
      "GeneralWalletRequestUpdate": {
        "type": "object",
        "properties": {
          "balance": {
            "type": "number",
            "description": "`sometimes|numeric|min:0`"
          },
          "user_id": {
            "type": "string",
            "description": "`sometimes|exists:users,id`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nbalance => sometimes|numeric|min:0\nuser_id => sometimes|exists:users,id\nis_active => required|in:0,1\n```"
      },
      "GeneralWalletTransactionRequest": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "description": "`required|numeric|min:0.1`"
          },
          "description": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "wallet_id": {
            "type": "string",
            "description": "`required|exists:wallets,id`"
          },
          "branch_id": {
            "type": "string",
            "description": "`sometimes|exists:branches,id`"
          },
          "type": {
            "type": "string",
            "enum": [
              "debit",
              "credit"
            ],
            "description": "`required|in:debit,credit`"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          }
        },
        "required": [
          "value",
          "wallet_id",
          "type",
          "is_active"
        ],
        "description": "Validation rules (verbatim):\n\n```\nvalue => required|numeric|min:0.1\ndescription => nullable|string|min:2\nwallet_id => required|exists:wallets,id\nbranch_id => sometimes|exists:branches,id\ntype => required|in:debit,credit\nis_active => required|in:0,1\n```"
      },
      "BulkIdsRequest": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "description": "`required|array|min:1`"
          }
        },
        "required": [
          "ids"
        ],
        "description": "Validation rules (verbatim):\n\n```\nids => required|array|min:1\n```"
      },
      "ChangePasswordRequest": {
        "type": "object",
        "properties": {
          "current_password": {
            "type": "string",
            "description": "`required|min:8`"
          },
          "password": {
            "type": "string",
            "description": "`required|min:8|confirmed`"
          }
        },
        "required": [
          "current_password",
          "password"
        ],
        "description": "Validation rules (verbatim):\n\n```\ncurrent_password => required|min:8\npassword => required|min:8|confirmed\n```"
      },
      "CheckCodeRequest": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "`required|min:5`"
          },
          "code": {
            "type": "string",
            "description": "`required|min:6`"
          }
        },
        "required": [
          "username",
          "code"
        ],
        "description": "Validation rules (verbatim):\n\n```\nusername => required|min:5\ncode => required|min:6\n```"
      },
      "ConfirmResetRequest": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "`required|min:5`"
          },
          "password": {
            "type": "string",
            "description": "`required|min:8|confirmed`"
          }
        },
        "required": [
          "username",
          "password"
        ],
        "description": "Validation rules (verbatim):\n\n```\nusername => required|min:5\npassword => required|min:8|confirmed\n```"
      },
      "EmailRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "`required|digits:6`"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`required|unique:users,email`"
          }
        },
        "required": [
          "code",
          "email"
        ],
        "description": "Validation rules (verbatim):\n\n```\ncode => required|digits:6\nemail => required|unique:users,email\n```"
      },
      "LoginRequest": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "`required|min:5`"
          },
          "password": {
            "type": "string",
            "description": "`required|min:8`"
          }
        },
        "required": [
          "username",
          "password"
        ],
        "description": "Validation rules (verbatim):\n\n```\nusername => required|min:5\npassword => required|min:8\n```"
      },
      "NewEmailRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "`required|email|unique:users,email`"
          }
        },
        "required": [
          "email"
        ],
        "description": "Validation rules (verbatim):\n\n```\nemail => required|email|unique:users,email\n```"
      },
      "PaginateRequest": {
        "type": "object",
        "properties": {
          "columns": {
            "type": "array",
            "description": "`sometimes|array`"
          },
          "operand": {
            "type": "array",
            "description": "`sometimes|array`"
          },
          "column_values": {
            "type": "array",
            "description": "`sometimes|array`"
          },
          "limit": {
            "type": "integer",
            "description": "`sometimes|integer|min:1`"
          },
          "offset": {
            "type": "integer",
            "description": "`sometimes|integer|min:0`"
          },
          "sort": {
            "type": "string",
            "enum": [
              "ASC",
              "DESC",
              "asc",
              "desc"
            ],
            "description": "`sometimes|in:ASC,DESC,asc,desc`"
          },
          "resource": {
            "type": "string",
            "enum": [
              "all",
              "custom"
            ],
            "description": "`sometimes|in:all,custom`"
          },
          "resource_columns": {
            "type": "array",
            "description": "`sometimes|array`"
          },
          "with": {
            "type": "array",
            "description": "`sometimes|array`"
          },
          "has": {
            "type": "string",
            "description": "`sometimes|string|min:1`"
          },
          "field": {
            "type": "string",
            "description": "`sometimes|string|min:1`"
          },
          "deleted": {
            "type": "string",
            "enum": [
              "all",
              "deleted",
              "undeleted"
            ],
            "description": "`sometimes|in:all,deleted,undeleted`"
          },
          "paginate": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ],
            "description": "`sometimes|in:true,false`"
          }
        },
        "description": "Validation rules (verbatim):\n\n```\ncolumns => sometimes|array\noperand => sometimes|array\ncolumn_values => sometimes|array\nlimit => sometimes|integer|min:1\noffset => sometimes|integer|min:0\nsort => sometimes|in:ASC,DESC,asc,desc\nresource => sometimes|in:all,custom\nresource_columns => sometimes|array\nwith => sometimes|array\nhas => sometimes|string|min:1\nfield => sometimes|string|min:1\ndeleted => sometimes|in:all,deleted,undeleted\npaginate => sometimes|in:true,false\n```"
      },
      "PasswordRequest": {
        "type": "object",
        "properties": {
          "current_password": {
            "type": "string",
            "description": "`required|string`"
          },
          "password": {
            "type": "string",
            "description": "`required|min:8|confirmed`"
          }
        },
        "required": [
          "current_password",
          "password"
        ],
        "description": "Validation rules (verbatim):\n\n```\ncurrent_password => required|string\npassword => required|min:8|confirmed\n```"
      },
      "PhoneRequest": {
        "type": "object",
        "properties": {
          "phone": {
            "type": "string",
            "description": "`required|unique:users,phone`"
          },
          "code": {
            "type": "integer",
            "description": "`required|digits:6`"
          }
        },
        "required": [
          "phone",
          "code"
        ],
        "description": "Validation rules (verbatim):\n\n```\nphone => required|unique:users,phone\ncode => required|digits:6\n```"
      },
      "RegisterRequest": {
        "type": "object",
        "properties": {
          "provider_name": {
            "type": "string",
            "description": "`required|min:3|max:200`"
          },
          "commercial_no": {
            "type": "string",
            "description": "`required|min:3|max:50|unique:vendors,commercial_no`"
          },
          "description": {
            "type": "string",
            "description": "`nullable|min:3|max:200`"
          },
          "website_url": {
            "type": "string",
            "description": "`nullable|min:3|max:200`"
          },
          "twitter": {
            "type": "string",
            "description": "`nullable|min:3|max:200`"
          },
          "instagram": {
            "type": "string",
            "description": "`nullable|min:3|max:200`"
          },
          "snapchat": {
            "type": "string",
            "description": "`nullable|min:3|max:200`"
          },
          "registered_tax": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`required|in:0,1`"
          },
          "tax_number": {
            "type": "string",
            "description": "`required_if:registered_tax,1`"
          },
          "category_id": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "`required|exists:categories,id`"
            }
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`[ required, string, email, max:255, Rule::unique('users','email')->where(fn($q)=>$q->where('type','vendor')) ]`"
          },
          "first_name": {
            "type": "string",
            "description": "`required|min:3|max:20`"
          },
          "last_name": {
            "type": "string",
            "description": "`required|min:3|max:20`"
          },
          "phone": {
            "type": "number",
            "description": "`[ required, numeric, Rule::unique('users','phone')->where(fn($q)=>$q->where('type','vendor')) ]`"
          },
          "password": {
            "type": "string",
            "description": "`required|min:8|confirmed`"
          },
          "package_id": {
            "type": "integer",
            "description": "`nullable|integer|exists:packages,id` \u2014 landing-page plan pick (Jun-2026); falls back to the default package when omitted."
          }
        },
        "required": [
          "provider_name",
          "commercial_no",
          "registered_tax",
          "category_id",
          "email",
          "first_name",
          "last_name",
          "phone",
          "password"
        ],
        "description": "Validation rules (verbatim):\n\n```\nprovider_name => required|min:3|max:200\ncommercial_no => required|min:3|max:50|unique:vendors,commercial_no\ndescription => nullable|min:3|max:200\nwebsite_url => nullable|min:3|max:200\ntwitter => nullable|min:3|max:200\ninstagram => nullable|min:3|max:200\nsnapchat => nullable|min:3|max:200\nregistered_tax => required|in:0,1\ntax_number => required_if:registered_tax,1\ncategory_id => required|array\ncategory_id.* => required|exists:categories,id\nemail => [ required, string, email, max:255, Rule::unique('users','email')->where(fn($q)=>$q->where('type','vendor')) ]\nfirst_name => required|min:3|max:20\nlast_name => required|min:3|max:20\nphone => [ required, numeric, Rule::unique('users','phone')->where(fn($q)=>$q->where('type','vendor')) ]\npassword => required|min:8|confirmed\n```"
      },
      "ResetRequest": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "`required|min:5`"
          }
        },
        "required": [
          "username"
        ],
        "description": "Validation rules (verbatim):\n\n```\nusername => required|min:5\n```"
      },
      "SendCodeRequest": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "`required`"
          },
          "method": {
            "type": "string",
            "format": "email",
            "enum": [
              "whatsapp",
              "sms",
              "email"
            ],
            "description": "`nullable|in:whatsapp,sms,email`"
          }
        },
        "required": [
          "username"
        ],
        "description": "Validation rules (verbatim):\n\n```\nusername => required\nmethod => nullable|in:whatsapp,sms,email\n```"
      },
      "VerifyRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "description": "`required|email|exists:users,email`"
          },
          "code": {
            "type": "string",
            "description": "`required`"
          }
        },
        "required": [
          "email",
          "code"
        ],
        "description": "Validation rules (verbatim):\n\n```\nemail => required|email|exists:users,email\ncode => required\n```"
      },
      "_ErrorFull": {
        "type": "object",
        "description": "Standard error envelope (`errorResponse`/`apiResponse`).",
        "properties": {
          "version": {
            "type": "integer",
            "example": 1
          },
          "success": {
            "type": "boolean",
            "example": false
          },
          "status": {
            "type": "integer"
          },
          "data": {
            "type": "object",
            "nullable": true,
            "example": null
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "object",
            "nullable": true,
            "description": "Validation map or trace, when present."
          }
        }
      },
      "_Unauthenticated": {
        "type": "object",
        "description": "Thrown by the framework auth guard for missing/invalid tokens.",
        "properties": {
          "message": {
            "type": "string",
            "example": "Unauthenticated."
          }
        }
      },
      "_ValidationError": {
        "type": "object",
        "description": "Laravel validation error. NOTE: many FormRequests override `failedValidation` to return the 6-key envelope with HTTP **401** and `message: \"Validation Error\"` instead of 422.",
        "properties": {
          "message": {
            "type": "string",
            "example": "The given data was invalid."
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "EmployeePortfolioImage": {
        "type": "object",
        "description": "A single image in an employee's portfolio. Returned by vendor portfolio routes and by the customer-facing employee profile.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "image_url": {
            "type": "string",
            "description": "Public URL of the rendered image."
          },
          "caption": {
            "type": "string",
            "nullable": true,
            "description": "Optional lightbox caption."
          },
          "sort": {
            "type": "integer",
            "description": "Display order (lowest first)."
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "`'1'` = visible to customers, `'0'` = hidden."
          }
        }
      },
      "CustomerEmployeeProfileResource": {
        "type": "object",
        "description": "Resource `Customer\\EmployeeProfileResource`. Used by the public employee profile page in the customer app.",
        "properties": {
          "profile": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "job_title": {
                "type": "string",
                "nullable": true
              },
              "photo": {
                "type": "string",
                "nullable": true,
                "description": "Public URL."
              },
              "bio": {
                "type": "string",
                "nullable": true
              },
              "average_rate": {
                "type": "number",
                "format": "float"
              },
              "reviews_count": {
                "type": "integer"
              },
              "portfolio": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/EmployeePortfolioImage"
                }
              },
              "branch": {
                "type": "object",
                "nullable": true,
                "properties": {
                  "id": {
                    "type": "integer"
                  },
                  "slug": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                }
              },
              "services": {
                "type": "array",
                "description": "Active services this employee performs (id + locale-resolved name). Jun-2026.",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "reviews": {
            "type": "object",
            "description": "Paginated employee reviews. Same shape as customer reviews elsewhere in the API.",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer"
                    },
                    "booking_id": {
                      "type": "integer"
                    },
                    "employee_rate": {
                      "type": "integer",
                      "description": "1\u20135."
                    },
                    "employee_comment": {
                      "type": "string",
                      "nullable": true
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "reviewer_name": {
                      "type": "string",
                      "nullable": true
                    }
                  }
                }
              },
              "current_page": {
                "type": "integer"
              },
              "last_page": {
                "type": "integer"
              },
              "per_page": {
                "type": "integer"
              },
              "total": {
                "type": "integer"
              }
            }
          }
        }
      },
      "EmployeePortfolioUploadRequest": {
        "type": "object",
        "required": [
          "images"
        ],
        "properties": {
          "images": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "binary"
            },
            "description": "`array|min:1|max:10` \u2014 each file `image|mimes:png,jpg,jpeg|max:5120` (KB)."
          },
          "captions": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 500
            },
            "description": "Optional parallel array of captions (one per uploaded image, `max:500`)."
          }
        }
      },
      "EmployeePortfolioSortRequest": {
        "type": "object",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "description": "Each entry maps an existing image `id` to its new `sort` index.",
            "items": {
              "type": "object",
              "required": [
                "id",
                "sort"
              ],
              "properties": {
                "id": {
                  "type": "integer"
                },
                "sort": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            }
          }
        }
      },
      "VendorMyProfileUpdateRequest": {
        "type": "object",
        "description": "Self-service profile update for the signed-in employee. All fields optional.",
        "properties": {
          "bio": {
            "type": "string",
            "nullable": true,
            "description": "`nullable|string|min:2|max:1000`"
          },
          "image": {
            "type": "string",
            "format": "binary",
            "description": "`nullable|image|mimes:png,jpg,jpeg|max:5120` (KB)"
          },
          "first_name": {
            "type": "string",
            "nullable": true,
            "description": "`nullable|string|min:2`"
          },
          "last_name": {
            "type": "string",
            "nullable": true,
            "description": "`nullable|string|min:2`"
          }
        }
      },
      "CustomerHomeServiceCheckoutRequest": {
        "type": "object",
        "description": "Body for `POST /customer/v1/home-services/checkout`. **June-2026:** the endpoint now accepts a bundle \u2014 any combination of services and offers \u2014 via `service_ids[]` / `offer_ids[]`. The legacy single-item fields `service_id` / `offer_id` are still accepted for backward compatibility. At least one of the four must be present.",
        "properties": {
          "service_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "`array|required_without_all:offer_ids,service_id,offer_id`"
          },
          "offer_ids": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "`array|required_without_all:service_ids,service_id,offer_id`"
          },
          "service_id": {
            "type": "integer",
            "description": "`nullable|integer|exists:services,id` \u2014 legacy single-item shortcut."
          },
          "offer_id": {
            "type": "integer",
            "description": "`nullable|integer|exists:offers,id` \u2014 legacy single-item shortcut."
          },
          "branch_id": {
            "type": "integer",
            "description": "`required|exists:branches,id`"
          },
          "employee_id": {
            "type": "integer",
            "description": "`nullable|exists:employees,id` \u2014 **two-phase (Jun-2026)**: omit on the first call to get the eligible-employee list only; pass it on the second call to build that employee's timeslots. When present, the employee must be able to perform at least one item in the bundle."
          },
          "customer_lat": {
            "type": "number",
            "description": "`nullable|numeric|between:-90,90`"
          },
          "customer_lng": {
            "type": "number",
            "description": "`nullable|numeric|between:-180,180`"
          },
          "promo_code": {
            "type": "string",
            "maxLength": 191,
            "nullable": true,
            "description": "`nullable|string|max:191` \u2014 optional promo code applied to the bundle (May-2026)."
          },
          "sub_service_ids": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "nullable": true
            },
            "description": "`nullable|array` \u2014 chosen variant per service, **keyed by service id** (`{ \"12\": 55 }`). `null` / missing entry falls back to the catalog price/time. Each value `nullable|integer|exists:sub_services,id`."
          }
        }
      },
      "SubService": {
        "type": "object",
        "description": "A per-service variant (sub-service) \u2014 e.g. 'short hair / long hair' under one Haircut service, each with its own price and duration. Added Jun-2026.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name_ar": {
            "type": "string"
          },
          "name_en": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Locale-resolved name."
          },
          "price": {
            "type": "number"
          },
          "service_time": {
            "type": "number",
            "description": "Minutes."
          },
          "extra_time": {
            "type": "number",
            "nullable": true,
            "description": "Buffer minutes."
          },
          "sort": {
            "type": "integer"
          },
          "is_active": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ]
          }
        }
      },
      "GoogleCalendarStatus": {
        "type": "object",
        "description": "Vendor's Google Calendar connection state.",
        "properties": {
          "configured": {
            "type": "boolean",
            "description": "Google OAuth credentials configured platform-side."
          },
          "connected": {
            "type": "boolean"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "sync_enabled": {
            "type": "boolean"
          },
          "default_calendar_id": {
            "type": "string",
            "nullable": true
          },
          "calendars": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              }
            }
          },
          "employees": {
            "type": "array",
            "description": "Employee \u2192 calendar mappings.",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "GoogleReviewStats": {
        "type": "object",
        "description": "Google-review intelligence snapshot for a branch \u2014 rating stats, raw reviews, employee mentions, competitor list and AI insights. Refreshed on demand.",
        "properties": {
          "place_id": {
            "type": "string"
          },
          "place_name": {
            "type": "string"
          },
          "total_score": {
            "type": "number",
            "description": "Google rating (1 decimal)."
          },
          "reviews_count": {
            "type": "integer"
          },
          "reviews": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "fetched_at": {
            "type": "string",
            "format": "date-time"
          },
          "competitors": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "employee_mentions": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "competitor_insights": {
            "type": "object",
            "nullable": true
          }
        }
      },
      "AdminIntegration": {
        "type": "object",
        "description": "A third-party integration slot (WhatsApp, OurSMS, Google, Apify, Live Activity, Gemini\u2026). Credentials are stored encrypted; `fields` describes the editable inputs.",
        "properties": {
          "id": {
            "type": "integer"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "group": {
            "type": "string",
            "nullable": true,
            "description": "messaging | maps | reviews | push | ai"
          },
          "icon": {
            "type": "string",
            "nullable": true
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "secret": {
                  "type": "boolean"
                },
                "required": {
                  "type": "boolean"
                }
              }
            }
          },
          "credentials": {
            "type": "object",
            "description": "Masked for secret fields."
          },
          "is_active": {
            "type": "boolean"
          },
          "sort": {
            "type": "integer"
          }
        }
      },
      "AdminDefaultItem": {
        "type": "object",
        "description": "Shared shape for admin-managed catalog templates: default sections (seeded into new vendors) and popular services (the mobile create-service picker).",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name_ar": {
            "type": "string"
          },
          "name_en": {
            "type": "string",
            "nullable": true
          },
          "description_ar": {
            "type": "string",
            "nullable": true
          },
          "description_en": {
            "type": "string",
            "nullable": true
          },
          "sort": {
            "type": "integer"
          },
          "is_active": {
            "type": "boolean"
          }
        }
      },
      "AdminDefaultItemRequest": {
        "type": "object",
        "required": [
          "name_ar"
        ],
        "properties": {
          "name_ar": {
            "type": "string",
            "description": "`required|string|min:2`"
          },
          "name_en": {
            "type": "string",
            "description": "`nullable|string|min:2`"
          },
          "description_ar": {
            "type": "string",
            "description": "`nullable|string`"
          },
          "description_en": {
            "type": "string",
            "description": "`nullable|string`"
          },
          "sort": {
            "type": "integer",
            "description": "`nullable|integer`"
          },
          "is_active": {
            "type": "boolean",
            "description": "`nullable|boolean`"
          }
        }
      },
      "CustomerSocialLoginRequest": {
        "type": "object",
        "required": [
          "provider",
          "id_token"
        ],
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "google",
              "apple"
            ],
            "description": "`required|in:google,apple`"
          },
          "id_token": {
            "type": "string",
            "description": "`required|string` \u2014 the provider's ID token, **verified server-side**."
          },
          "first_name": {
            "type": "string",
            "description": "`nullable|string|max:40`"
          },
          "last_name": {
            "type": "string",
            "description": "`nullable|string|max:40`"
          },
          "email": {
            "type": "string",
            "format": "email",
            "description": "`nullable|email`"
          },
          "phone": {
            "type": "string",
            "description": "`nullable|string|max:20` \u2014 required to CREATE a new account; existing accounts sign in without it."
          }
        }
      }
    }
  }
}