{
 "openapi": "3.1.0",
 "info": {
  "title": "Nayeret Rules API - Israeli bureaucracy as code",
  "version": "1.0.0+2026-10-19",
  "description": "Read-only, stateless API over a verified, date-versioned dataset of Israeli tax, National Insurance, labour and business rules (parameters with effective dates and official sources), calculators that use them, a business compliance calendar, a forms registry and a change feed. No personal data is stored or logged (only request counts). Not legal or tax advice; not a government service. Docs: https://nayeret.ai/developers/rules/",
  "license": {
   "name": "Attribution required (Source: Nayeret, nayeret.ai). Code: proprietary.",
   "url": "https://nayeret.ai/developers/rules/"
  },
  "contact": {
   "url": "https://nayeret.ai/contact/"
  }
 },
 "servers": [
  {
   "url": "https://nayeret.ai"
  }
 ],
 "externalDocs": {
  "url": "https://nayeret.ai/developers/rules/",
  "description": "Developer guide (Hebrew + English)"
 },
 "tags": [
  {
   "name": "parameters",
   "description": "Verified, date-versioned rule parameters (value at a date, history, sources)"
  },
  {
   "name": "calculate",
   "description": "Calculators over the parameters (same formulas as the site calculators)"
  },
  {
   "name": "deadlines",
   "description": "Business compliance calendar"
  },
  {
   "name": "forms",
   "description": "Forms registry (current edition, official links, field maps)"
  },
  {
   "name": "changes",
   "description": "Change feed (JSON, Atom, RSS, JSON Feed)"
  }
 ],
 "security": [
  {},
  {
   "apiKey": []
  }
 ],
 "paths": {
  "/api/v1/rules": {
   "get": {
    "operationId": "index",
    "summary": "Index of the endpoints",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/parameters": {
   "get": {
    "operationId": "listParameters",
    "tags": [
     "parameters"
    ],
    "summary": "List or search parameters",
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "description": "Words to search in id and descriptions (English or Hebrew)",
      "schema": {
       "type": "string",
       "maxLength": 100
      }
     },
     {
      "name": "prefix",
      "in": "query",
      "required": false,
      "description": "Only ids starting with this, e.g. \"btl.\" or \"tax.income\"",
      "schema": {
       "type": "string",
       "maxLength": 100
      }
     },
     {
      "name": "date",
      "in": "query",
      "required": false,
      "description": "Show the value in force on this date (default today)",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "examples": [
        "2026-07-01"
       ]
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max results",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 500,
       "default": 100
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "description": "Skip results",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "total",
          "count",
          "offset",
          "parameters"
         ],
         "properties": {
          "date": {
           "type": "string",
           "description": "The date the values are shown for (the date param, else a year found in q as YYYY-07-01, else today)"
          },
          "query": {
           "type": "object",
           "properties": {
            "text": {
             "type": "string"
            },
            "year": {
             "type": [
              "integer",
              "null"
             ]
            },
            "words": {
             "type": "array",
             "items": {
              "type": "string"
             }
            }
           }
          },
          "total": {
           "type": "integer"
          },
          "count": {
           "type": "integer"
          },
          "offset": {
           "type": "integer"
          },
          "parameters": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/ParameterSummary"
           }
          },
          "not_covered": {
           "type": "boolean",
           "description": "true when nothing matches or the topic is out of scope (e.g. crypto): do not answer from a near match"
          },
          "topic": {
           "type": "string"
          },
          "note": {
           "type": "string"
          },
          "official": {
           "type": "string"
          },
          "covered_topics": {
           "type": "array",
           "items": {
            "type": "string"
           }
          }
         }
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Bad query",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/parameters/{id}": {
   "get": {
    "operationId": "getParameter",
    "tags": [
     "parameters"
    ],
    "summary": "Value of one parameter at a date, its full history and sources",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "description": "Dotted id, e.g. tax.income.brackets.monthly",
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9_.]+$",
       "maxLength": 120
      }
     },
     {
      "name": "date",
      "in": "query",
      "required": false,
      "description": "Date (default today). Must be inside metadata.coverage, else 422",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "examples": [
        "2026-07-01"
       ]
      }
     },
     {
      "name": "full_history",
      "in": "query",
      "required": false,
      "description": "Include large historical values in full (default false: summarised)",
      "schema": {
       "type": "boolean",
       "default": false
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ParameterAt"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Bad id or date (impossible dates such as 2026-13-45 included)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Unknown id (details.suggestions lists close ids)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "date_out_of_coverage: the date is before or after the verified coverage (details.position, details.verified_until)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/dataset": {
   "get": {
    "operationId": "getDataset",
    "tags": [
     "parameters"
    ],
    "summary": "The whole parameters dataset (bulk download, same shape as rules/parameters.json)",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate": {
   "get": {
    "operationId": "listCalculators",
    "tags": [
     "calculate"
    ],
    "summary": "List the calculators with their input schemas",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "calculators": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/CalcDescription"
           }
          }
         }
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/income-tax": {
   "get": {
    "operationId": "describe_income_tax",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for income-tax",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_income_tax",
    "tags": [
     "calculate"
    ],
    "summary": "Income tax by bracket (2020-2026)",
    "description": "Income tax on personal-exertion income for a tax year 2020-2026: brackets, credit points (base by sex + extra) and surtax. Monthly mode uses the annual brackets / 12.\n\nSame formula as the free calculator https://nayeret.ai/tools/income-tax/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "year": {
          "type": "integer",
          "minimum": 2020,
          "maximum": 2026,
          "description": "Tax year",
          "default": 2026
         },
         "period": {
          "type": "string",
          "enum": [
           "monthly",
           "annual"
          ],
          "description": "monthly or annual income",
          "default": "monthly"
         },
         "income": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000000000,
          "description": "Taxable income for the period (ILS)"
         },
         "sex": {
          "type": "string",
          "enum": [
           "m",
           "f"
          ],
          "description": "m = man (2.25 base points), f = woman (2.75)",
          "default": "m"
         },
         "extra_points": {
          "type": "number",
          "minimum": 0,
          "maximum": 30,
          "description": "Credit points beyond the base points (children, degree, ...)",
          "default": 0
         }
        },
        "required": [
         "income"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "year": 2026,
          "period": "monthly",
          "income": 15000,
          "sex": "m"
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/net-salary": {
   "get": {
    "operationId": "describe_net_salary",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for net-salary",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_net_salary",
    "tags": [
     "calculate"
    ],
    "summary": "Net salary (gross to net, net to gross), 2026",
    "description": "Monthly net salary for 2026 at one employer: income tax by monthly brackets, credit points, 35% credit on the employee pension deposit, surtax, employee NI + health, pension and study fund deductions. net_to_gross finds the gross for a target net.\n\nSame formula as the free calculator https://nayeret.ai/tools/net-salary/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "direction": {
          "type": "string",
          "enum": [
           "gross_to_net",
           "net_to_gross"
          ],
          "description": "gross_to_net or net_to_gross",
          "default": "gross_to_net"
         },
         "amount": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000,
          "description": "Gross (or the target net) per month, ILS"
         },
         "sex": {
          "type": "string",
          "enum": [
           "m",
           "f"
          ],
          "description": "m = man (2.25 base points), f = woman (2.75)",
          "default": "m"
         },
         "children": {
          "type": "array",
          "maxItems": 15,
          "items": {
           "type": "integer",
           "minimum": 2008,
           "maximum": 2026,
           "description": "Birth year of a child aged 0-18 in the tax year"
          },
          "description": "Birth years of the children (credit points are added for them)"
         },
         "parent_role": {
          "type": "string",
          "enum": [
           "main",
           "other"
          ],
          "description": "Who gets the \"mother\" child points: main (the mother / parent receiving the child allowance) or other. Default: main for f, other for m (a couple living together)"
         },
         "single_parent": {
          "type": "boolean",
          "description": "\"Single parent\" (other parent deceased or not registered)",
          "default": false
         },
         "extra_points": {
          "type": "number",
          "minimum": 0,
          "maximum": 30,
          "description": "Credit points beyond the base points and the children (degree, discharge, oleh, reserve...)",
          "default": 0
         },
         "credit_points": {
          "type": "number",
          "minimum": 0,
          "maximum": 40,
          "description": "Total credit points, if you already know them (overrides sex, children and extra_points)"
         },
         "pension_percent": {
          "type": "number",
          "minimum": 0,
          "maximum": 10,
          "description": "Employee pension deposit, percent of gross",
          "default": 6
         },
         "study_fund_percent": {
          "type": "number",
          "minimum": 0,
          "maximum": 5,
          "description": "Employee study fund deposit, percent",
          "default": 0
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "amount"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "direction": "gross_to_net",
          "amount": 15000,
          "sex": "f",
          "children": [
           2023,
           2020
          ],
          "pension_percent": 6
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/credit-points": {
   "get": {
    "operationId": "describe_credit_points",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for credit-points",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_credit_points",
    "tags": [
     "calculate"
    ],
    "summary": "Credit points by profile (tax year 2026)",
    "description": "Income tax credit points for 2026 from a profile: residency, sex, children (birth years) and who receives the \"mother\" points, single parent, discharged soldier, BA/MA degree, new immigrant, combat reserve days. Optional monthly salary shows the value actually usable.\n\nSame formula as the free calculator https://nayeret.ai/tools/credit-points/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "year": {
          "type": "integer",
          "minimum": 2026,
          "maximum": 2026,
          "description": "Tax year (only 2026 is supported)",
          "default": 2026
         },
         "sex": {
          "type": "string",
          "enum": [
           "m",
           "f"
          ],
          "description": "m or f"
         },
         "resident": {
          "type": "boolean",
          "description": "Israeli resident",
          "default": true
         },
         "children": {
          "type": "array",
          "maxItems": 15,
          "items": {
           "type": "integer",
           "minimum": 2008,
           "maximum": 2026,
           "description": "Birth year of a child aged 0-18 in the tax year"
          },
          "description": "Birth years of the children",
          "default": []
         },
         "parent_role": {
          "type": "string",
          "enum": [
           "main",
           "other"
          ],
          "description": "main = the mother / the parent receiving the child allowance; other = the other parent"
         },
         "single_parent": {
          "type": "boolean",
          "description": "\"Single parent\" (other parent deceased or not registered)",
          "default": false
         },
         "service": {
          "type": "integer",
          "minimum": 0,
          "maximum": 2,
          "description": "Discharged soldier: 0 none, 2 full service, 1 short service (12+ months)",
          "default": 0
         },
         "discharge": {
          "type": "string",
          "pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
          "maxLength": 7,
          "description": "Discharge month YYYY-MM"
         },
         "degree": {
          "type": "string",
          "enum": [
           "ba",
           "ma"
          ],
          "description": "Completed degree"
         },
         "degree_year": {
          "type": "integer",
          "minimum": 2000,
          "maximum": 2026,
          "description": "Year the degree was completed"
         },
         "study_years": {
          "type": "integer",
          "minimum": 1,
          "maximum": 3,
          "description": "Years of study for the degree (1-3)",
          "default": 3
         },
         "aliyah": {
          "type": "string",
          "pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
          "maxLength": 7,
          "description": "Aliyah month YYYY-MM (new immigrant)"
         },
         "reserve_combat_days": {
          "type": "integer",
          "minimum": 0,
          "maximum": 366,
          "description": "Combat reserve days in the previous year",
          "default": 0
         },
         "monthly_salary": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000,
          "description": "Optional gross monthly salary, to cap the value at the tax you actually pay"
         }
        },
        "required": [
         "sex"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "sex": "m",
          "children": [
           2025,
           2022,
           2017
          ],
          "parent_role": "other",
          "reserve_combat_days": 95
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/national-insurance": {
   "get": {
    "operationId": "describe_national_insurance",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for national-insurance",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_national_insurance",
    "tags": [
     "calculate"
    ],
    "summary": "National Insurance + health contributions (employee, employer, self-employed), 2026",
    "description": "Monthly NI and health contributions in 2026: employee share on a salary, employer share on a salary, or a self-employed person (BTL base formula with the 52% deduction, minimum and maximum income).\n\nSame formula as the free calculator https://nayeret.ai/tools/btl-self-employed/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "role": {
          "type": "string",
          "enum": [
           "employee",
           "employer",
           "self_employed"
          ],
          "description": "employee, employer or self_employed"
         },
         "income": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000000000,
          "description": "Monthly gross salary, or the self-employed taxable income"
         },
         "period": {
          "type": "string",
          "enum": [
           "monthly",
           "annual"
          ],
          "description": "For self_employed: monthly or annual income",
          "default": "monthly"
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "role",
         "income"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "role": "self_employed",
          "income": 12000
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/severance": {
   "get": {
    "operationId": "describe_severance",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for severance",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_severance",
    "tags": [
     "calculate"
    ],
    "summary": "Severance pay and its tax exemption",
    "description": "Statutory severance (last salary x years, part-time periods by job percent), section 14 (full / partial 6%), fund balance, and the 2026 tax exemption ceiling (min of 13,750 x years and salary x 1.5 x years).\n\nSame formula as the free calculator https://nayeret.ai/tools/severance/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "start": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "Employment start (YYYY-MM-DD)"
         },
         "end": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "Employment end (YYYY-MM-DD)"
         },
         "last_salary": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000,
          "description": "Last monthly gross salary (at the current job percent)"
         },
         "job_percent": {
          "type": "number",
          "minimum": 1,
          "maximum": 100,
          "description": "Job percent (when there is no history)",
          "default": 100
         },
         "job_history": {
          "type": "array",
          "maxItems": 30,
          "description": "Job percent changes: the percent from the start date is job_percent_at_start, each item a later change",
          "items": {
           "type": "object",
           "properties": {
            "from": {
             "type": "string",
             "format": "date",
             "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
             "maxLength": 10,
             "description": "Change date (YYYY-MM-DD)"
            },
            "percent": {
             "type": "number",
             "minimum": 1,
             "maximum": 100,
             "description": "Job percent from this date"
            }
           },
           "required": [
            "from",
            "percent"
           ],
           "additionalProperties": false
          }
         },
         "job_percent_at_start": {
          "type": "number",
          "minimum": 1,
          "maximum": 100,
          "description": "With job_history: job percent from the start date until the first change",
          "default": 100
         },
         "reason": {
          "type": "string",
          "enum": [
           "dismissal",
           "entitled",
           "resign"
          ],
          "description": "dismissal, entitled (resignation that entitles to severance) or resign (regular resignation)",
          "default": "dismissal"
         },
         "section_14": {
          "type": "string",
          "enum": [
           "none",
           "full",
           "partial"
          ],
          "description": "none, full (8.33%) or partial (6%)",
          "default": "none"
         },
         "fund_balance": {
          "type": "number",
          "minimum": 0,
          "maximum": 100000000,
          "description": "Severance component balance in the pension fund",
          "default": 0
         },
         "side": {
          "type": "string",
          "enum": [
           "employee",
           "employer"
          ],
          "description": "employee or employer view",
          "default": "employee"
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "start",
         "end",
         "last_salary"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "start": "2016-01-01",
          "end": "2026-01-01",
          "last_salary": 20000
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/unemployment": {
   "get": {
    "operationId": "describe_unemployment",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for unemployment",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_unemployment",
    "tags": [
     "calculate"
    ],
    "summary": "Unemployment benefit: daily amount, max days, total (2026)",
    "description": "BTL unemployment benefit: 6-month income / 150 = daily wage, banded on the basic daily amount by age group, capped (days 1-125 and from day 126); maximum days by age and dependants.\n\nSame formula as the free calculator https://nayeret.ai/tools/unemployment/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "wage": {
          "type": "number",
          "minimum": 0,
          "maximum": 100000000,
          "description": "Monthly gross wage (average of the last 6 months), or the 6-month total"
         },
         "wage_mode": {
          "type": "string",
          "enum": [
           "monthly_average",
           "six_month_total"
          ],
          "description": "monthly_average or six_month_total",
          "default": "monthly_average"
         },
         "age": {
          "type": "integer",
          "minimum": 18,
          "maximum": 67,
          "description": "Age"
         },
         "dependants": {
          "type": "integer",
          "minimum": 0,
          "maximum": 20,
          "description": "Number of dependants",
          "default": 0
         },
         "women_57_67_born_1960_plus": {
          "type": "boolean",
          "description": "Woman aged 57-67 born 1960 or later (300 days)",
          "default": false
         },
         "months_worked_last_18": {
          "type": "integer",
          "minimum": 0,
          "maximum": 18,
          "description": "Insured months worked in the last 18",
          "default": 18
         },
         "reason": {
          "type": "string",
          "enum": [
           "fired",
           "justified",
           "quit",
           "halat"
          ],
          "description": "fired, justified, quit or halat (unpaid leave by the employer)",
          "default": "fired"
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "wage",
         "age"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "wage": 6000,
          "age": 30,
          "dependants": 0
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/maternity": {
   "get": {
    "operationId": "describe_maternity",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for maternity",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_maternity",
    "tags": [
     "calculate"
    ],
    "summary": "Maternity allowance (2026)",
    "description": "BTL maternity allowance: daily = the higher of 3-month salary / 90 and 6-month salary / 180, capped; 105 days (10 of 14 or 15 of 22 insured months) or 56 days (6 of 14), plus extra weeks per additional baby.\n\nSame formula as the free calculator https://nayeret.ai/tools/maternity-pay/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "insured_months_of_14": {
          "type": "integer",
          "minimum": 0,
          "maximum": 14,
          "description": "Insured months in the last 14",
          "default": 0
         },
         "insured_months_of_22": {
          "type": "integer",
          "minimum": 0,
          "maximum": 22,
          "description": "Insured months in the last 22",
          "default": 0
         },
         "salary_3_months": {
          "type": "number",
          "minimum": 0,
          "maximum": 100000000,
          "description": "Gross salary in the 3 months before leave (total)",
          "default": 0
         },
         "salary_6_months": {
          "type": "number",
          "minimum": 0,
          "maximum": 100000000,
          "description": "Gross salary in the 6 months before leave (total)",
          "default": 0
         },
         "babies": {
          "type": "integer",
          "minimum": 1,
          "maximum": 8,
          "description": "Babies born",
          "default": 1
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "insured_months_of_14": 12,
          "salary_3_months": 36000,
          "salary_6_months": 66000
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/reserve-pay": {
   "get": {
    "operationId": "describe_reserve_pay",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for reserve-pay",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_reserve_pay",
    "tags": [
     "calculate"
    ],
    "summary": "Reserve duty compensation (2026)",
    "description": "BTL reserve duty compensation: 3-month gross income / 90 per day between the daily minimum and maximum; self-employed get 25% more; no income = the minimum. Several call-ups are summed.\n\nSame formula as the free calculator https://nayeret.ai/tools/reserve-pay/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string",
          "enum": [
           "employee",
           "hourly",
           "self",
           "none"
          ],
          "description": "employee, hourly, self (self-employed) or none (no income, e.g. student)",
          "default": "employee"
         },
         "periods": {
          "type": "array",
          "minItems": 1,
          "maxItems": 20,
          "description": "One item per call-up",
          "items": {
           "type": "object",
           "properties": {
            "income_3_months": {
             "type": "number",
             "minimum": 0,
             "maximum": 100000000,
             "description": "Gross income in the 3 months before the service (total)",
             "default": 0
            },
            "days": {
             "type": "integer",
             "minimum": 1,
             "maximum": 366,
             "description": "Service days"
            }
           },
           "required": [
            "days"
           ],
           "additionalProperties": false
          }
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "periods"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "type": "employee",
          "periods": [
           {
            "income_3_months": 36000,
            "days": 10
           }
          ]
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/work-injury": {
   "get": {
    "operationId": "describe_work_injury",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for work-injury",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_work_injury",
    "tags": [
     "calculate"
    ],
    "summary": "Work injury allowance (2026)",
    "description": "BTL work injury allowance: 75% of the 3-month income / 90 per day, capped, up to 91 days; employees absent under 12 days are not paid for the first 2 days; the self-employed lose the first 12 days.\n\nSame formula as the free calculator https://nayeret.ai/tools/work-injury/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string",
          "enum": [
           "employee",
           "self"
          ],
          "description": "employee or self (self-employed)",
          "default": "employee"
         },
         "income_3_months": {
          "type": "number",
          "minimum": 0,
          "maximum": 100000000,
          "description": "Income in the 3 months before the injury (total)"
         },
         "days": {
          "type": "integer",
          "minimum": 0,
          "maximum": 366,
          "description": "Days of incapacity"
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "income_3_months",
         "days"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "type": "employee",
          "income_3_months": 30000,
          "days": 7
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/recuperation": {
   "get": {
    "operationId": "describe_recuperation",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for recuperation",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_recuperation",
    "tags": [
     "calculate"
    ],
    "summary": "Recuperation pay (private sector)",
    "description": "Recuperation pay (dmei havraa), private sector: days by year of seniority x job share (percent, weekly hours / 42 or monthly hours / 182) x months / 12 x the day rate of the recuperation year (1 July - 30 June).\n\nSame formula as the free calculator https://nayeret.ai/tools/recuperation-pay/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "recuperation_year": {
          "type": "integer",
          "minimum": 2024,
          "maximum": 2027,
          "description": "Recuperation year (e.g. 2026 = 1.7.2025 to 30.6.2026)",
          "default": 2026
         },
         "seniority_year": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50,
          "description": "Year of work at the employer (1 = first year; 20 = 20 and above)"
         },
         "scope_mode": {
          "type": "string",
          "enum": [
           "percent",
           "weekly_hours",
           "monthly_hours"
          ],
          "description": "percent, weekly_hours or monthly_hours",
          "default": "percent"
         },
         "scope": {
          "type": "number",
          "minimum": 0,
          "maximum": 400,
          "description": "Job percent, weekly hours or average monthly hours",
          "default": 100
         },
         "months": {
          "type": "number",
          "minimum": 0,
          "maximum": 12,
          "description": "Months of the year worked",
          "default": 12
         },
         "completed_first_year": {
          "type": "boolean",
          "description": "Completed a full year at the employer (required for payment)",
          "default": true
         }
        },
        "required": [
         "seniority_year"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "recuperation_year": 2026,
          "seniority_year": 10,
          "scope_mode": "weekly_hours",
          "scope": 18
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/vacation-days": {
   "get": {
    "operationId": "describe_vacation_days",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for vacation-days",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_vacation_days",
    "tags": [
     "calculate"
    ],
    "summary": "Annual leave days",
    "description": "Annual leave entitlement: gross days by calendar year of seniority (law; 5-day week extension order: the higher of the two), pro rata under 200 (full year) / 240 (part year) work days, net work days off.\n\nSame formula as the free calculator https://nayeret.ai/tools/vacation-days/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "seniority_year": {
          "type": "integer",
          "minimum": 1,
          "maximum": 60,
          "description": "Calendar year of work at the employer (14 = 14 and above)"
         },
         "week": {
          "type": "string",
          "enum": [
           "five_day_order",
           "five_day_law",
           "six_day"
          ],
          "description": "five_day_order (5-day week, extension order applies), five_day_law (5-day, no order) or six_day",
          "default": "five_day_order"
         },
         "span": {
          "type": "string",
          "enum": [
           "full_year",
           "part_year"
          ],
          "description": "full_year or part_year",
          "default": "full_year"
         },
         "days_worked": {
          "type": "integer",
          "minimum": 0,
          "maximum": 366,
          "description": "Work days in the year (optional; below the minimum the entitlement is pro rata)"
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "seniority_year"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "seniority_year": 8,
          "week": "five_day_order",
          "days_worked": 150
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/notice-period": {
   "get": {
    "operationId": "describe_notice_period",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for notice-period",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_notice_period",
    "tags": [
     "calculate"
    ],
    "summary": "Notice period (dismissal or resignation)",
    "description": "Statutory notice period (same for dismissal and resignation, calendar days) by seniority in whole months and pay type, and the earliest last day of work.\n\nSame formula as the free calculator https://nayeret.ai/tools/notice-period/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "start": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "Employment start (YYYY-MM-DD)"
         },
         "notice_date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "Date the notice is given (YYYY-MM-DD)"
         },
         "pay_type": {
          "type": "string",
          "enum": [
           "monthly",
           "hourly"
          ],
          "description": "monthly or hourly (hourly/daily paid)",
          "default": "monthly"
         },
         "unpaid_leave_months": {
          "type": "integer",
          "minimum": 0,
          "maximum": 600,
          "description": "Months of unpaid leave to exclude",
          "default": 0
         }
        },
        "required": [
         "start",
         "notice_date"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "start": "2025-07-01",
          "notice_date": "2026-04-08",
          "pay_type": "monthly"
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/vat": {
   "get": {
    "operationId": "describe_vat",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for vat",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_vat",
    "tags": [
     "calculate"
    ],
    "summary": "VAT add / remove (any date since 1976)",
    "description": "Adds VAT to a price or extracts it from a VAT-inclusive total, at the rate in force on a date (Tax Authority history since 1.7.1976) or a custom rate. Rounded to the agora.\n\nSame formula as the free calculator https://nayeret.ai/tools/vat/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "mode": {
          "type": "string",
          "enum": [
           "add",
           "remove"
          ],
          "description": "add or remove",
          "default": "add"
         },
         "amount": {
          "type": "number",
          "minimum": 0,
          "maximum": 100000000000,
          "description": "Amount (ILS)"
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "Transaction date for the rate (default today) (YYYY-MM-DD)"
         },
         "custom_rate": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "description": "Custom rate in percent (overrides the date)"
         }
        },
        "required": [
         "amount"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "mode": "remove",
          "amount": 1180
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/purchase-tax": {
   "get": {
    "operationId": "describe_purchase_tax",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for purchase-tax",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_purchase_tax",
    "tags": [
     "calculate"
    ],
    "summary": "Purchase tax on a home",
    "description": "Purchase tax (mas rechisha) on residential property: single home, additional home, or oleh (reg. 12A single home up to the cap; reg. 12 for olim who arrived before 15.8.2024; the cheapest allowed track). Tax on the whole property x the share bought.\n\nSame formula as the free calculator https://nayeret.ai/tools/purchase-tax/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "price": {
          "type": "number",
          "minimum": 0,
          "maximum": 100000000000,
          "description": "Price of the whole property (ILS)"
         },
         "share_percent": {
          "type": "number",
          "minimum": 1,
          "maximum": 100,
          "description": "Share bought, percent",
          "default": 100
         },
         "buyer": {
          "type": "string",
          "enum": [
           "single",
           "additional",
           "oleh"
          ],
          "description": "single (only home), additional, or oleh",
          "default": "single"
         },
         "oleh_arrived_before_2024_08_15": {
          "type": "boolean",
          "description": "Oleh who arrived before 15.8.2024 (may choose reg. 12)",
          "default": false
         },
         "oleh_only_home": {
          "type": "boolean",
          "description": "For olim: this will be the only home",
          "default": true
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "Purchase date (default today) (YYYY-MM-DD)"
         }
        },
        "required": [
         "price"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "price": 2400000,
          "buyer": "single"
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/car-benefit": {
   "get": {
    "operationId": "describe_car_benefit",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for car-benefit",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_car_benefit",
    "tags": [
     "calculate"
    ],
    "summary": "Company car taxable benefit (2026)",
    "description": "Monthly taxable car benefit: 2.48% of the adjusted list price up to the ceiling, minus the reduction for hybrid / plug-in / electric. With a salary: the extra income tax and NI + health it causes.\n\nSame formula as the free calculator https://nayeret.ai/tools/car-benefit/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "list_price": {
          "type": "number",
          "minimum": 0,
          "maximum": 100000000,
          "description": "Adjusted list price (ILS)"
         },
         "fuel": {
          "type": "string",
          "enum": [
           "regular",
           "hybrid",
           "plugin",
           "electric"
          ],
          "description": "regular, hybrid, plugin or electric",
          "default": "regular"
         },
         "salary": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000,
          "description": "Optional monthly gross salary without the car"
         },
         "sex": {
          "type": "string",
          "enum": [
           "m",
           "f"
          ],
          "description": "m = man (2.25 base points), f = woman (2.75)",
          "default": "m"
         },
         "extra_points": {
          "type": "number",
          "minimum": 0,
          "maximum": 30,
          "description": "Credit points beyond the base points",
          "default": 0
         },
         "pension_percent": {
          "type": "number",
          "minimum": 0,
          "maximum": 10,
          "description": "Employee pension percent of the salary",
          "default": 6
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "list_price"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "list_price": 200000,
          "fuel": "regular",
          "salary": 15000
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/rental-income-tax": {
   "get": {
    "operationId": "describe_rental_income_tax",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for rental-income-tax",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_rental_income_tax",
    "tags": [
     "calculate"
    ],
    "summary": "Rental income tax: exemption, 10% or regular route (2026)",
    "description": "Annual tax on residential rent under the three routes (exemption up to the ceiling with the partial band, 10% on gross rent with the tenant offset, regular route stacked on work income with the 31% minimum under 60 and surtax) and the cheapest route.\n\nSame formula as the free calculator https://nayeret.ai/tools/rental-income-tax/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "monthly_rent": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000,
          "description": "Total monthly rent from residential apartments (ILS)"
         },
         "months": {
          "type": "integer",
          "minimum": 1,
          "maximum": 12,
          "description": "Months rented in the year",
          "default": 12
         },
         "age_60_plus": {
          "type": "boolean",
          "description": "Owner aged 60 or more",
          "default": false
         },
         "annual_work_income": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000000000,
          "description": "Other annual taxable income from work or business",
          "default": 0
         },
         "annual_expenses": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000000000,
          "description": "Deductible annual expenses on the apartment (regular route)",
          "default": 0
         },
         "sex": {
          "type": "string",
          "enum": [
           "m",
           "f"
          ],
          "description": "m = man (2.25 base points), f = woman (2.75)",
          "default": "m"
         },
         "sole_apartment_tenant": {
          "type": "boolean",
          "description": "Owns only this apartment and rents another to live in",
          "default": false
         },
         "rent_paid_monthly": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000,
          "description": "Rent the owner pays as a tenant per month",
          "default": 0
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "monthly_rent"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "monthly_rent": 7000
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/depreciation": {
   "get": {
    "operationId": "describe_depreciation",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for depreciation",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_depreciation",
    "tags": [
     "calculate"
    ],
    "summary": "Depreciation schedule (straight line)",
    "description": "Straight-line depreciation by the official rate of the asset type (or a custom rate): first year pro rata by months of use from the start month, the last year takes the remainder; recognised share by business use.\n\nSame formula as the free calculator https://nayeret.ai/tools/depreciation/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "asset_type": {
          "type": "string",
          "maxLength": 40,
          "pattern": "^[a-z0-9-]+$",
          "description": "Asset type id from parameter tax.depreciation.rates (e.g. pc, furniture, car)"
         },
         "custom_rate": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "description": "Custom annual rate in percent (instead of asset_type)"
         },
         "cost": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000000,
          "description": "Cost (ILS)"
         },
         "start": {
          "type": "string",
          "pattern": "^\\d{4}-(0[1-9]|1[0-2])$",
          "maxLength": 7,
          "description": "Month put into use YYYY-MM"
         },
         "business_percent": {
          "type": "number",
          "minimum": 0,
          "maximum": 100,
          "description": "Business use percent",
          "default": 100
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "cost",
         "start"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "asset_type": "pc",
          "cost": 6000,
          "start": "2026-03"
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/employer-cost": {
   "get": {
    "operationId": "describe_employer_cost",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for employer-cost",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_employer_cost",
    "tags": [
     "calculate"
    ],
    "summary": "Employer cost of a salary (2026)",
    "description": "Monthly employer cost: gross + employer NI + pension + severance + study fund (up to the ceiling) + optional recuperation and vacation provisions; or the gross that fits a budget. Also the employee's estimated net (man, 2.25 points).\n\nSame formula as the free calculator https://nayeret.ai/tools/employer-cost/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "direction": {
          "type": "string",
          "enum": [
           "gross_to_cost",
           "cost_to_gross"
          ],
          "description": "gross_to_cost or cost_to_gross",
          "default": "gross_to_cost"
         },
         "amount": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000,
          "description": "Gross salary, or the budget (ILS per month)"
         },
         "pension_employer_percent": {
          "type": "number",
          "minimum": 0,
          "maximum": 10,
          "description": "Employer pension percent",
          "default": 6.5
         },
         "severance_percent": {
          "type": "number",
          "minimum": 0,
          "maximum": 8.33,
          "description": "Severance percent",
          "default": 6
         },
         "study_fund_percent": {
          "type": "number",
          "minimum": 0,
          "maximum": 7.5,
          "description": "Employer study fund percent",
          "default": 0
         },
         "pension_base": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000,
          "description": "Wage for pension deposits (0 = the whole gross)",
          "default": 0
         },
         "recuperation": {
          "type": "boolean",
          "description": "Include a monthly recuperation provision",
          "default": false
         },
         "seniority_year": {
          "type": "integer",
          "minimum": 1,
          "maximum": 50,
          "description": "Year of seniority for recuperation days",
          "default": 1
         },
         "job_percent": {
          "type": "number",
          "minimum": 1,
          "maximum": 100,
          "description": "Job percent for recuperation",
          "default": 100
         },
         "vacation": {
          "type": "boolean",
          "description": "Include a vacation provision",
          "default": false
         },
         "vacation_days": {
          "type": "number",
          "minimum": 0,
          "maximum": 40,
          "description": "Vacation days per year",
          "default": 12
         },
         "employee_credit_points": {
          "type": "number",
          "minimum": 0,
          "maximum": 40,
          "description": "Credit points for the employee net estimate (default 2.25 = man, no extra points)",
          "default": 2.25
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "amount"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "amount": 10000
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/withholding": {
   "get": {
    "operationId": "describe_withholding",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for withholding",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_withholding",
    "tags": [
     "calculate"
    ],
    "summary": "Withholding at source from a supplier payment (2026)",
    "description": "Income tax withheld from a payment to a supplier: by the certificate rate, 0 with an exemption, 20% for services with only a bookkeeping certificate, else the regulation rate (30% services, 35% rent); one-time payments up to the exempt amount are not withheld.\n\nSame formula as the free calculator https://nayeret.ai/tools/withholding/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "amount": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000000,
          "description": "Payment amount (ILS)"
         },
         "vat_mode": {
          "type": "string",
          "enum": [
           "incl",
           "excl",
           "none"
          ],
          "description": "incl (amount includes VAT), excl (VAT is added) or none",
          "default": "incl"
         },
         "payment_type": {
          "type": "string",
          "maxLength": 40,
          "pattern": "^[a-z0-9-]+$",
          "default": "services",
          "description": "Payment type id from parameter tax.withholding.regulation_rates (e.g. services, rent)"
         },
         "certificate": {
          "type": "string",
          "enum": [
           "rate",
           "zero",
           "books",
           "none"
          ],
          "description": "rate (certificate with a rate), zero (exemption), books (bookkeeping certificate only) or none",
          "default": "none"
         },
         "certificate_rate": {
          "type": "number",
          "minimum": 0,
          "maximum": 60,
          "description": "Rate on the certificate, percent (with certificate=rate)"
         },
         "one_time": {
          "type": "boolean",
          "description": "One-time payment",
          "default": false
         },
         "base": {
          "type": "string",
          "enum": [
           "total",
           "before_vat"
          ],
          "description": "total (withhold from the whole payment incl. VAT) or before_vat",
          "default": "total"
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "amount"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "amount": 11800,
          "vat_mode": "incl",
          "certificate": "books"
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/surtax": {
   "get": {
    "operationId": "describe_surtax",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for surtax",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_surtax",
    "tags": [
     "calculate"
    ],
    "summary": "Surtax (mas yesef), 2026",
    "description": "Surtax under section 121B: 3% of total taxable income above the annual threshold, plus 2% on capital-source income that by itself exceeds the threshold.\n\nSame formula as the free calculator https://nayeret.ai/tools/surtax/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "work_income": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000000,
          "description": "Annual taxable income from work / business",
          "default": 0
         },
         "capital_income": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000000,
          "description": "Annual taxable income from capital sources",
          "default": 0
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "work_income": 300000,
          "capital_income": 800000
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/child-allowance": {
   "get": {
    "operationId": "describe_child_allowance",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for child-allowance",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_child_allowance",
    "tags": [
     "calculate"
    ],
    "summary": "Child allowance and child savings (National Insurance)",
    "description": "Monthly child allowance by the order of each child under 18 (first, second to fourth, fifth and on), plus the National Insurance deposit to the child savings plan and the optional parent addition.\n\nSame formula as the free calculator https://nayeret.ai/tools/child-allowance/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "children_under_18": {
          "type": "integer",
          "minimum": 0,
          "maximum": 20,
          "description": "Number of children under 18 in the family"
         },
         "parent_adds_savings": {
          "type": "boolean",
          "description": "The parent chose to add the optional amount to the child savings (taken from the allowance)",
          "default": false
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "children_under_18"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "children_under_18": 3
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/birth-grant": {
   "get": {
    "operationId": "describe_birth_grant",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for birth-grant",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_birth_grant",
    "tags": [
     "calculate"
    ],
    "summary": "Birth grant (National Insurance)",
    "description": "One-time birth grant by the order of the birth in the family (first, second, third and on) or by the number of babies in a multiple birth.\n\nSame formula as the free calculator https://nayeret.ai/guides/birth-grant/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "previous_children": {
          "type": "integer",
          "minimum": 0,
          "maximum": 20,
          "description": "Children the mother had before this birth",
          "default": 0
         },
         "babies": {
          "type": "integer",
          "minimum": 1,
          "maximum": 8,
          "description": "Babies born in this birth",
          "default": 1
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "previous_children": 1,
          "babies": 1
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/minimum-wage": {
   "get": {
    "operationId": "describe_minimum_wage",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for minimum-wage",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_minimum_wage",
    "tags": [
     "calculate"
    ],
    "summary": "Minimum wage check",
    "description": "Compares a wage with the legal minimum for the job scope and age: monthly (full-time), hourly or daily, with the youth rates for under 18.\n\nSame formula as the free calculator https://nayeret.ai/tools/minimum-wage/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "pay_type": {
          "type": "string",
          "enum": [
           "monthly",
           "hourly",
           "daily"
          ],
          "description": "monthly, hourly or daily",
          "default": "monthly"
         },
         "wage": {
          "type": "number",
          "minimum": 0,
          "maximum": 1000000,
          "description": "The wage paid: monthly gross, per hour or per day"
         },
         "job_percent": {
          "type": "number",
          "minimum": 1,
          "maximum": 100,
          "description": "Job percent, for a monthly wage",
          "default": 100
         },
         "age": {
          "type": "integer",
          "minimum": 14,
          "maximum": 120,
          "description": "Age of the worker (youth rates under 18)",
          "default": 30
         },
         "week": {
          "type": "string",
          "enum": [
           "five_day_week",
           "six_day_week"
          ],
          "description": "Days per week, for a daily wage",
          "default": "five_day_week"
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "wage"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "pay_type": "monthly",
          "wage": 6000,
          "job_percent": 100,
          "age": 30
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/calculate/pension-deposits": {
   "get": {
    "operationId": "describe_pension_deposits",
    "tags": [
     "calculate"
    ],
    "summary": "Input schema and example for pension-deposits",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcDescription"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   },
   "post": {
    "operationId": "calc_pension_deposits",
    "tags": [
     "calculate"
    ],
    "summary": "Mandatory pension deposits",
    "description": "Monthly deposits under the general pension extension order: employee, employer and severance components as a percent of the wage, on a wage up to the average wage in the economy (higher deposits are allowed, not required).\n\nSame formula as the free calculator https://nayeret.ai/tools/net-salary/ (parity-tested).",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "monthly_wage": {
          "type": "number",
          "minimum": 0,
          "maximum": 10000000,
          "description": "Monthly gross wage (base wage)"
         },
         "months_employed": {
          "type": "integer",
          "minimum": 0,
          "maximum": 600,
          "description": "Months at this employer",
          "default": 12
         },
         "had_pension_before": {
          "type": "boolean",
          "description": "Had an active pension fund when starting the job",
          "default": false
         },
         "sex": {
          "type": "string",
          "enum": [
           "m",
           "f"
          ],
          "description": "m or f (the order applies from age 21 for men, 20 for women)",
          "default": "m"
         },
         "age": {
          "type": "integer",
          "minimum": 14,
          "maximum": 120,
          "description": "Age of the worker",
          "default": 30
         },
         "date": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "maxLength": 10,
          "description": "As-of date for the parameters. Default: today in Israel (YYYY-MM-DD)"
         }
        },
        "required": [
         "monthly_wage"
        ],
        "additionalProperties": false
       },
       "examples": {
        "example": {
         "value": {
          "monthly_wage": 12000,
          "months_employed": 12
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Outputs, breakdown, notes and every parameter used with its effective date and sources",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/CalcResult"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Invalid input (details.errors lists each field)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "413": {
      "description": "Body larger than 16 KB",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "415": {
      "description": "Content-Type must be application/json",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "The as-of date is outside the verified coverage of a parameter",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/deadlines": {
   "get": {
    "operationId": "getDeadlines",
    "tags": [
     "deadlines"
    ],
    "summary": "Business compliance calendar: every reporting and payment deadline for the next 12 months for a business profile",
    "description": "Same engine as the free tool /tools/business-calendar/. Published official dates where the Tax Authority / BTL published a table, else the statutory date (status \"statutory\"). format=ics returns an iCalendar file.",
    "parameters": [
     {
      "name": "profile",
      "in": "query",
      "required": false,
      "description": "Business type: patur (exempt dealer), murshe (licensed dealer), company",
      "schema": {
       "type": "string",
       "enum": [
        "patur",
        "murshe",
        "company"
       ],
       "default": "murshe"
      }
     },
     {
      "name": "vat_freq",
      "in": "query",
      "required": false,
      "description": "VAT reporting frequency: monthly (or 1) or bimonthly (or 2). Default bimonthly is an ASSUMPTION echoed in `assumptions`",
      "schema": {
       "type": "string",
       "enum": [
        "monthly",
        "bimonthly",
        "1",
        "2"
       ],
       "default": "bimonthly"
      }
     },
     {
      "name": "adv",
      "in": "query",
      "required": false,
      "description": "Income tax advances: monthly (1), bimonthly (2) or none",
      "schema": {
       "type": "string",
       "enum": [
        "monthly",
        "bimonthly",
        "none",
        "1",
        "2"
       ],
       "default": "monthly"
      }
     },
     {
      "name": "employees",
      "in": "query",
      "required": false,
      "description": "Number of employees",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "maximum": 9999,
       "default": 0
      }
     },
     {
      "name": "wh_freq",
      "in": "query",
      "required": false,
      "description": "Payroll withholding reports: monthly (1) or bimonthly (2); only with employees",
      "schema": {
       "type": "string",
       "enum": [
        "monthly",
        "bimonthly",
        "1",
        "2"
       ],
       "default": "monthly"
      }
     },
     {
      "name": "detailed",
      "in": "query",
      "required": false,
      "description": "Required to file detailed VAT reports",
      "schema": {
       "type": "boolean",
       "default": false
      }
     },
     {
      "name": "micro",
      "in": "query",
      "required": false,
      "description": "Osek patur registered as a micro business",
      "schema": {
       "type": "boolean",
       "default": false
      }
     },
     {
      "name": "btl",
      "in": "query",
      "required": false,
      "description": "Pays self-employed NI advances (not for company)",
      "schema": {
       "type": "boolean",
       "default": true
      }
     },
     {
      "name": "w856",
      "in": "query",
      "required": false,
      "description": "Files form 856 (withholding from suppliers)",
      "schema": {
       "type": "boolean",
       "default": false
      }
     },
     {
      "name": "online",
      "in": "query",
      "required": false,
      "description": "Reports online (later online due dates)",
      "schema": {
       "type": "boolean",
       "default": true
      }
     },
     {
      "name": "start",
      "in": "query",
      "required": false,
      "description": "Business start date (no deadlines before it)",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "examples": [
        "2026-07-01"
       ]
      }
     },
     {
      "name": "from",
      "in": "query",
      "required": false,
      "description": "First day of the 12-month window (default today)",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "examples": [
        "2026-07-01"
       ]
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "description": "json or ics",
      "schema": {
       "type": "string",
       "enum": [
        "json",
        "ics"
       ],
       "default": "json"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Deadlines (JSON) or an iCalendar file (format=ics)",
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "from": {
           "type": "string"
          },
          "to": {
           "type": "string"
          },
          "profile": {
           "type": "object"
          },
          "assumptions": {
           "type": "object",
           "description": "Inputs that were not given and were assumed (value, meaning, why)"
          },
          "assumptions_note": {
           "type": "string"
          },
          "count": {
           "type": "integer"
          },
          "items": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Deadline"
           }
          },
          "tbc": {
           "type": "array",
           "items": {
            "type": "object"
           }
          },
          "statuses": {
           "type": "object"
          },
          "verified_on": {
           "type": "string"
          },
          "browser_tool": {
           "type": "string"
          },
          "disclaimer": {
           "type": "string"
          }
         }
        }
       },
       "text/calendar": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "400": {
      "description": "Bad query (unknown parameter, bad value, impossible date)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "422": {
      "description": "from outside 2024-2030",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/forms": {
   "get": {
    "operationId": "listRuleForms",
    "tags": [
     "forms"
    ],
    "summary": "Forms registry: current edition and official links",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/forms/{id}": {
   "get": {
    "operationId": "getRuleForm",
    "tags": [
     "forms"
    ],
    "summary": "One form: metadata, current edition, official PDF/page, field map where we have one (101)",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[a-z0-9-]+$",
       "maxLength": 60
      },
      "examples": {
       "f101": {
        "value": "101"
       }
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Form"
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "404": {
      "description": "Unknown form",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/changes": {
   "get": {
    "operationId": "listChanges",
    "tags": [
     "changes"
    ],
    "summary": "Change feed: every parameter, form and deadline change with effective date, detected date and source",
    "parameters": [
     {
      "name": "since",
      "in": "query",
      "required": false,
      "description": "Only changes detected on or after this date",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "examples": [
        "2026-07-01"
       ]
      }
     },
     {
      "name": "effective_from",
      "in": "query",
      "required": false,
      "description": "Only changes effective on or after this date",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "examples": [
        "2026-07-01"
       ]
      }
     },
     {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "parameter, form or deadline",
      "schema": {
       "type": "string",
       "enum": [
        "parameter",
        "form",
        "deadline"
       ]
      }
     },
     {
      "name": "target",
      "in": "query",
      "required": false,
      "description": "Only targets starting with this (e.g. \"btl.\" or \"101\")",
      "schema": {
       "type": "string",
       "maxLength": 120
      }
     },
     {
      "name": "effective_to",
      "in": "query",
      "required": false,
      "description": "Only changes effective on or before this date",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "examples": [
        "2026-07-01"
       ]
      }
     },
     {
      "name": "include_backfill",
      "in": "query",
      "required": false,
      "description": "Include the back-filled history (default true)",
      "schema": {
       "type": "boolean",
       "default": true
      }
     },
     {
      "name": "include_notices",
      "in": "query",
      "required": false,
      "description": "Include notices that a verified period ends (kind=notice; default true, always sorted after real changes of the same day)",
      "schema": {
       "type": "boolean",
       "default": true
      }
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "description": "Max entries (default 100 here, 20 in the MCP tool)",
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 500,
       "default": 100
      }
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "description": "Skip entries (pagination; see next_offset)",
      "schema": {
       "type": "integer",
       "minimum": 0,
       "default": 0
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "description": "json (default), atom (application/atom+xml), rss (application/rss+xml) or jsonfeed (application/feed+json)",
      "schema": {
       "type": "string",
       "enum": [
        "json",
        "atom",
        "rss",
        "jsonfeed"
       ],
       "default": "json"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "required": [
          "total",
          "count",
          "offset",
          "entries"
         ],
         "properties": {
          "total": {
           "type": "integer"
          },
          "count": {
           "type": "integer"
          },
          "offset": {
           "type": "integer"
          },
          "limit": {
           "type": "integer"
          },
          "next_offset": {
           "type": [
            "integer",
            "null"
           ]
          },
          "updated": {
           "type": "string"
          },
          "entries": {
           "type": "array",
           "items": {
            "$ref": "#/components/schemas/Change"
           }
          },
          "feeds": {
           "type": "object"
          },
          "note": {
           "type": "string"
          }
         }
        }
       }
      },
      "headers": {
       "RateLimit-Limit": {
        "description": "Requests allowed per window for this caller",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Remaining": {
        "description": "Requests left in the window",
        "schema": {
         "type": "integer"
        }
       },
       "RateLimit-Reset": {
        "description": "Seconds until the window resets",
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "400": {
      "description": "Bad query",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/changes.atom": {
   "get": {
    "operationId": "changesAtom",
    "tags": [
     "changes"
    ],
    "summary": "Change feed as Atom",
    "responses": {
     "200": {
      "description": "Atom feed",
      "content": {
       "application/atom+xml": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "400": {
      "description": "Bad query",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/changes.rss": {
   "get": {
    "operationId": "changesRss",
    "tags": [
     "changes"
    ],
    "summary": "Change feed as RSS 2.0",
    "responses": {
     "200": {
      "description": "RSS feed",
      "content": {
       "application/rss+xml": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "400": {
      "description": "Bad query",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/changes.json": {
   "get": {
    "operationId": "changesJsonFeed",
    "tags": [
     "changes"
    ],
    "summary": "Change feed as JSON Feed 1.1",
    "responses": {
     "200": {
      "description": "JSON Feed",
      "content": {
       "application/feed+json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "400": {
      "description": "Bad query",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/rules/openapi.json": {
   "get": {
    "operationId": "openapi",
    "summary": "This document",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Invalid API key (anonymous calls need no key)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     },
     "429": {
      "description": "Rate limit exceeded; see Retry-After",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        }
       }
      }
     },
     "500": {
      "description": "Unexpected error (nothing about the request is stored)",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "securitySchemes": {
   "apiKey": {
    "type": "apiKey",
    "in": "header",
    "name": "x-api-key",
    "description": "Optional. Anonymous calls work with a lower rate limit. Keyed tier: higher limits, pilot only (no pricing yet)."
   }
  },
  "schemas": {
   "Error": {
    "type": "object",
    "required": [
     "error"
    ],
    "properties": {
     "error": {
      "type": "object",
      "required": [
       "code",
       "message"
      ],
      "properties": {
       "code": {
        "type": "string",
        "examples": [
         "invalid_input",
         "not_found",
         "date_out_of_coverage",
         "rate_limited"
        ]
       },
       "message": {
        "type": "string"
       },
       "details": {
        "type": "object"
       },
       "docs": {
        "type": "string"
       }
      }
     }
    }
   },
   "Source": {
    "type": "string",
    "format": "uri"
   },
   "UsedParameter": {
    "type": "object",
    "required": [
     "id",
     "effective",
     "value",
     "sources"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "effective": {
      "type": "string"
     },
     "value": {},
     "unit": {
      "type": "string"
     },
     "sources": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Source"
      }
     },
     "verified_on": {
      "type": "string"
     },
     "provisional": {
      "type": "boolean"
     },
     "url": {
      "type": "string"
     }
    }
   },
   "CalcResult": {
    "type": "object",
    "required": [
     "calc",
     "as_of",
     "inputs",
     "outputs",
     "parameters",
     "disclaimer"
    ],
    "properties": {
     "calc": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "as_of": {
      "type": "string"
     },
     "inputs": {
      "type": "object"
     },
     "outputs": {
      "type": "object"
     },
     "breakdown": {
      "type": "object"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "parameters": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/UsedParameter"
      }
     },
     "dataset": {
      "type": "object"
     },
     "browser_tool": {
      "type": "string"
     },
     "disclaimer": {
      "type": "string"
     }
    }
   },
   "CalcDescription": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "summary": {
      "type": "string"
     },
     "method": {
      "type": "string"
     },
     "url": {
      "type": "string"
     },
     "input_schema": {
      "type": "object"
     },
     "example": {
      "type": "object"
     },
     "browser_tool": {
      "type": "string"
     }
    }
   },
   "ParameterSummary": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "description": {
      "type": "object",
      "properties": {
       "en": {
        "type": "string"
       },
       "he": {
        "type": "string"
       }
      }
     },
     "unit": {
      "type": "string"
     },
     "kind": {
      "type": "string"
     },
     "effective": {
      "type": [
       "string",
       "null"
      ]
     },
     "value": {},
     "status": {
      "type": "string"
     },
     "url": {
      "type": "string"
     }
    }
   },
   "ParameterAt": {
    "type": "object",
    "required": [
     "id",
     "value",
     "history"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "description": {
      "type": "object"
     },
     "unit": {
      "type": "string"
     },
     "kind": {
      "type": "string",
      "enum": [
       "scalar",
       "scale",
       "object",
       "table",
       "list"
      ]
     },
     "date": {
      "type": "string"
     },
     "value": {},
     "effective": {
      "type": [
       "string",
       "null"
      ]
     },
     "in_coverage": {
      "type": "boolean"
     },
     "status": {
      "type": "string",
      "enum": [
       "verified",
       "provisional",
       "ended"
      ]
     },
     "verified_until": {
      "type": "string"
     },
     "sources": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Source"
      }
     },
     "history": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "effective": {
         "type": "string"
        },
        "value": {},
        "sources": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Source"
         }
        },
        "provisional": {
         "type": "boolean"
        }
       }
      }
     },
     "metadata": {
      "type": "object"
     }
    }
   },
   "Change": {
    "type": "object",
    "required": [
     "id",
     "type",
     "target",
     "change",
     "detected_on",
     "sources"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "type": {
      "type": "string",
      "enum": [
       "parameter",
       "form",
       "deadline"
      ]
     },
     "target": {
      "type": "string"
     },
     "change": {
      "type": "string"
     },
     "effective": {
      "type": [
       "string",
       "null"
      ]
     },
     "detected_on": {
      "type": "string"
     },
     "previous": {},
     "value": {},
     "unit": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "description": {
      "type": "object"
     },
     "sources": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Source"
      }
     },
     "backfill": {
      "type": "boolean"
     },
     "detected_basis": {
      "type": "string",
      "enum": [
       "effective_date",
       "verified_on"
      ],
      "description": "Backfill only: what detected_on is based on"
     },
     "kind": {
      "type": "string",
      "enum": [
       "change",
       "notice"
      ]
     },
     "url": {
      "type": "string"
     }
    }
   },
   "Form": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "number": {
      "type": [
       "string",
       "null"
      ]
     },
     "title": {
      "type": "string"
     },
     "issuer": {
      "type": "string"
     },
     "version": {
      "type": [
       "object",
       "null"
      ]
     },
     "official": {
      "type": "object"
     },
     "field_map": {
      "type": [
       "object",
       "null"
      ]
     },
     "verified_on": {
      "type": [
       "string",
       "null"
      ]
     },
     "sources": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   },
   "Deadline": {
    "type": "object",
    "required": [
     "date",
     "id",
     "title",
     "status"
    ],
    "properties": {
     "date": {
      "type": "string"
     },
     "id": {
      "type": "string",
      "description": "Obligation id (e.g. vat-periodic)"
     },
     "title": {
      "type": "string",
      "description": "Hebrew title"
     },
     "title_en": {
      "type": [
       "string",
       "null"
      ]
     },
     "sub": {
      "type": "string"
     },
     "sub_en": {
      "type": "string"
     },
     "status": {
      "type": "string",
      "enum": [
       "official",
       "statutory",
       "reminder",
       "user"
      ]
     },
     "group": {
      "type": "string"
     },
     "who": {
      "type": "string"
     },
     "online": {
      "type": [
       "string",
       "null"
      ],
      "description": "Later due date when reporting online, if any"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "how": {
      "type": [
       "object",
       "null"
      ]
     },
     "source": {
      "type": [
       "string",
       "null"
      ]
     },
     "penalty": {
      "type": [
       "string",
       "null"
      ]
     }
    }
   }
  }
 }
}