{
  "openapi": "3.0.1",
  "info": {
    "title": "Accounting API",
    "description": "Accounting integration service",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://accounting.api.test.snokam.no"
    }
  ],
  "paths": {
    "/v1.0/employees": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Creates a PowerOffice employee (ansatt)",
        "description": "Creates an employee record in PowerOffice with national id, name, email, address and optional bank account (kontonummer). Used to provision the payroll employee during onboarding. Does NOT create a PowerOffice login user or an a-melding employment.",
        "operationId": "CreateEmployee",
        "requestBody": {
          "description": "The employee to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/createEmployeeSpec"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The created PowerOffice employee.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/accountingUser"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Missing required employee fields.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "x-ms-summary": "Bad Request"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/hours/last-month/me": {
      "get": {
        "tags": [
          "Hours"
        ],
        "summary": "Gets my hours for last month",
        "description": "Retrieves the hours logged by the current user for the last month.",
        "operationId": "GetMyHoursLastMonth",
        "responses": {
          "200": {
            "description": "Hours retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/timeTransactionRecord"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/hours/summary/last-month/me": {
      "get": {
        "tags": [
          "Hours"
        ],
        "summary": "Gets my hours by activity for last month",
        "description": "Retrieves the hours logged by the current user by activity for the last month.",
        "operationId": "GetMyHoursByActivityLastMonth",
        "responses": {
          "200": {
            "description": "Hours by activity retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/timeTransactionSummary"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/hours/summary": {
      "get": {
        "tags": [
          "Hours"
        ],
        "summary": "Gets my hours by activity",
        "description": "Retrieves the hours logged by the current user by activity.",
        "operationId": "GetHoursByActivity",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date from"
          },
          {
            "name": "to",
            "in": "query",
            "description": "",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date to"
          }
        ],
        "responses": {
          "200": {
            "description": "Hours by activity retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeTimeTransactionSummary"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/hours/summary/last-month": {
      "get": {
        "tags": [
          "Hours"
        ],
        "summary": "Gets hours by activity for last month",
        "description": "Retrieves the hours logged by all users by activity for the last month.",
        "operationId": "GetHoursByActivityLastMonth",
        "responses": {
          "200": {
            "description": "Hours by activity retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeTimeTransactionSummary"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/hours/last-month": {
      "get": {
        "tags": [
          "Hours"
        ],
        "summary": "Gets hours for last month",
        "description": "Retrieves the hours logged by all users for the last month.",
        "operationId": "GetHoursLastMonth",
        "responses": {
          "200": {
            "description": "Hours retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeHoursLastMonth"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/hours/current-month/locked/users": {
      "get": {
        "tags": [
          "Hours"
        ],
        "summary": "Gets users with locked timesheets for current month",
        "description": "Retrieves a list of users with locked timesheets for the current month.",
        "operationId": "GetUsersWithLockedTimesheetsCurrentMonth",
        "parameters": [
          {
            "name": "monthOffset",
            "in": "query",
            "description": "The month offset to apply when retrieving locked timesheets.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "x-ms-summary": "Month offset"
          }
        ],
        "responses": {
          "200": {
            "description": "Users with locked timesheets retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Invalid month offset value",
            "x-ms-summary": "Bad Request"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/hours/current-year/statistics": {
      "get": {
        "tags": [
          "Hours"
        ],
        "summary": "Gets hours by activity statistics for current year",
        "description": "Retrieves the hours logged by activity statistics for the current year.",
        "operationId": "GetHoursByActivityStatisticsCurrentYear",
        "responses": {
          "200": {
            "description": "Hours by activity statistics retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "number",
                    "format": "double"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/leave/quotas/me": {
      "get": {
        "tags": [
          "Leave"
        ],
        "summary": "Gets my leave quotas",
        "description": "Retrieves how much of each leave quota the current user has used.",
        "operationId": "GetMyLeaveQuotas",
        "responses": {
          "200": {
            "description": "Leave quotas retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/leaveQuotaStatus"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/leave/quotas": {
      "get": {
        "tags": [
          "Leave"
        ],
        "summary": "Gets leave quotas for all employees",
        "description": "Retrieves how much of each leave quota every employee has used.",
        "operationId": "GetLeaveQuotas",
        "responses": {
          "200": {
            "description": "Leave quotas retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeLeaveQuotas"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/projects/me": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Gets my projects",
        "description": "Retrieves my projects.",
        "operationId": "GetMyProjects",
        "responses": {
          "200": {
            "description": "My projects retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/employeeProjects"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/projects/all": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Gets all projects",
        "description": "Retrieves all projects.",
        "operationId": "GetAllProjects",
        "responses": {
          "200": {
            "description": "My projects retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeProjects"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/projects/average-hourly-rate": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Gets average hourly rate",
        "description": "Average hourly rate across active projects. Cached in blob storage, auto-refreshed hourly. Returns null if none found.",
        "operationId": "GetAverageHourlyRate",
        "responses": {
          "200": {
            "description": "Payload of Nullable containing Int32",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "nullable": true
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/salary/last-month/me": {
      "get": {
        "tags": [
          "Salary"
        ],
        "summary": "Gets my salary for last month",
        "description": "Retrieves the salary of the current user for the last month.",
        "operationId": "GetMySalaryLastMonth",
        "responses": {
          "200": {
            "description": "Salary retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/detailedSalaryWithSalaryLines"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/salary/this-month/me": {
      "get": {
        "tags": [
          "Salary"
        ],
        "summary": "Gets my salary for this month",
        "description": "Retrieves the salary of the current user this month.",
        "operationId": "GetMySalaryThisMonth",
        "responses": {
          "200": {
            "description": "Salary retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/detailedSalaryWithSalaryLines"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/salary/last-month": {
      "get": {
        "tags": [
          "Salary"
        ],
        "summary": "Gets salaries for last month",
        "description": "Retrieves the salaries of all users for the last month.",
        "operationId": "GetSalariesLastMonth",
        "responses": {
          "200": {
            "description": "Salaries retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeDetailedSalary"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/salary/this-month": {
      "get": {
        "tags": [
          "Salary"
        ],
        "summary": "Gets salaries for last month",
        "description": "Retrieves the salaries of all users this month.",
        "operationId": "GetSalariesThisMonth",
        "responses": {
          "200": {
            "description": "Salaries retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeDetailedSalary"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/salary/estimate/me": {
      "get": {
        "tags": [
          "Salary"
        ],
        "summary": "Estimates my salary",
        "description": "Estimates the salary of the current user based on logged hours.",
        "operationId": "EstimateMySalary",
        "responses": {
          "200": {
            "description": "Salary estimated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/estimatedSalary"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/salary/estimate": {
      "get": {
        "tags": [
          "Salary"
        ],
        "summary": "Estimates salaries",
        "description": "Estimates the salaries of all users based on logged hours.",
        "operationId": "EstimateSalaries",
        "responses": {
          "200": {
            "description": "Salaries estimated",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeEstimatedSalary"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/salary-lines": {
      "get": {
        "tags": [
          "Salary"
        ],
        "summary": "Gets salary lines",
        "description": "Retrieves the salary lines for all users.",
        "operationId": "GetSalaryLines",
        "responses": {
          "200": {
            "description": "Salary lines retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/accountingSalaryLine"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/pay-items": {
      "get": {
        "tags": [
          "Pay Items"
        ],
        "summary": "Gets pay items",
        "description": "Retrieves the pay items for all users.",
        "operationId": "GetPayItems",
        "responses": {
          "200": {
            "description": "Pay items retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/accountingPayItem"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/import/salary/last-month": {
      "post": {
        "tags": [
          "Salary"
        ],
        "summary": "Imports salary for last month",
        "description": "Imports the salary for the last month for specified employees.",
        "operationId": "ImportSalaryLastMonth",
        "parameters": [
          {
            "name": "includeCryptoVouchers",
            "in": "query",
            "description": "Decide if we want to include and import crypto vouchers",
            "schema": {
              "type": "boolean"
            },
            "x-ms-summary": "Include crypto vouchers"
          }
        ],
        "requestBody": {
          "description": "List of employee IDs to filter",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Salary imported successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeImport"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          },
          "409": {
            "description": "Conflict occurred while importing salary",
            "x-ms-summary": "Conflict"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/users": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets a list of users",
        "description": "Retrieves a list of users.",
        "operationId": "GetUsers",
        "responses": {
          "200": {
            "description": "Get power office users",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/accountingUser"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/vouchers/me": {
      "get": {
        "tags": [
          "Vouchers"
        ],
        "summary": "Gets my vouchers",
        "description": "Retrieves the vouchers of the current user for the current year.",
        "operationId": "GetMyVouchers",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date from"
          },
          {
            "name": "to",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date to"
          }
        ],
        "responses": {
          "200": {
            "description": "Vouchers retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/gadgetVoucher"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/vouchers": {
      "get": {
        "tags": [
          "Vouchers"
        ],
        "summary": "Gets all vouchers",
        "description": "Retrieves the vouchers of all users for the current year.",
        "operationId": "GetAllVouchers",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date from"
          },
          {
            "name": "to",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date to"
          }
        ],
        "responses": {
          "200": {
            "description": "Vouchers retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeVouchers"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/vouchers/transactions": {
      "get": {
        "tags": [
          "Vouchers"
        ],
        "summary": "Gets all account transactions",
        "description": "Retrieves the account transactions between the specified dates.",
        "operationId": "GetAllAccountTransactions",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date from"
          },
          {
            "name": "to",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date to"
          },
          {
            "name": "includeBeginningBalance",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean"
            },
            "x-ms-summary": "Date to"
          }
        ],
        "responses": {
          "200": {
            "description": "Account transactions retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/accountTransactionDto"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/account": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetBtcAccount",
        "responses": {
          "200": {
            "description": "The BTC account details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/cryptoAccount"
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/account/eur": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetEurAccount",
        "responses": {
          "200": {
            "description": "The EUR account details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/cryptoAccount"
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/summaries": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetCryptoSummaries",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "From datetime",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "To datetime",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of transaction summaries",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeTransactionSummary"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/summary": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetCryptoSummary",
        "parameters": [
          {
            "name": "userEmail",
            "in": "query",
            "description": "Email of the user",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "From datetime",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "To datetime",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Transaction summary for the specified user",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/transactionSummary"
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/summary/me": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetMyCryptoSummary",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "From datetime",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "To datetime",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Transaction summary for the authenticated user",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/transactionSummary"
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/crypto/transactions": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetCryptoTransactions",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "From datetime",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "To datetime",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of transactions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/transaction"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/transactions/{id}": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetCryptoTransaction",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of the transaction",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Details of a specific transaction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response_transaction"
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/statistics": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetCryptoStatistics",
        "responses": {
          "200": {
            "description": "Crypto statistics",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/response_statistics"
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/employees": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetEmployeesWithInnovativeSalary",
        "responses": {
          "200": {
            "description": "List of employees with innovative salary",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/sanityEmployee"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/salary/daily/me": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetMyDailyCryptoSalary",
        "responses": {
          "200": {
            "description": "Get my daily salary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/todaysSalarySummary"
                }
              }
            }
          },
          "204": {
            "description": "No registered hours"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/crypto/salaries/daily": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetDailyCryptoSalaries",
        "responses": {
          "200": {
            "description": "Get daily salaries",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/todaysSalarySummary"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/salaries/daily/pay": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "PayDailyCryptoSalaries",
        "responses": {
          "200": {
            "description": "Pay daily salaries with CoinBase",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/response_transaction"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/user": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetCryptoUser",
        "responses": {
          "200": {
            "description": "Details of the authenticated user",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/cryptoUser"
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/btc-nok": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "GetBtcToNokSpotPrice",
        "responses": {
          "200": {
            "description": "Current BTC to NOK spot price",
            "content": {
              "application/json": {
                "schema": {
                  "type": "number",
                  "format": "double"
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/sync": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "SyncCryptoTransactions",
        "responses": {
          "200": {
            "description": "Sync Coinbase transactions to Cosmos DB",
            "content": {
              "application/json": {
                "schema": {
                  "type": "number",
                  "format": "double"
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/crypto/validation": {
      "get": {
        "tags": [
          "Crypto"
        ],
        "operationId": "ValidateCryptoDatabase",
        "responses": {
          "200": {
            "description": "Check that transaction counts match between Coinbase and Cosmos DB",
            "content": {
              "application/json": {
                "schema": {
                  "type": "number",
                  "format": "double"
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/forecast": {
      "post": {
        "tags": [
          "Forecast"
        ],
        "summary": "Forecasts revenue and costs for a year",
        "description": "Forecasts monthly revenue, salary costs and other costs for the given year, using realised project rates, the working-hours calendar including the 25-day vacation allowance, and planned parental leave net of the NAV refund.",
        "operationId": "Forecast",
        "requestBody": {
          "description": "The year to forecast and the assumptions to use: the yearly rate inflation and the per-account cost classification. The configuration is kept client-side for now, so every request carries it.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/forecastParameters"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Forecast generated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/forecastResult"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/forecast/scenarios": {
      "get": {
        "tags": [
          "Forecast"
        ],
        "summary": "Lists the saved forecast scenarios for a year",
        "operationId": "ListForecastScenarios",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of Array of ForecastScenario",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/forecastScenario"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "post": {
        "tags": [
          "Forecast"
        ],
        "summary": "Saves a new forecast scenario",
        "operationId": "CreateForecastScenario",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/forecastScenarioInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Payload of ForecastScenario",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/forecastScenario"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/protected/forecast/scenarios/{id}": {
      "put": {
        "tags": [
          "Forecast"
        ],
        "summary": "Replaces a saved forecast scenario",
        "operationId": "UpdateForecastScenario",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/forecastScenarioInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Payload of ForecastScenario",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/forecastScenario"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "404": {
            "description": "No description",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Forecast"
        ],
        "summary": "Deletes a saved forecast scenario",
        "operationId": "DeleteForecastScenario",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No description",
            "x-ms-summary": "Deleted"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/vouchers/gadgets": {
      "get": {
        "tags": [
          "Vouchers"
        ],
        "summary": "Gets all gadget vouchers",
        "description": "Retrieves the gadget vouchers of all users for the current year.",
        "operationId": "GetAllGadgetsVouchers",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date from"
          },
          {
            "name": "to",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date to"
          }
        ],
        "responses": {
          "200": {
            "description": "Vouchers retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeVouchers"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/vouchers/gadgets/me": {
      "get": {
        "tags": [
          "Vouchers"
        ],
        "summary": "Gets my gadget vouchers",
        "description": "Retrieves the gadget vouchers of the current user for the current year.",
        "operationId": "GetMyGadgetBudgetVouchers",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date from"
          },
          {
            "name": "to",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "Date to"
          }
        ],
        "responses": {
          "200": {
            "description": "Vouchers retrieved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/gadgetVoucher"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/protected/health/{provider}": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Checks an integration's connectivity",
        "operationId": "AccountingIntegrationHealth",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Health result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/integrationHealthResult"
                }
              }
            }
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/kickback/review": {
      "get": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "Kickback invoices awaiting review",
        "description": "Forwarded subcontractor invoices from the provisjon inbox, AI-extracted and matched to a subproject, with the suggested provision.",
        "operationId": "GetKickbackReview",
        "responses": {
          "200": {
            "description": "Payload of Array of KickbackReviewItem",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/kickbackReviewItem"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/kickback/sync": {
      "post": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "Archive provisjon-inbox invoices",
        "description": "Reads every invoice in the provisjon inbox (incl. already-processed), extracts each once, and archives the PDF and its amounts so the kickback reconciliation shows the real incoming customer invoice. Returns the number of newly archived invoices.",
        "operationId": "SyncKickbackArchive",
        "responses": {
          "200": {
            "description": "Payload of Int32",
            "content": {
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/kickback/{projectCode}/reconciliation": {
      "get": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "A kickback project's incoming invoices vs provision",
        "description": "Archived provisjon invoices for the project: the incoming customer invoice (base) and the provision, with whether the provision invoice has been created.",
        "operationId": "GetKickbackReconciliation",
        "parameters": [
          {
            "name": "projectCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of Array of KickbackReconciliationRow",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/kickbackReconciliationRow"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/kickback/pdf/{hash}": {
      "get": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "Archived provisjon invoice PDF",
        "description": "The archived incoming customer-invoice PDF for a kickback row, base64-encoded.",
        "operationId": "GetKickbackArchivePdf",
        "parameters": [
          {
            "name": "hash",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of VoucherDocument",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/voucherDocument"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/kickback/archive/{hash}/generate": {
      "post": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "Create the provision draft from an archived kickback invoice",
        "operationId": "GenerateKickbackFromArchive",
        "parameters": [
          {
            "name": "hash",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of KickbackDraftResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/kickbackDraftResult"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/kickback/{messageId}/generate": {
      "post": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "Create the provision draft invoice for a forwarded kickback invoice",
        "operationId": "GenerateKickbackDraft",
        "parameters": [
          {
            "name": "messageId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of KickbackDraftResult",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/kickbackDraftResult"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/calculators/salary": {
      "get": {
        "tags": [
          "Calculators"
        ],
        "summary": "Calculates salary",
        "description": "Calculates salary based on time transaction summaries.",
        "operationId": "CalculateSalary",
        "parameters": [
          {
            "name": "Daily",
            "in": "query",
            "description": "Whether the salary is daily",
            "schema": {
              "type": "boolean"
            },
            "x-ms-summary": "Whether the salary is daily"
          }
        ],
        "requestBody": {
          "description": "List of time transaction summaries",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/timeTransactionSummary"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Salary calculated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/salarySummary"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/calculators/salaries": {
      "get": {
        "tags": [
          "Calculators"
        ],
        "summary": "Calculates multiple salaries",
        "description": "Calculates salaries for multiple employees based on time transaction summaries.",
        "operationId": "CalculateSalaries",
        "parameters": [
          {
            "name": "Daily",
            "in": "query",
            "description": "Whether the salary is daily",
            "schema": {
              "type": "boolean"
            },
            "x-ms-summary": "Whether the salary is daily"
          }
        ],
        "requestBody": {
          "description": "List of time transaction employee summaries",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/employeeTimeTransactionSummary"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Salaries calculated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/employeeSalary"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/calculators/salary/provision": {
      "get": {
        "tags": [
          "Calculators"
        ],
        "summary": "Calculates provision salary",
        "description": "Calculates provision salary based on provided parameters.",
        "operationId": "CalculateProvisionSalary",
        "parameters": [
          {
            "name": "Monthly",
            "in": "query",
            "description": "Whether the salary is monthly",
            "required": true,
            "schema": {
              "type": "boolean"
            },
            "x-ms-summary": "Whether the salary is monthly"
          },
          {
            "name": "BillableHours",
            "in": "query",
            "description": "Number of billable hours",
            "required": true,
            "schema": {
              "type": "number",
              "format": "float"
            },
            "x-ms-summary": "Number of billable hours"
          },
          {
            "name": "HourlyRate",
            "in": "query",
            "description": "Hourly rate",
            "required": true,
            "schema": {
              "type": "number",
              "format": "float"
            },
            "x-ms-summary": "Hourly rate"
          },
          {
            "name": "Commission",
            "in": "query",
            "description": "Commission rate",
            "required": true,
            "schema": {
              "type": "number",
              "format": "float"
            },
            "x-ms-summary": "Commission rate"
          }
        ],
        "responses": {
          "200": {
            "description": "Provision salary calculated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/provisionSalaryResult"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Invalid input parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/validationFailure"
                  }
                }
              }
            },
            "x-ms-summary": "Bad Request"
          }
        }
      }
    },
    "/v1.0/calculators/salaries/estimate": {
      "post": {
        "tags": [
          "Calculators"
        ],
        "summary": "Estimates multiple salaries",
        "description": "Estimates salaries for multiple employees based on provided data.",
        "operationId": "EstimateSalariesCalculator",
        "requestBody": {
          "description": "List of salary estimates",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/salaryEstimateInput"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Salaries estimated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/salaryEstimateWithEmployee"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/calculators/salary/estimate": {
      "get": {
        "tags": [
          "Calculators"
        ],
        "summary": "Estimates salary",
        "description": "Estimates salary based on provided parameters.",
        "operationId": "EstimateSalaryCalculator",
        "parameters": [
          {
            "name": "Monthly",
            "in": "query",
            "description": "Whether the salary is monthly",
            "schema": {
              "type": "boolean"
            },
            "x-ms-summary": "Whether the salary is monthly"
          },
          {
            "name": "BillableHours",
            "in": "query",
            "description": "Number of billable hours",
            "required": true,
            "schema": {
              "type": "number",
              "format": "float"
            },
            "x-ms-summary": "Number of billable hours"
          },
          {
            "name": "HourlyRate",
            "in": "query",
            "description": "Hourly rate",
            "required": true,
            "schema": {
              "type": "number",
              "format": "float"
            },
            "x-ms-summary": "Hourly rate"
          }
        ],
        "responses": {
          "200": {
            "description": "Salary estimated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/salaryEstimate"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Invalid input parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/validationFailure"
                  }
                }
              }
            },
            "x-ms-summary": "Bad Request"
          }
        }
      }
    },
    "/v1.0/stock/shareholders": {
      "get": {
        "tags": [
          "Stock"
        ],
        "summary": "Get all shareholders",
        "description": "Returns a list of all shareholders including their details and employee links.",
        "operationId": "GetShareholders",
        "responses": {
          "200": {
            "description": "List of shareholders retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/shareholder"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/stock/transactions": {
      "get": {
        "tags": [
          "Stock"
        ],
        "summary": "Get all stock transactions",
        "description": "Returns a list of all stock transactions ordered by date.",
        "operationId": "GetStockTransactions",
        "responses": {
          "200": {
            "description": "List of transactions retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/stockTransaction"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/stock/ownership": {
      "get": {
        "tags": [
          "Stock"
        ],
        "summary": "Get current ownership distribution",
        "description": "Returns the current ownership distribution calculated from all transactions.",
        "operationId": "GetCurrentOwnership",
        "responses": {
          "200": {
            "description": "Current ownership distribution retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/shareholderOwnership"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/stock/ownership/history": {
      "get": {
        "tags": [
          "Stock"
        ],
        "summary": "Get ownership history over time",
        "description": "Returns snapshots of ownership distribution at each transaction date.",
        "operationId": "GetOwnershipHistory",
        "responses": {
          "200": {
            "description": "Ownership history retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ownershipSnapshot"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/stock/overview": {
      "get": {
        "tags": [
          "Stock"
        ],
        "summary": "Get complete stock overview",
        "description": "Returns a complete overview including current ownership, recent transactions, and history.",
        "operationId": "GetStockOverview",
        "responses": {
          "200": {
            "description": "Stock overview retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/stockOverview"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/stock/me": {
      "get": {
        "tags": [
          "Stock"
        ],
        "summary": "Get my stock information",
        "description": "Returns the current user's stock information including ownership, transactions, and value.",
        "operationId": "GetMyStockInfo",
        "responses": {
          "200": {
            "description": "Employee stock info retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/employeeStockInfo"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No shareholding found for the current user",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/stock/me/ownership": {
      "get": {
        "tags": [
          "Stock"
        ],
        "summary": "Get my ownership percentage",
        "description": "Returns the current user's ownership percentage for use in valuation calculations.",
        "operationId": "GetMyOwnership",
        "responses": {
          "200": {
            "description": "Employee ownership retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/shareholderOwnership"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          },
          "404": {
            "description": "No shareholding found for the current user",
            "x-ms-summary": "Not Found"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/reinvoicing/subcontractor/draft": {
      "post": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "Creates a draft re-invoice from a subcontractor supplier invoice",
        "description": "Takes an incoming supplier invoice (bilag) in PowerOffice, marks up each line by the subcontractor cut, and creates a DRAFT outgoing invoice to the end customer. The draft is never sent — a human reviews and sends it.",
        "operationId": "CreateSubcontractorInvoiceDraft",
        "requestBody": {
          "description": "The PowerOffice supplier-invoice (bilag) id to re-invoice.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/subcontractorInvoiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Draft invoice created with computed lines.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/subcontractorInvoiceResult"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Invalid input, no approved project hours, or a project missing a rate/customer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "x-ms-summary": "Bad Request"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/run": {
      "post": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "Run the re-invoicing draft automation now",
        "description": "Runs both nightly sweeps for the last full month to date. Markup: finds new incoming supplier invoices (bilag) on markup projects and creates the DRAFT re-invoices. Kick-back: matches forwarded customer invoices and creates the DRAFT provision invoices. Both skip anything already drafted, and drafts are never sent.",
        "operationId": "RunReinvoicing",
        "responses": {
          "200": {
            "description": "New drafts created, split by subcontractor kind.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/subcontractorRunResult"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/subcontractor": {
      "get": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "Lists subcontractor projects",
        "description": "PowerOffice projects with an invoice markup (Fakturapåslag), with their end customer and markup.",
        "operationId": "GetSubcontractorProjects",
        "responses": {
          "200": {
            "description": "Payload of Array of SubcontractorProject",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/subcontractorProject"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/subcontractor/overview": {
      "get": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "Yearly fakturering per subcontractor project",
        "description": "For the given year: each subcontractor project with its incoming supplier invoice total, outgoing invoice total and margin.",
        "operationId": "GetSubcontractorOverview",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of Array of SubcontractorProjectSummary",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/subcontractorProjectSummary"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/subcontractor/income": {
      "get": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "Accumulated subcontractor re-invoicing income for a year",
        "description": "Per-month incoming, outgoing and margin across the year, with the running accumulated margin, for the year-to-date income graph.",
        "operationId": "GetSubcontractorAccumulatedIncome",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of Array of SubcontractorIncomePoint",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/subcontractorIncomePoint"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/project/{projectCode}/ledger": {
      "get": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "A project's monthly income and cost",
        "description": "Per-month booked income (revenue) and cost for the project, straight from the PowerOffice project ledger. Works for both påslag and kickback projects. Omit year for the project's full history.",
        "operationId": "GetProjectLedger",
        "parameters": [
          {
            "name": "projectCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of Array of SubcontractorIncomePoint",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/subcontractorIncomePoint"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/project/{projectCode}/incoming": {
      "get": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "A project's incoming supplier invoices",
        "description": "Incoming supplier invoices for the project. Omit year for the project's full history; pass a year to narrow to that year.",
        "operationId": "GetProjectSourceInvoices",
        "parameters": [
          {
            "name": "projectCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of Array of SubcontractorSourceInvoiceSummary",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/subcontractorSourceInvoiceSummary"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/project/{projectCode}/outgoing": {
      "get": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "A project's outgoing customer invoices",
        "description": "Outgoing customer invoices for the project. Omit year for the project's full history; pass a year to narrow to that year.",
        "operationId": "GetProjectOutgoingInvoices",
        "parameters": [
          {
            "name": "projectCode",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "nullable": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of Array of OutgoingInvoiceSummary",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/outgoingInvoiceSummary"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/reinvoicing/voucher/{voucherNo}/pdf": {
      "get": {
        "tags": [
          "Reinvoicing"
        ],
        "summary": "Voucher documentation (PDF) for an invoice",
        "description": "Base64-encoded documentation file attached to a voucher. Returns 404 when the voucher has no attached documentation.",
        "operationId": "GetReinvoicingVoucherPdf",
        "parameters": [
          {
            "name": "voucherNo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payload of VoucherDocument",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/voucherDocument"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/calculators/valuation": {
      "get": {
        "tags": [
          "Calculators"
        ],
        "summary": "Calculates ownership valuation",
        "description": "Calculates ownership valuation based on provided percentage.",
        "operationId": "CalculateOwnershipValuation",
        "parameters": [
          {
            "name": "Percent",
            "in": "query",
            "description": "Percentage of ownership",
            "required": true,
            "schema": {
              "type": "number",
              "format": "float"
            },
            "x-ms-summary": "Percentage of ownership"
          }
        ],
        "responses": {
          "200": {
            "description": "Ownership valuation calculated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/valuation"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "400": {
            "description": "Invalid input parameters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/validationFailure"
                  }
                }
              }
            },
            "x-ms-summary": "Bad Request"
          }
        }
      }
    },
    "/v1.0/valuation": {
      "get": {
        "tags": [
          "Valuation"
        ],
        "summary": "Gets ownership valuation",
        "description": "Gets ownership valuation.",
        "operationId": "OwnershipValuation",
        "responses": {
          "200": {
            "description": "Ownership valuation retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/valuation"
                  }
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1.0/valuation/me": {
      "get": {
        "tags": [
          "Valuation"
        ],
        "summary": "Gets my ownership valuation",
        "description": "Gets ownership valuation of the current user.",
        "operationId": "MyOwnershipValuation",
        "responses": {
          "200": {
            "description": "Ownership valuation retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/valuation"
                }
              }
            },
            "x-ms-summary": "Success"
          },
          "401": {
            "description": "Unauthorized access",
            "x-ms-summary": "Unauthorized"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          }
        ]
      }
    },
    "/v1.0/calculators/wagerates": {
      "get": {
        "tags": [
          "Calculators"
        ],
        "summary": "Gets wage rates",
        "description": "Retrieves wage rates for a specified date.",
        "operationId": "WageRates",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "description": "The date for which to retrieve wage rates",
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "x-ms-summary": "The date for which to retrieve wage rates"
          }
        ],
        "responses": {
          "200": {
            "description": "Wage rates retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/wageRate"
                }
              }
            },
            "x-ms-summary": "Success"
          }
        },
        "security": [
          {
            "Implicit": [
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default"
            ]
          },
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "accountBalance": {
        "type": "object",
        "properties": {
          "btc": {
            "type": "number",
            "format": "double"
          },
          "btcInNOK": {
            "type": "number",
            "format": "double"
          },
          "eur": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "accountingPayItem": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "accountingSalaryLine": {
        "type": "object",
        "properties": {
          "employeeCode": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "payItemCode": {
            "type": "string"
          },
          "comment": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "quantity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "departmentCode": {
            "type": "string"
          },
          "isLocked": {
            "type": "boolean"
          }
        }
      },
      "accountingUser": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "emailAddress": {
            "type": "string"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "departmentCode": {
            "type": "string"
          },
          "isArchived": {
            "type": "boolean",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "fullName": {
            "type": "string"
          }
        }
      },
      "accountTransactionDto": {
        "required": [
          "id",
          "amount",
          "accountCode"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "accountCode": {
            "type": "integer",
            "format": "int64"
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string"
          },
          "voucherNo": {
            "type": "integer",
            "format": "int64"
          },
          "voucherType": {
            "type": "string"
          }
        }
      },
      "actualMonth": {
        "type": "object",
        "properties": {
          "month": {
            "type": "integer",
            "format": "int32"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "salaryCost": {
            "type": "number",
            "format": "double"
          },
          "otherCost": {
            "type": "number",
            "format": "double"
          },
          "subcontractorCost": {
            "type": "number",
            "format": "double"
          },
          "subcontractorRevenue": {
            "type": "number",
            "format": "double"
          },
          "result": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "amount": {
        "type": "object",
        "properties": {
          "btc": {
            "type": "number",
            "format": "double"
          },
          "nok": {
            "type": "number",
            "format": "double"
          },
          "tax": {
            "$ref": "#/components/schemas/tax"
          }
        },
        "nullable": true
      },
      "basis": {
        "type": "object",
        "properties": {
          "salaryLines": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "timeTransactions": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "salary": {
            "type": "integer",
            "format": "int32"
          }
        },
        "nullable": true
      },
      "breakdownRow": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "Rate",
              "Hours",
              "Ratio",
              "Amount",
              "Deduction",
              "Subtotal",
              "Total",
              "Note"
            ],
            "type": "string",
            "default": "Rate"
          }
        }
      },
      "componentBlocksInnerOneOfChildrenInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "span"
            ],
            "type": "string",
            "default": "span"
          },
          "marks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sanityKey": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      },
      "componentBlocksInnerOneOfMarkDefsInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "link"
            ],
            "type": "string",
            "default": "link"
          },
          "href": {
            "type": "string"
          },
          "sanityKey": {
            "type": "string"
          }
        }
      },
      "consultantRevenueForecast": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "hourlyRate": {
            "type": "number",
            "format": "double"
          },
          "hasOwnRate": {
            "type": "boolean"
          },
          "billableHours": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "costConfig": {
        "type": "object",
        "properties": {
          "accountCode": {
            "type": "integer",
            "format": "int64"
          },
          "accountCodeTo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "label": {
            "type": "string"
          },
          "behaviour": {
            "enum": [
              "Fixed",
              "PerEmployee"
            ],
            "type": "string",
            "default": "Fixed"
          },
          "growth": {
            "type": "number",
            "format": "double"
          },
          "breadth": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "createEmployeeSpec": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "nationalId": {
            "type": "string"
          },
          "dateOfBirth": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "street": {
            "type": "string"
          },
          "zipCode": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "bankAccount": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "jobTitle": {
            "type": "string"
          },
          "departmentCode": {
            "type": "string"
          }
        }
      },
      "cryptoAccount": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "balance": {
            "$ref": "#/components/schemas/cryptoMoney"
          }
        }
      },
      "cryptoBuys": {
        "type": "object",
        "properties": {
          "sumBuysBTC": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalDepositNOK": {
            "type": "number",
            "format": "double"
          },
          "feesNOK": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        }
      },
      "cryptoMoney": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          }
        }
      },
      "cryptoSells": {
        "type": "object",
        "properties": {
          "sumSendsBTC": {
            "type": "number",
            "format": "double"
          },
          "sumSendsNOK": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "cryptoUser": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "detailedSalaryLine": {
        "type": "object",
        "properties": {
          "activityCode": {
            "type": "string"
          },
          "activityName": {
            "type": "string"
          },
          "hours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/project"
            }
          },
          "salary": {
            "type": "number",
            "format": "double"
          },
          "holidayPay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pension": {
            "$ref": "#/components/schemas/pension"
          },
          "employerTax": {
            "$ref": "#/components/schemas/employerTax"
          },
          "displayValue": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "breakdown": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/breakdownRow"
            }
          },
          "parentalLeaveStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "detailedSalaryWithSalaryLines": {
        "type": "object",
        "properties": {
          "salaryLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/detailedSalaryLine"
            }
          },
          "salary": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string"
          }
        }
      },
      "employeeDetailedSalary": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "salaryLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/detailedSalaryLine"
            }
          },
          "salary": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string"
          }
        }
      },
      "employeeEstimatedSalary": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "hours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hourlyRate": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "commission": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "activityCode": {
            "type": "string"
          },
          "activityName": {
            "type": "string"
          },
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/project"
            }
          },
          "salary": {
            "type": "number",
            "format": "double"
          },
          "holidayPay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pension": {
            "$ref": "#/components/schemas/pension"
          },
          "employerTax": {
            "$ref": "#/components/schemas/employerTax"
          },
          "displayValue": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "breakdown": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/breakdownRow"
            }
          },
          "parentalLeaveStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "employeeHoursLastMonth": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "hoursLastMonth": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/timeTransactionRecord"
            }
          }
        }
      },
      "employeeImport": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "input": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/detailedSalaryLine"
            }
          },
          "output": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/powerOfficeSalaryLineResult"
            }
          }
        }
      },
      "employeeLeaveQuotas": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "quotas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/leaveQuotaStatus"
            }
          }
        }
      },
      "employeeProjects": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/project"
            }
          }
        }
      },
      "employeeSalary": {
        "required": [
          "name",
          "email",
          "salaryLines",
          "salary"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "minLength": 1,
            "type": "string"
          },
          "salaryLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/iSalary"
            }
          },
          "salary": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "employeeStockInfo": {
        "required": [
          "employeeId",
          "employeeName",
          "employeeEmail",
          "shareholderId",
          "shareholderName",
          "shares",
          "ownershipPercentage",
          "value",
          "transactionHistory",
          "ownershipHistory"
        ],
        "type": "object",
        "properties": {
          "employeeId": {
            "minLength": 1,
            "type": "string"
          },
          "employeeName": {
            "minLength": 1,
            "type": "string"
          },
          "employeeEmail": {
            "minLength": 1,
            "type": "string"
          },
          "employeeImageUrl": {
            "type": "string"
          },
          "shareholderId": {
            "minLength": 1,
            "type": "string"
          },
          "shareholderName": {
            "minLength": 1,
            "type": "string"
          },
          "shares": {
            "type": "integer",
            "format": "int32"
          },
          "ownershipPercentage": {
            "type": "number",
            "format": "double"
          },
          "value": {
            "type": "number",
            "format": "double"
          },
          "valueAtStart": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "valueChange": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "valueChangePercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "transactionHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/stockTransaction"
            }
          },
          "ownershipHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ownershipSnapshot"
            }
          }
        }
      },
      "employeeTimeTransactionSummary": {
        "required": [
          "name",
          "email",
          "timeTransactions"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "minLength": 1,
            "type": "string"
          },
          "timeTransactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/timeTransactionSummary"
            }
          }
        }
      },
      "employeeTransactionSummary": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "$ref": "#/components/schemas/summary"
          },
          "transactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/transaction"
            },
            "nullable": true
          }
        }
      },
      "employeeVouchers": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "vouchers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/gadgetVoucher"
            }
          }
        }
      },
      "employerTax": {
        "type": "object",
        "properties": {
          "underLimit": {
            "type": "integer",
            "format": "int32"
          },
          "aboveLimit": {
            "type": "integer",
            "format": "int32"
          },
          "pension": {
            "type": "integer",
            "format": "int32"
          },
          "holidayPay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "total": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "entity": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "resource": {
            "type": "string",
            "nullable": true
          },
          "resource_path": {
            "type": "string",
            "nullable": true
          },
          "extraJson": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "nullable": true
      },
      "error": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "extraJson": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "estimatedSalary": {
        "type": "object",
        "properties": {
          "hours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hourlyRate": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "commission": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "activityCode": {
            "type": "string"
          },
          "activityName": {
            "type": "string"
          },
          "projects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/project"
            }
          },
          "salary": {
            "type": "number",
            "format": "double"
          },
          "holidayPay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pension": {
            "$ref": "#/components/schemas/pension"
          },
          "employerTax": {
            "$ref": "#/components/schemas/employerTax"
          },
          "displayValue": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "breakdown": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/breakdownRow"
            }
          },
          "parentalLeaveStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "forecastMonth": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "month": {
            "type": "integer",
            "format": "int32"
          },
          "billableHours": {
            "type": "number",
            "format": "double"
          },
          "vacationDays": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "salaryCost": {
            "type": "number",
            "format": "double"
          },
          "navRefund": {
            "type": "number",
            "format": "double"
          },
          "otherCost": {
            "type": "number",
            "format": "double"
          },
          "employees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/monthlyEmployeeLine"
            }
          },
          "costs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/monthlyCostLine"
            }
          },
          "bonusCost": {
            "type": "number",
            "format": "double"
          },
          "subcontractorRevenue": {
            "type": "number",
            "format": "double"
          },
          "subcontractorCost": {
            "type": "number",
            "format": "double"
          },
          "totalRevenue": {
            "type": "number",
            "format": "double"
          },
          "totalCost": {
            "type": "number",
            "format": "double"
          },
          "result": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "forecastParameters": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "inflationPercent": {
            "type": "number",
            "format": "double"
          },
          "bonusPercent": {
            "type": "number",
            "format": "double"
          },
          "annualBaseSalary": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hourDistribution": {
            "$ref": "#/components/schemas/hourDistribution"
          },
          "hypotheticalEmployees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/hypotheticalEmployee"
            }
          },
          "plannedAbsences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/plannedAbsence"
            }
          },
          "costConfigs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/costConfig"
            }
          }
        }
      },
      "forecastResult": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "months": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/forecastMonth"
            }
          },
          "consultants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/consultantRevenueForecast"
            }
          },
          "salaries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/salaryCostForecast"
            }
          },
          "otherCosts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/otherCostForecast"
            }
          },
          "unconfiguredCosts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/unconfiguredCost"
            }
          },
          "actuals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/actualMonth"
            }
          },
          "subcontractors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/subcontractorForecastLine"
            }
          },
          "companyAverageRate": {
            "type": "number",
            "format": "double"
          },
          "annualBaseSalary": {
            "type": "number",
            "format": "double"
          },
          "totalRevenue": {
            "type": "number",
            "format": "double"
          },
          "totalCost": {
            "type": "number",
            "format": "double"
          },
          "totalResult": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "forecastScenario": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "parameters": {
            "$ref": "#/components/schemas/forecastParameters"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "forecastScenarioInput": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "parameters": {
            "$ref": "#/components/schemas/forecastParameters"
          }
        }
      },
      "from": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "id": {
            "type": "string",
            "nullable": true
          },
          "resource": {
            "type": "string",
            "nullable": true
          },
          "resource_path": {
            "type": "string",
            "nullable": true
          },
          "extraJson": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "nullable": true
      },
      "gadgetVoucher": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "employeeNumber": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "isReversed": {
            "type": "boolean"
          }
        }
      },
      "hourDistribution": {
        "type": "object",
        "properties": {
          "internalPaidPercent": {
            "type": "number",
            "format": "double"
          },
          "benchPercent": {
            "type": "number",
            "format": "double"
          },
          "internalProjectPercent": {
            "type": "number",
            "format": "double"
          },
          "sickPercent": {
            "type": "number",
            "format": "double"
          },
          "billablePercent": {
            "type": "number",
            "format": "double"
          },
          "billableShare": {
            "type": "number",
            "format": "double"
          },
          "baseSalaryShare": {
            "type": "number",
            "format": "double"
          },
          "projectPaidInternalShare": {
            "type": "number",
            "format": "double"
          },
          "sickShare": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "hourSplit": {
        "type": "object",
        "properties": {
          "billable": {
            "type": "number",
            "format": "double"
          },
          "internalProject": {
            "type": "number",
            "format": "double"
          },
          "baseSalary": {
            "type": "number",
            "format": "double"
          },
          "sick": {
            "type": "number",
            "format": "double"
          },
          "leave": {
            "type": "number",
            "format": "double"
          },
          "vacation": {
            "type": "number",
            "format": "double"
          },
          "total": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "hypotheticalEmployee": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "salaryModel": {
            "type": "string"
          },
          "annualSalary": {
            "type": "number",
            "format": "double"
          },
          "hourlyRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        }
      },
      "integrationHealthResult": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      },
      "iSalary": {
        "type": "object",
        "properties": {
          "salary": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "jToken": {
        "type": "object"
      },
      "kickbackDraftResult": {
        "type": "object",
        "properties": {
          "messageId": {
            "type": "string"
          },
          "projectCode": {
            "type": "string"
          },
          "provisionAmount": {
            "type": "number",
            "format": "double"
          },
          "invoiceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        }
      },
      "kickbackInvoice": {
        "type": "object",
        "properties": {
          "supplier": {
            "type": "string"
          },
          "supplierOrgNo": {
            "type": "string"
          },
          "customer": {
            "type": "string"
          },
          "projectRef": {
            "type": "string"
          },
          "consultant": {
            "type": "string"
          },
          "invoiceNo": {
            "type": "string"
          },
          "invoiceDate": {
            "type": "string",
            "format": "date-time"
          },
          "currency": {
            "type": "string"
          },
          "netAmount": {
            "type": "number",
            "format": "double"
          },
          "vatAmount": {
            "type": "number",
            "format": "double"
          },
          "grossAmount": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "kickbackReconciliationRow": {
        "type": "object",
        "properties": {
          "hash": {
            "type": "string"
          },
          "invoiceDate": {
            "type": "string",
            "format": "date-time"
          },
          "consultant": {
            "type": "string"
          },
          "invoiceNo": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "baseAmount": {
            "type": "number",
            "format": "double"
          },
          "provision": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "invoiced": {
            "type": "boolean"
          },
          "provisionInvoiceNo": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "kickbackReviewItem": {
        "type": "object",
        "properties": {
          "messageId": {
            "type": "string"
          },
          "fileName": {
            "type": "string"
          },
          "invoice": {
            "$ref": "#/components/schemas/kickbackInvoice"
          },
          "projectCode": {
            "type": "string"
          },
          "projectName": {
            "type": "string"
          },
          "matchConfidence": {
            "type": "number",
            "format": "double"
          },
          "matchReasoning": {
            "type": "string"
          },
          "provisionPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "provisionAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "customerCode": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "alreadyInvoiced": {
            "type": "boolean"
          }
        }
      },
      "leaveQuotaStatus": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "used": {
            "type": "number",
            "format": "double"
          },
          "limit": {
            "type": "number",
            "format": "double"
          },
          "statutoryLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "isTarget": {
            "type": "boolean"
          },
          "order": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "money": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "base": {
            "type": "string",
            "nullable": true
          },
          "extraJson": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "nullable": true
      },
      "monthlyCostLine": {
        "type": "object",
        "properties": {
          "accountCode": {
            "type": "integer",
            "format": "int64"
          },
          "label": {
            "type": "string"
          },
          "behaviour": {
            "enum": [
              "Fixed",
              "PerEmployee"
            ],
            "type": "string",
            "default": "Fixed"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "monthlyEmployeeLine": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "billableHours": {
            "type": "number",
            "format": "double"
          },
          "hourlyRate": {
            "type": "number",
            "format": "double"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "salaryCost": {
            "type": "number",
            "format": "double"
          },
          "navRefund": {
            "type": "number",
            "format": "double"
          },
          "isBillable": {
            "type": "boolean"
          },
          "employedShare": {
            "type": "number",
            "format": "double"
          },
          "parentalLeaveShare": {
            "type": "number",
            "format": "double"
          },
          "vacationShare": {
            "type": "number",
            "format": "double"
          },
          "baseSalaryHours": {
            "type": "number",
            "format": "double"
          },
          "internalProjectHours": {
            "type": "number",
            "format": "double"
          },
          "sickHours": {
            "type": "number",
            "format": "double"
          },
          "leaveHours": {
            "type": "number",
            "format": "double"
          },
          "vacationHours": {
            "type": "number",
            "format": "double"
          },
          "actualHours": {
            "$ref": "#/components/schemas/hourSplit"
          },
          "commission": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "network": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "hash": {
            "type": "string",
            "nullable": true
          },
          "transaction_fee": {
            "$ref": "#/components/schemas/networkMoney"
          },
          "transaction_amount": {
            "$ref": "#/components/schemas/networkMoney"
          },
          "confirmations": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "extraJson": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "nullable": true
      },
      "networkMoney": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "extraJson": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "nullable": true
      },
      "otherCostForecast": {
        "type": "object",
        "properties": {
          "accountCode": {
            "type": "integer",
            "format": "int64"
          },
          "accountCodeTo": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "label": {
            "type": "string"
          },
          "behaviour": {
            "enum": [
              "Fixed",
              "PerEmployee"
            ],
            "type": "string",
            "default": "Fixed"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "amountByMonth": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            }
          }
        }
      },
      "outgoingInvoiceSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "invoiceNo": {
            "type": "string"
          },
          "invoiceDate": {
            "type": "string",
            "format": "date-time"
          },
          "projectCode": {
            "type": "string"
          },
          "customerCode": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "netAmount": {
            "type": "number",
            "format": "double"
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "externalReference": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "ownershipSnapshot": {
        "required": [
          "date",
          "totalShares",
          "shareholders"
        ],
        "type": "object",
        "properties": {
          "date": {
            "minLength": 1,
            "type": "string",
            "format": "date-time"
          },
          "totalShares": {
            "type": "integer",
            "format": "int32"
          },
          "shareholders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/shareholderOwnership"
            }
          },
          "companyValuation": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        }
      },
      "pageEmployeeOrderInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "reference"
            ],
            "type": "string",
            "default": "reference"
          },
          "sanityKey": {
            "type": "string"
          },
          "sanityRef": {
            "type": "string"
          },
          "sanityWeak": {
            "type": "boolean"
          }
        }
      },
      "pension": {
        "type": "object",
        "properties": {
          "under12G": {
            "type": "integer",
            "format": "int32"
          },
          "above7G": {
            "type": "integer",
            "format": "int32"
          },
          "total": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "plannedAbsence": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "from": {
            "type": "string",
            "format": "date-time"
          },
          "to": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "powerOfficeSalaryLineResult": {
        "type": "object",
        "properties": {
          "employeeCode": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "payItemCode": {
            "type": "string"
          },
          "comment": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "quantity": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        }
      },
      "project": {
        "type": "object",
        "properties": {
          "projectCode": {
            "type": "string"
          },
          "projectName": {
            "type": "string"
          },
          "hours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "commission": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hourlyRate": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          }
        }
      },
      "provisionSalaryResult": {
        "required": [
          "salary",
          "pension",
          "employerTax"
        ],
        "type": "object",
        "properties": {
          "salary": {
            "type": "integer",
            "format": "int32"
          },
          "holidayPay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pension": {
            "$ref": "#/components/schemas/pension"
          },
          "employerTax": {
            "$ref": "#/components/schemas/employerTax"
          }
        }
      },
      "response_statistics": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/statistics"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/error"
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/warning"
            }
          },
          "extraJson": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "response_transaction": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/transaction"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/error"
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/warning"
            }
          },
          "extraJson": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "salaryCostForecast": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "salaryModel": {
            "type": "string"
          },
          "salary": {
            "type": "number",
            "format": "double"
          },
          "employerTax": {
            "type": "number",
            "format": "double"
          },
          "pension": {
            "type": "number",
            "format": "double"
          },
          "holidayPay": {
            "type": "number",
            "format": "double"
          },
          "parentalLeaveCost": {
            "type": "number",
            "format": "double"
          },
          "navRefund": {
            "type": "number",
            "format": "double"
          },
          "total": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "salaryEstimate": {
        "required": [
          "title",
          "hours",
          "commission",
          "hourlyRate",
          "salary",
          "pension",
          "employerTax"
        ],
        "type": "object",
        "properties": {
          "title": {
            "minLength": 1,
            "type": "string"
          },
          "hours": {
            "type": "number",
            "format": "float"
          },
          "commission": {
            "type": "number",
            "format": "float"
          },
          "hourlyRate": {
            "type": "integer",
            "format": "int32"
          },
          "salary": {
            "type": "integer",
            "format": "int32"
          },
          "holidayPay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pension": {
            "$ref": "#/components/schemas/pension"
          },
          "employerTax": {
            "$ref": "#/components/schemas/employerTax"
          }
        }
      },
      "salaryEstimateInput": {
        "required": [
          "name",
          "email",
          "title",
          "hours",
          "commission",
          "hourlyRate"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "minLength": 1,
            "type": "string"
          },
          "title": {
            "minLength": 1,
            "type": "string"
          },
          "hours": {
            "type": "number",
            "format": "float"
          },
          "commission": {
            "type": "number",
            "format": "float"
          },
          "hourlyRate": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "salaryEstimateWithEmployee": {
        "required": [
          "name",
          "email",
          "title",
          "hours",
          "commission",
          "hourlyRate",
          "salary",
          "pension",
          "employerTax"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "minLength": 1,
            "type": "string"
          },
          "title": {
            "minLength": 1,
            "type": "string"
          },
          "hours": {
            "type": "number",
            "format": "float"
          },
          "commission": {
            "type": "number",
            "format": "float"
          },
          "hourlyRate": {
            "type": "integer",
            "format": "int32"
          },
          "salary": {
            "type": "integer",
            "format": "int32"
          },
          "holidayPay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pension": {
            "$ref": "#/components/schemas/pension"
          },
          "employerTax": {
            "$ref": "#/components/schemas/employerTax"
          },
          "breakdown": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/breakdownRow"
            },
            "nullable": true
          }
        }
      },
      "salarySummary": {
        "required": [
          "salary",
          "salaryLines"
        ],
        "type": "object",
        "properties": {
          "salary": {
            "type": "integer",
            "format": "int32"
          },
          "salaryLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/iSalary"
            }
          }
        }
      },
      "sanityEmployee": {
        "type": "object",
        "properties": {
          "gender": {
            "enum": [
              "female",
              "male",
              "These are not the genders you are looking for"
            ],
            "type": "string",
            "default": "female"
          },
          "maritalStatus": {
            "enum": [
              "cohabitant",
              "married",
              "single"
            ],
            "type": "string",
            "default": "cohabitant",
            "nullable": true
          },
          "parentalLeaveCoverage": {
            "enum": [
              "80",
              "100"
            ],
            "type": "string",
            "default": "80",
            "nullable": true
          },
          "sanityType": {
            "enum": [
              "employee"
            ],
            "type": "string",
            "default": "employee"
          },
          "about": {
            "type": "string"
          },
          "active": {
            "type": "boolean"
          },
          "address": {
            "type": "string"
          },
          "allergies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "birth_date": {
            "type": "string"
          },
          "blurred_image": {
            "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImage"
          },
          "boardMember": {
            "type": "boolean"
          },
          "cliftonStrengths": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityEmployeeCliftonStrengthsInner"
            }
          },
          "coinbaseAccountEmail": {
            "type": "string"
          },
          "commissionTier": {
            "$ref": "#/components/schemas/sanityEmployeeCommissionTier"
          },
          "education": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "equipment": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityEmployeeEquipmentInner"
            }
          },
          "externalId": {
            "type": "string"
          },
          "github": {
            "type": "string"
          },
          "graduationYear": {
            "type": "number",
            "format": "double"
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityEmployeeGroupsInner"
            }
          },
          "image": {
            "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImage"
          },
          "innovativeSalary": {
            "type": "boolean"
          },
          "innovativeSalaryPercentage": {
            "type": "number",
            "format": "double"
          },
          "isBot": {
            "type": "boolean"
          },
          "isExternal": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "isSeekingProject": {
            "type": "boolean"
          },
          "leadershipGroupMember": {
            "type": "boolean"
          },
          "linkedin": {
            "type": "string"
          },
          "manager": {
            "$ref": "#/components/schemas/sanityEmployeeManager"
          },
          "media": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityTechnologyWithRelationsDescriptionInnerOneOf4MediaInner"
            }
          },
          "name": {
            "type": "string"
          },
          "nextOfKin": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityEmployeeNextOfKinInner"
            }
          },
          "nrOfChildren": {
            "type": "number",
            "format": "double"
          },
          "personalProjectRequirements": {
            "type": "string"
          },
          "position": {
            "type": "string"
          },
          "salaryConfig": {
            "$ref": "#/components/schemas/sanityEmployeeSalaryConfig"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "scopeGrants": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "settings": {
            "$ref": "#/components/schemas/sanityEmployeeSettings"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "start_date": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityTechnologyWithRelationsEmployeesInnerTagsInner"
            }
          },
          "technologies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityTechnologyWithRelationsProjectsInnerTechnologiesInner"
            }
          },
          "telephone": {
            "type": "string"
          }
        }
      },
      "sanityEmployeeCliftonStrengthsInner": {
        "type": "object",
        "properties": {
          "domain": {
            "enum": [
              "executing",
              "influencing",
              "relationship_building",
              "strategic_thinking"
            ],
            "type": "string",
            "default": "executing",
            "nullable": true
          },
          "sanityType": {
            "enum": [
              "cliftonStrength"
            ],
            "type": "string",
            "default": "cliftonStrength"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "strength": {
            "type": "string"
          }
        }
      },
      "sanityEmployeeCommissionTier": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "commissionTier"
            ],
            "type": "string",
            "default": "commissionTier"
          },
          "commission": {
            "type": "number",
            "format": "double"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "sanityEmployeeEquipmentInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "equipment"
            ],
            "type": "string",
            "default": "equipment"
          },
          "description": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanitySystemsInnerDescriptionInner"
            }
          },
          "image": {
            "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImage"
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMediaOneOf"
            }
          },
          "sanityId": {
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "sanityEmployeeGroupsInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "group"
            ],
            "type": "string",
            "default": "group"
          },
          "description": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanitySystemsInnerDescriptionInner"
            }
          },
          "image": {
            "$ref": "#/components/schemas/sanityTechnologyWithRelationsArticlesInnerMediaOneOf"
          },
          "leaders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pageEmployeeOrderInner"
            }
          },
          "name": {
            "type": "string"
          },
          "permissions": {
            "type": "string"
          },
          "sanityCreatedAt": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "sanityRev": {
            "type": "string"
          },
          "sanityUpdatedAt": {
            "type": "string"
          },
          "scopeGrants": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "slackChannel": {
            "type": "string"
          }
        }
      },
      "sanityEmployeeManager": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "employee"
            ],
            "type": "string",
            "default": "employee"
          },
          "email": {
            "type": "string"
          },
          "image": {
            "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImage"
          },
          "isBot": {
            "type": "boolean",
            "nullable": true
          },
          "isExternal": {
            "type": "boolean",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/sanityTechnologyWithRelationsEmployeesInnerTagsInner"
            }
          },
          "telephone": {
            "type": "string"
          }
        }
      },
      "sanityEmployeeNextOfKinInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "nextofkin"
            ],
            "type": "string",
            "default": "nextofkin"
          },
          "name": {
            "type": "string"
          },
          "sanityKey": {
            "type": "string"
          },
          "telephone": {
            "type": "string"
          }
        }
      },
      "sanityEmployeeSalaryConfig": {
        "type": "object",
        "properties": {
          "model": {
            "enum": [
              "snokam.ceo",
              "snokam.employee"
            ],
            "type": "string",
            "default": "snokam.ceo",
            "nullable": true
          }
        }
      },
      "sanityEmployeeSettings": {
        "type": "object",
        "properties": {
          "colorScheme": {
            "enum": [
              "dark",
              "light",
              "system"
            ],
            "type": "string",
            "default": "dark",
            "nullable": true
          }
        }
      },
      "sanitySystemsInnerDescriptionInner": {
        "type": "object",
        "properties": {
          "listItem": {
            "enum": [
              "bullet",
              "number"
            ],
            "type": "string",
            "default": "bullet",
            "nullable": true
          },
          "sanityType": {
            "enum": [
              "block"
            ],
            "type": "string",
            "default": "block"
          },
          "style": {
            "enum": [
              "blockquote",
              "h1",
              "h2",
              "h3",
              "h4",
              "h5",
              "h6",
              "normal"
            ],
            "type": "string",
            "default": "blockquote",
            "nullable": true
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/componentBlocksInnerOneOfChildrenInner"
            }
          },
          "level": {
            "type": "number",
            "format": "double"
          },
          "markDefs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/componentBlocksInnerOneOfMarkDefsInner"
            }
          },
          "sanityKey": {
            "type": "string"
          }
        }
      },
      "sanityTechnologyWithRelationsArticlesInnerMediaOneOf": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "image"
            ],
            "type": "string",
            "default": "image"
          },
          "asset": {
            "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
          }
        }
      },
      "sanityTechnologyWithRelationsDescriptionInnerOneOf4MediaInner": {
        "type": "object",
        "properties": {
          "actualInstance": {
            "type": "object"
          },
          "isNullable": {
            "type": "boolean"
          },
          "schemaType": {
            "type": "string"
          }
        }
      },
      "sanityTechnologyWithRelationsEmployeesInnerTagsInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "tag"
            ],
            "type": "string",
            "default": "tag"
          },
          "name": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          }
        }
      },
      "sanityTechnologyWithRelationsProjectsInnerTechnologiesInner": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "technology"
            ],
            "type": "string",
            "default": "technology"
          },
          "parent": {
            "$ref": "#/components/schemas/sanityTechnologyWithRelationsEmployeesInnerTagsInner"
          },
          "sanityId": {
            "type": "string"
          },
          "slug": {
            "$ref": "#/components/schemas/slug"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "sanityTvCategoryDashboardsInnerBackgroundImage": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "image"
            ],
            "type": "string",
            "default": "image"
          },
          "asset": {
            "$ref": "#/components/schemas/sanityTvCategoryDashboardsInnerBackgroundImageAsset"
          }
        }
      },
      "sanityTvCategoryDashboardsInnerBackgroundImageAsset": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "sanity.imageAsset"
            ],
            "type": "string",
            "default": "sanity.imageAsset"
          },
          "mimeType": {
            "type": "string"
          },
          "originalFilename": {
            "type": "string"
          },
          "sanityId": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "shareholder": {
        "required": [
          "id",
          "name",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "type": "string"
          },
          "organizationNumber": {
            "type": "string"
          },
          "personalNumber": {
            "type": "string"
          },
          "employeeId": {
            "type": "string"
          },
          "employeeName": {
            "type": "string"
          },
          "employeeEmail": {
            "type": "string"
          },
          "employeeImageUrl": {
            "type": "string"
          }
        }
      },
      "shareholderOwnership": {
        "required": [
          "shareholderId",
          "shareholderName",
          "shareholderType",
          "shares",
          "ownershipPercentage"
        ],
        "type": "object",
        "properties": {
          "shareholderId": {
            "minLength": 1,
            "type": "string"
          },
          "shareholderName": {
            "minLength": 1,
            "type": "string"
          },
          "shareholderType": {
            "minLength": 1,
            "type": "string"
          },
          "employeeId": {
            "type": "string"
          },
          "employeeName": {
            "type": "string"
          },
          "employeeEmail": {
            "type": "string"
          },
          "employeeImageUrl": {
            "type": "string"
          },
          "holderOwnerId": {
            "type": "string"
          },
          "holderOwnerName": {
            "type": "string"
          },
          "shares": {
            "type": "integer",
            "format": "int32"
          },
          "ownershipPercentage": {
            "type": "number",
            "format": "double"
          },
          "value": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "asOfDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "slug": {
        "type": "object",
        "properties": {
          "sanityType": {
            "enum": [
              "slug"
            ],
            "type": "string",
            "default": "slug"
          },
          "current": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "statistics": {
        "type": "object",
        "properties": {
          "numberOfEmployeesActivated": {
            "type": "integer",
            "format": "int32"
          },
          "totalNumberOfEmployees": {
            "type": "integer",
            "format": "int32"
          },
          "numberOfEmployeesActivatedPercentage": {
            "type": "number",
            "format": "float"
          },
          "averagePercentageOfActivatedEmployees": {
            "type": "number",
            "format": "float"
          },
          "averagePercentageOfAllEmployees": {
            "type": "number",
            "format": "float"
          },
          "cryptoSends": {
            "$ref": "#/components/schemas/cryptoSells"
          },
          "cryptoBuys": {
            "$ref": "#/components/schemas/cryptoBuys"
          },
          "accountBalance": {
            "$ref": "#/components/schemas/accountBalance"
          },
          "totalProfitNOK": {
            "type": "number",
            "format": "double"
          }
        },
        "nullable": true
      },
      "stockOverview": {
        "required": [
          "totalShares",
          "currentOwnership",
          "recentTransactions",
          "ownershipHistory",
          "valuationParameters"
        ],
        "type": "object",
        "properties": {
          "totalShares": {
            "type": "integer",
            "format": "int32"
          },
          "currentOwnership": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/shareholderOwnership"
            }
          },
          "recentTransactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/stockTransaction"
            }
          },
          "ownershipHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ownershipSnapshot"
            }
          },
          "valuationHistory": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/valuationHistoryItem"
            }
          },
          "companyValuation": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "valuationParameters": {
            "$ref": "#/components/schemas/valuationParameters"
          }
        }
      },
      "stockTransaction": {
        "required": [
          "id",
          "transactionNumber",
          "date",
          "transactionType",
          "toShareholderId",
          "toShareholderName",
          "shares"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string"
          },
          "transactionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "date": {
            "minLength": 1,
            "type": "string",
            "format": "date-time"
          },
          "transactionType": {
            "minLength": 1,
            "type": "string"
          },
          "splitRatio": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "fromShareholderId": {
            "type": "string"
          },
          "fromShareholderName": {
            "type": "string"
          },
          "toShareholderId": {
            "minLength": 1,
            "type": "string"
          },
          "toShareholderName": {
            "minLength": 1,
            "type": "string"
          },
          "shares": {
            "type": "integer",
            "format": "int32"
          },
          "pricePerShare": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "notes": {
            "type": "string"
          }
        }
      },
      "subcontractorForecastLine": {
        "type": "object",
        "properties": {
          "projectCode": {
            "type": "string"
          },
          "projectName": {
            "type": "string"
          },
          "revenue": {
            "type": "number",
            "format": "double"
          },
          "cost": {
            "type": "number",
            "format": "double"
          },
          "revenueByMonth": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            }
          },
          "costByMonth": {
            "type": "object",
            "additionalProperties": {
              "type": "number",
              "format": "double"
            }
          },
          "margin": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "subcontractorIncomePoint": {
        "type": "object",
        "properties": {
          "year": {
            "type": "integer",
            "format": "int32"
          },
          "month": {
            "type": "integer",
            "format": "int32"
          },
          "income": {
            "type": "number",
            "format": "double"
          },
          "draftedAmount": {
            "type": "number",
            "format": "double"
          },
          "cost": {
            "type": "number",
            "format": "double"
          },
          "margin": {
            "type": "number",
            "format": "double"
          },
          "accumulatedMargin": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "subcontractorInvoiceDraft": {
        "type": "object",
        "properties": {
          "customerCode": {
            "type": "integer",
            "format": "int64"
          },
          "invoiceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "url": {
            "type": "string"
          }
        }
      },
      "subcontractorInvoiceLine": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "format": "double"
          },
          "unitPrice": {
            "type": "number",
            "format": "double"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "subcontractorInvoiceRequest": {
        "type": "object",
        "properties": {
          "supplierInvoiceId": {
            "type": "string"
          },
          "variant": {
            "type": "string"
          },
          "customerCode": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "cutPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        }
      },
      "subcontractorInvoiceResult": {
        "type": "object",
        "properties": {
          "supplierInvoiceId": {
            "type": "string",
            "format": "uuid"
          },
          "supplierCode": {
            "type": "integer",
            "format": "int64"
          },
          "customerCode": {
            "type": "integer",
            "format": "int64"
          },
          "cutPercent": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string"
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/subcontractorInvoiceLine"
            }
          },
          "draft": {
            "$ref": "#/components/schemas/subcontractorInvoiceDraft"
          },
          "timesheet": {
            "$ref": "#/components/schemas/timesheet"
          },
          "timesheetDocument": {
            "$ref": "#/components/schemas/voucherDocument"
          },
          "timesheetNote": {
            "type": "string"
          }
        }
      },
      "subcontractorProject": {
        "type": "object",
        "properties": {
          "projectCode": {
            "type": "string"
          },
          "projectName": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "customerCode": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "markupPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "markupDescription": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        }
      },
      "subcontractorProjectSummary": {
        "type": "object",
        "properties": {
          "projectCode": {
            "type": "string"
          },
          "projectName": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "customerCode": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "markupPercent": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "currency": {
            "type": "string"
          },
          "income": {
            "type": "number",
            "format": "double"
          },
          "draftedAmount": {
            "type": "number",
            "format": "double"
          },
          "cost": {
            "type": "number",
            "format": "double"
          },
          "margin": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "subcontractorRunResult": {
        "type": "object",
        "properties": {
          "markupDraftsCreated": {
            "type": "integer",
            "format": "int32"
          },
          "kickbackDraftsCreated": {
            "type": "integer",
            "format": "int32"
          },
          "draftsCreated": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "subcontractorSourceInvoiceSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "voucherNo": {
            "type": "integer",
            "format": "int64"
          },
          "supplierCode": {
            "type": "integer",
            "format": "int64"
          },
          "invoiceNo": {
            "type": "string"
          },
          "voucherDate": {
            "type": "string",
            "format": "date-time"
          },
          "projectCode": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "resolvedCustomerCode": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "url": {
            "type": "string"
          }
        }
      },
      "summary": {
        "type": "object",
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/amount"
          }
        },
        "nullable": true
      },
      "tax": {
        "type": "object",
        "properties": {
          "percent": {
            "type": "integer",
            "format": "int32"
          },
          "btc": {
            "type": "number",
            "format": "double"
          },
          "nok": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "timesheet": {
        "type": "object",
        "properties": {
          "consultant": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/timesheetEntry"
            }
          },
          "totalHours": {
            "type": "number",
            "format": "double"
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          },
          "rate": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        }
      },
      "timesheetEntry": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "activity": {
            "type": "string"
          },
          "hours": {
            "type": "number",
            "format": "double"
          },
          "rate": {
            "type": "number",
            "format": "double"
          },
          "amount": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "timeTransactionRecord": {
        "type": "object",
        "properties": {
          "employeeCode": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "activityCode": {
            "type": "string"
          },
          "activityName": {
            "type": "string"
          },
          "projectCode": {
            "type": "string"
          },
          "projectName": {
            "type": "string"
          },
          "hours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hourlyRate": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "date": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approvalStatus": {
            "type": "string"
          }
        }
      },
      "timeTransactionSummary": {
        "required": [
          "activityCode",
          "activityName"
        ],
        "type": "object",
        "properties": {
          "activityCode": {
            "minLength": 1,
            "type": "string"
          },
          "activityName": {
            "minLength": 1,
            "type": "string"
          },
          "projectCode": {
            "type": "string",
            "nullable": true
          },
          "projectName": {
            "type": "string",
            "nullable": true
          },
          "hours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "commission": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hourlyRate": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        }
      },
      "to": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "id": {
            "type": "string",
            "nullable": true
          },
          "resource": {
            "type": "string",
            "nullable": true
          },
          "resource_path": {
            "type": "string",
            "nullable": true
          },
          "extraJson": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        },
        "nullable": true
      },
      "todaysSalarySummary": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "todaysSalary": {
            "$ref": "#/components/schemas/amount"
          },
          "innovativeSalaryPercentage": {
            "type": "integer",
            "format": "int32"
          },
          "basis": {
            "$ref": "#/components/schemas/basis"
          }
        }
      },
      "transaction": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "$ref": "#/components/schemas/money"
          },
          "native_amount": {
            "$ref": "#/components/schemas/money"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "network": {
            "$ref": "#/components/schemas/network"
          },
          "to": {
            "$ref": "#/components/schemas/to"
          },
          "from": {
            "$ref": "#/components/schemas/from"
          },
          "instant_exchange": {
            "type": "boolean",
            "nullable": true
          },
          "details": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            },
            "nullable": true
          },
          "application": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            },
            "nullable": true
          },
          "buy": {
            "$ref": "#/components/schemas/entity"
          },
          "id": {
            "type": "string",
            "nullable": true
          },
          "resource": {
            "type": "string",
            "nullable": true
          },
          "resource_path": {
            "type": "string",
            "nullable": true
          },
          "extraJson": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "transactionSummary": {
        "type": "object",
        "properties": {
          "summary": {
            "$ref": "#/components/schemas/summary"
          },
          "transactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/transaction"
            },
            "nullable": true
          }
        }
      },
      "unconfiguredCost": {
        "type": "object",
        "properties": {
          "accountCode": {
            "type": "integer",
            "format": "int64"
          },
          "accountName": {
            "type": "string"
          },
          "historicalAmount": {
            "type": "number",
            "format": "double"
          },
          "netsToCredit": {
            "type": "boolean"
          },
          "netAmount": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "validationFailure": {
        "type": "object",
        "properties": {
          "propertyName": {
            "type": "string"
          },
          "errorMessage": {
            "type": "string"
          },
          "attemptedValue": {
            "type": "object"
          },
          "customState": {
            "type": "object"
          },
          "severity": {
            "enum": [
              0,
              1,
              2
            ],
            "type": "integer",
            "format": "int32",
            "default": 0
          },
          "errorCode": {
            "type": "string"
          },
          "formattedMessagePlaceholderValues": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      },
      "valuation": {
        "required": [
          "name",
          "email",
          "image",
          "company",
          "employee",
          "nextEmployee",
          "date",
          "numberOfEmployees",
          "employeesStartingThisMonth",
          "employeeHasStarted",
          "employeeStartedThisMonth",
          "history"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "minLength": 1,
            "type": "string"
          },
          "image": {
            "minLength": 1,
            "type": "string"
          },
          "company": {
            "type": "number",
            "format": "float"
          },
          "employee": {
            "type": "number",
            "format": "float"
          },
          "nextEmployee": {
            "type": "number",
            "format": "float"
          },
          "date": {
            "minLength": 1,
            "type": "string"
          },
          "numberOfEmployees": {
            "type": "integer",
            "format": "int32"
          },
          "employeesStartingThisMonth": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/valuationEmployee"
            }
          },
          "employeeHasStarted": {
            "type": "boolean"
          },
          "employeeStartedThisMonth": {
            "type": "boolean"
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/valuation"
            }
          }
        }
      },
      "valuationEmployee": {
        "required": [
          "name",
          "email",
          "image"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "minLength": 1,
            "type": "string"
          },
          "image": {
            "minLength": 1,
            "type": "string"
          }
        }
      },
      "valuationHistoryItem": {
        "required": [
          "date",
          "companyValuation"
        ],
        "type": "object",
        "properties": {
          "date": {
            "minLength": 1,
            "type": "string",
            "format": "date-time"
          },
          "companyValuation": {
            "type": "number",
            "format": "double"
          },
          "numberOfEmployees": {
            "type": "integer",
            "format": "int32"
          },
          "employeesStartingThisMonth": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/valuationEmployee"
            }
          }
        }
      },
      "valuationParameters": {
        "required": [
          "hourlyRate",
          "billableHours",
          "invoicingRate",
          "margin",
          "multiple"
        ],
        "type": "object",
        "properties": {
          "hourlyRate": {
            "type": "integer",
            "format": "int32"
          },
          "billableHours": {
            "type": "integer",
            "format": "int32"
          },
          "invoicingRate": {
            "type": "number",
            "format": "double"
          },
          "margin": {
            "type": "number",
            "format": "double"
          },
          "multiple": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "voucherDocument": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string"
          },
          "contentBase64": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          }
        }
      },
      "wageRate": {
        "required": [
          "sickLeave",
          "militaryService",
          "baseSalary",
          "annualBaseSalary",
          "tenGHourly",
          "basicAmount",
          "hoursThisYear"
        ],
        "type": "object",
        "properties": {
          "sickLeave": {
            "type": "integer",
            "format": "int32"
          },
          "militaryService": {
            "type": "integer",
            "format": "int32"
          },
          "baseSalary": {
            "type": "integer",
            "format": "int32"
          },
          "annualBaseSalary": {
            "type": "integer",
            "format": "int32"
          },
          "tenGHourly": {
            "type": "integer",
            "format": "int32"
          },
          "basicAmount": {
            "type": "integer",
            "format": "int32"
          },
          "hoursThisYear": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "warning": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "extraJson": {
            "type": "object",
            "additionalProperties": {
              "type": "object"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "Implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
            "tokenUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
            "refreshUrl": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
            "scopes": {
              "api://b2c47b20-df4a-49b5-a7ee-87f3647ab227/.default": "Default function scope"
            }
          }
        }
      },
      "ApiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}