{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nisebookings-com/json-schema/nisebookings-com-tenant-schema.json",
  "title": "Tenant",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/guide-openapi.json#/components/schemas/Tenant",
  "type": "object",
  "required": [
    "name",
    "timeZone",
    "currency",
    "locale",
    "pricesIncludeTax",
    "depositMode",
    "gateways",
    "cart",
    "chain",
    "recurringPayment",
    "extrasMultiply",
    "showOccupancy"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "timeZone": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "locale": {
      "type": "string"
    },
    "pricesIncludeTax": {
      "type": "boolean"
    },
    "depositMode": {
      "type": "string",
      "enum": [
        "deposit_only",
        "choose_deposit",
        "choose_full"
      ]
    },
    "gateways": {
      "type": "array",
      "description": "Enabled and configured; never empty (`local` as fallback).",
      "items": {
        "$ref": "#/$defs/Gateway"
      }
    },
    "cart": {
      "type": "boolean",
      "description": "Multiple appointments per checkout."
    },
    "chain": {
      "type": "boolean",
      "description": "Booking services back-to-back."
    },
    "recurringPayment": {
      "type": "string",
      "enum": [
        "all",
        "first"
      ],
      "description": "What an online payment covers for a recurring series."
    },
    "extrasMultiply": {
      "type": "boolean",
      "description": "Extra prices multiply by persons."
    },
    "bookingLimitReached": {
      "type": "boolean",
      "description": "The account reached its plan's monthly booking allowance: the widget shows a notice instead of the booking flow, and POST bookings answers 402 plan_limit."
    },
    "showOccupancy": {
      "type": "string",
      "enum": [
        "off",
        "busy",
        "free"
      ],
      "description": "`busy` shows occupied seats (`3/8`), `free` shows remaining seats."
    }
  },
  "$defs": {
    "Gateway": {
      "type": "string",
      "enum": [
        "local",
        "mollie"
      ],
      "description": "`local` = pay on site, `mollie` = online (iDEAL/card on Mollie's page)."
    }
  }
}