{
  "openapi": "3.1.0",
  "info": {
    "title": "Ltd24 Public API",
    "version": "1.0.0",
    "x-api-lifecycle": {
      "versioning": "url-path",
      "current": "v1",
      "deprecation_policy": "https://ltd24.co.uk/developers.html#versioning",
      "notice_period_months": 6
    },
    "summary": "Plans, prices and comparisons for company formation and accounting in the UK, Ireland, the USA and Spain.",
    "description": "Free public API by Ltd24 (24 Tax and Consulting Ltd). Read endpoints need no key. Creating booking links needs an OAuth 2.0 token with scope booking:write (self-serve: register a client, no approval needed). Errors use RFC 9457 problem details. Rate limit: 120 requests/minute per IP. Versioning: the major version is in the path (/v1); every response carries API-Version. Breaking changes ship only in a new major version, announced at least 6 months ahead; deprecated endpoints then return Deprecation and Sunset headers (RFC 9745/8594) and are listed at https://ltd24.co.uk/developers.html#versioning. Sandbox: https://ltd24.co.uk/api/sandbox. MCP server: https://ltd24.co.uk/api/mcp. Docs: https://ltd24.co.uk/developers.html",
    "contact": {
      "name": "Ltd24",
      "email": "info@ltd24ore.com",
      "url": "https://ltd24.co.uk/developers.html"
    },
    "termsOfService": "https://ltd24.co.uk/condizioni-generali/",
    "license": {
      "name": "Public information, free to use with attribution",
      "url": "https://ltd24.co.uk/developers.html"
    }
  },
  "servers": [
    {
      "url": "https://ltd24.co.uk/api",
      "description": "Production"
    },
    {
      "url": "https://ltd24.co.uk/api/sandbox",
      "description": "Sandbox: same data and behaviour, booking links are test links and nothing is booked"
    }
  ],
  "externalDocs": {
    "url": "https://ltd24.co.uk/developers.html",
    "description": "Developer guide"
  },
  "tags": [
    {
      "name": "company"
    },
    {
      "name": "plans"
    },
    {
      "name": "booking"
    },
    {
      "name": "search"
    }
  ],
  "paths": {
    "/v1/company": {
      "get": {
        "operationId": "getCompany",
        "tags": [
          "company"
        ],
        "summary": "Company profile",
        "description": "Who Ltd24 is: services, jurisdictions, languages, contacts and offices.",
        "parameters": [
          {
            "name": "language",
            "in": "query",
            "required": false,
            "description": "Response language.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "it",
                "es",
                "fr",
                "de",
                "pt"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            }
          },
          "400": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/jurisdictions": {
      "get": {
        "operationId": "listJurisdictions",
        "tags": [
          "plans"
        ],
        "summary": "Supported jurisdictions",
        "description": "Countries where Ltd24 forms and manages companies.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JurisdictionList"
                }
              }
            }
          },
          "429": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/plans/{country}": {
      "get": {
        "operationId": "listPlans",
        "tags": [
          "plans"
        ],
        "summary": "Plans and prices for a country",
        "description": "All plans and prices (EUR) for one jurisdiction.",
        "parameters": [
          {
            "name": "country",
            "in": "path",
            "required": true,
            "description": "Jurisdiction code.",
            "schema": {
              "type": "string",
              "enum": [
                "uk",
                "ie",
                "us",
                "es"
              ]
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "description": "Response language.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "it",
                "es",
                "fr",
                "de",
                "pt"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanList"
                }
              }
            }
          },
          "400": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/compare": {
      "get": {
        "operationId": "compareJurisdictions",
        "tags": [
          "plans"
        ],
        "summary": "Compare jurisdictions",
        "description": "Compare entity types and plan prices across countries.",
        "parameters": [
          {
            "name": "countries",
            "in": "query",
            "required": false,
            "description": "Comma-separated codes, e.g. uk,ie. Default: all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "description": "Response language.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "it",
                "es",
                "fr",
                "de",
                "pt"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Comparison"
                }
              }
            }
          },
          "400": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/recommendations": {
      "get": {
        "operationId": "recommendPlan",
        "tags": [
          "plans"
        ],
        "summary": "Recommend a plan",
        "description": "Suggest the most suitable plan from a few facts about the business.",
        "parameters": [
          {
            "name": "country",
            "in": "query",
            "required": true,
            "description": "Jurisdiction code.",
            "schema": {
              "type": "string",
              "enum": [
                "uk",
                "ie",
                "us",
                "es"
              ]
            }
          },
          {
            "name": "annual_turnover_eur",
            "in": "query",
            "required": false,
            "description": "Expected yearly turnover in EUR.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "needs_vat",
            "in": "query",
            "required": false,
            "description": "VAT registration and returns needed.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "needs_oss",
            "in": "query",
            "required": false,
            "description": "UK: EU OSS filings needed.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "needs_self_assessment",
            "in": "query",
            "required": false,
            "description": "UK: director Self Assessment needed.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "trading",
            "in": "query",
            "required": false,
            "description": "UK: company trades actively.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "members",
            "in": "query",
            "required": false,
            "description": "USA: number of LLC members.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "needs_bookkeeping",
            "in": "query",
            "required": false,
            "description": "USA: ongoing bookkeeping or US income.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "invoices_per_year",
            "in": "query",
            "required": false,
            "description": "Spain: invoices per year.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "only_incorporation",
            "in": "query",
            "required": false,
            "description": "Ireland/Spain: formation only.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "description": "Response language.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "it",
                "es",
                "fr",
                "de",
                "pt"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Recommendation"
                }
              }
            }
          },
          "400": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/booking-links": {
      "post": {
        "operationId": "createBookingLink",
        "tags": [
          "booking"
        ],
        "summary": "Create a free consultation booking link",
        "description": "Creates a pre-filled Calendly link for a free consultation. The user must confirm the booking. Requires scope booking:write.",
        "security": [
          {
            "oauth2": [
              "booking:write"
            ]
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Unique key to safely retry the request; the same response is returned for 24 hours.",
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingLink"
                }
              }
            }
          },
          "400": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/whoami": {
      "get": {
        "operationId": "whoAmI",
        "tags": [
          "booking"
        ],
        "summary": "Inspect the current token",
        "description": "Returns the client and scopes of the access token.",
        "security": [
          {
            "oauth2": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenInfo"
                }
              }
            }
          },
          "401": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/search": {
      "get": {
        "operationId": "searchSite",
        "tags": [
          "search"
        ],
        "summary": "Search pages and plans",
        "description": "Keyword search over Ltd24 pages and plans. Cursor-paginated: pass page.next_cursor as cursor to get the next page.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Keywords.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Results per page (1-50, default 10).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 10
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque cursor from page.next_cursor.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "description": "Response language.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "it",
                "es",
                "fr",
                "de",
                "pt"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResults"
                }
              }
            }
          },
          "400": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1": {
      "get": {
        "operationId": "getApiIndexAuthenticated",
        "tags": [
          "booking"
        ],
        "summary": "Authenticated API index",
        "description": "Returns the endpoints and the client of the access token. Unauthenticated calls get 401 with WWW-Authenticate pointing to the protected resource metadata.",
        "security": [
          {
            "oauth2": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenInfo"
                }
              }
            }
          },
          "401": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/reports": {
      "post": {
        "operationId": "createComparisonReport",
        "tags": [
          "plans"
        ],
        "summary": "Start a comparison report (async)",
        "description": "Starts a job that compares jurisdictions. Returns 202 with job_id and a status_url (also in the Location header) to poll until status is completed.",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "Unique key to retry safely; the same job is returned for 24 hours.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "countries": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "uk",
                        "ie",
                        "us",
                        "es"
                      ]
                    }
                  },
                  "language": {
                    "type": "string",
                    "enum": [
                      "en",
                      "it",
                      "es",
                      "fr",
                      "de",
                      "pt"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted: poll status_url",
            "headers": {
              "Location": {
                "description": "Job status URL",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before polling",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "400": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/jobs/{job_id}": {
      "get": {
        "operationId": "getJob",
        "tags": [
          "plans"
        ],
        "summary": "Get job status",
        "description": "Status of an async job: queued, running, completed (with result) or failed (with error).",
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "description": "Job identifier from POST /v1/reports.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Job",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "404": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/ask": {
      "get": {
        "operationId": "nlwebAskGet",
        "tags": [
          "search"
        ],
        "summary": "NLWeb ask (GET)",
        "description": "NLWeb v0.55 query via GET: ?query=...&streaming=true for text/event-stream. Also served at https://ltd24.co.uk/ask.",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "The question.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "streaming",
            "in": "query",
            "required": false,
            "description": "true for SSE.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Results",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "nlwebAsk",
        "tags": [
          "search"
        ],
        "summary": "NLWeb ask",
        "description": "NLWeb v0.55 natural-language query endpoint. Set prefer.streaming=true for text/event-stream.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "description": "The question."
                      }
                    },
                    "required": [
                      "text"
                    ]
                  },
                  "prefer": {
                    "type": "object",
                    "properties": {
                      "streaming": {
                        "type": "boolean"
                      }
                    }
                  }
                },
                "required": [
                  "query"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Results",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "Error (RFC 9457 problem details)",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "Self-serve OAuth 2.0. See https://ltd24.co.uk/auth.md",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://ltd24.co.uk/api/oauth/token",
            "scopes": {
              "plans:read": "Read Ltd24 plans, prices and comparisons",
              "booking:write": "Create free-consultation booking links on your behalf"
            }
          },
          "authorizationCode": {
            "authorizationUrl": "https://ltd24.co.uk/api/oauth/authorize",
            "tokenUrl": "https://ltd24.co.uk/api/oauth/token",
            "refreshUrl": "https://ltd24.co.uk/api/oauth/token",
            "scopes": {
              "plans:read": "Read Ltd24 plans, prices and comparisons",
              "booking:write": "Create free-consultation booking links on your behalf"
            }
          }
        }
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "code",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "hint": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        }
      },
      "Price": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "subscription",
              "yearly",
              "one_off",
              "quote"
            ]
          },
          "monthly_eur": {
            "type": "number"
          },
          "yearly_eur": {
            "type": "number"
          },
          "amount_eur": {
            "type": "number"
          },
          "text": {
            "type": "string"
          }
        }
      },
      "Plan": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ]
          },
          "for": {
            "type": [
              "string",
              "null"
            ]
          },
          "limits": {
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "$ref": "#/components/schemas/Price"
          },
          "inherits": {
            "type": [
              "string",
              "null"
            ]
          },
          "includes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PlanList": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string"
          },
          "country_name": {
            "type": "string"
          },
          "entity": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "notes": {
            "type": [
              "string",
              "null"
            ]
          },
          "plans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Plan"
            }
          },
          "pricing_page": {
            "type": "string",
            "format": "uri"
          },
          "updated": {
            "type": "string"
          }
        }
      },
      "Company": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "name": {
            "type": "string"
          },
          "legal_name": {
            "type": "string"
          },
          "website": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "services": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contacts": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "JurisdictionList": {
        "type": "object",
        "properties": {
          "jurisdictions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "entity": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "Comparison": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "currency": {
            "type": "string"
          },
          "jurisdictions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      },
      "Recommendation": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "country": {
            "type": "string"
          },
          "recommended_plan": {
            "$ref": "#/components/schemas/Plan"
          },
          "reasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "BookingRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "topic": {
            "type": "string",
            "maxLength": 300
          },
          "language": {
            "type": "string",
            "enum": [
              "en",
              "it",
              "es",
              "fr",
              "de",
              "pt"
            ]
          }
        }
      },
      "BookingLink": {
        "type": "object",
        "properties": {
          "booking_url": {
            "type": "string",
            "format": "uri"
          },
          "whatsapp_url": {
            "type": "string",
            "format": "uri"
          },
          "language": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        }
      },
      "TokenInfo": {
        "type": "object",
        "properties": {
          "client_id": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "expires_at": {
            "type": "integer"
          }
        }
      },
      "SearchResults": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "page": {
            "$ref": "#/components/schemas/Page"
          }
        }
      },
      "Page": {
        "type": "object",
        "description": "Cursor pagination",
        "properties": {
          "limit": {
            "type": "integer"
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          },
          "has_more": {
            "type": "boolean"
          },
          "total": {
            "type": "integer"
          }
        },
        "required": [
          "limit",
          "next_cursor",
          "has_more"
        ]
      },
      "Job": {
        "type": "object",
        "properties": {
          "job_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "completed",
              "failed"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "status_url": {
            "type": "string",
            "format": "uri"
          },
          "result": {
            "$ref": "#/components/schemas/Comparison"
          },
          "error": {
            "type": "object"
          }
        },
        "required": [
          "job_id",
          "status",
          "status_url"
        ]
      }
    }
  }
}