{
  "openapi": "3.0.2",
  "info": {
    "title": "CAMP 365 Connect your organisation API computerCamp/payroll/v2.0",
    "version": "28.1.0.0",
    "description": "Generated on 27-05-2026"
  },
  "servers": [
    {
      "url": "https://api.businesscentral.dynamics.com/v2.0/sandbox/api/computerCamp/payroll/v2.0"
    },
    {
      "url": "https://api.businesscentral.dynamics.com/v2.0/production/api/computerCamp/payroll/v2.0"
    }
  ],
  "tags": [
    {
      "name": "payrollReportMemberLines"
    },
    {
      "name": "payrollReportMembers"
    },
    {
      "name": "payrollReports"
    }
  ],
  "security": [
    {
      "oAuth2ClientCredentials": [
        "https://api.businesscentral.dynamics.com/.default"
      ]
    },
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/payrollReportMemberLines": {
      "get": {
        "description": "View and update payroll member reports line for a specific payroll member report<br>The service should be called from payrollReportMembers in order to indentify the payroll member report<br><br>Permissions: Read and write<br>Returns: A list of report lines<br>Conditions: None<br><br>Examples:<br>GET:<br>Complete list: {environment}/api/computerCamp/payroll/v2.0/companies({{companyid}})/payrollReportMemberLines<br>For a specific payroll member report: {environment}/api/computerCamp/payroll/v2.0/companies({{companyid}})/payrollReportMemberLines<br>Response is a list of elements:<br>{<br>\"@odata.etag\": \"W/\\\"JzE5OzQ3Mjk4NzQ2NTY4MzcyOTQ5NjMxOzAwOyc=\\\"\",<br>\"id\": \"ad1ec7b7-c8f9-ef11-9f3c-c0db031a3955\",<br>\"column\": 1,<br>\"measure\": \"TOTAL OM\",<br>\"description\": \"Total omsætning\",<br>\"reportedSum\": 0,<br>\"memberReportNo\": 1,<br>\"reportedBy\": \"\"<br>}<br><br>PATCH:<br>A specific payroll meber report, use id from response: {environment}/api/computerCamp/payroll/v2.0/companies({{companyid}})/payrollReportMemberLines({id})<br>Authorization: {{auth}}<br>Content-Type:  application/json<br>If-Match: *<br><br>{<br>\"reportedSum\": 15,<br>\"reportedBy\": \"D00010\"<br>}<br>",
        "summary": "Get entities from payrollReportMemberLines",
        "tags": [
          "payrollReportMemberLines"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/company"
          },
          {
            "$ref": "#/components/parameters/top"
          },
          {
            "$ref": "#/components/parameters/skip"
          },
          {
            "$ref": "#/components/parameters/search"
          },
          {
            "name": "$filter",
            "description": "Filter items by property values, see [Filtering](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionfilter)",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/count"
          },
          {
            "name": "$orderby",
            "description": "Order items by property values, see [Sorting](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionorderby)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "id",
                  "id desc",
                  "column",
                  "column desc",
                  "measure",
                  "measure desc",
                  "description",
                  "description desc",
                  "reportedSum",
                  "reportedSum desc",
                  "memberReportNo",
                  "memberReportNo desc",
                  "reportedBy",
                  "reportedBy desc"
                ]
              }
            }
          },
          {
            "name": "$select",
            "description": "Select properties to be returned, see [Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "id",
                  "column",
                  "measure",
                  "description",
                  "reportedSum",
                  "memberReportNo",
                  "reportedBy"
                ]
              }
            }
          },
          {
            "name": "$expand",
            "description": "Select navigation properties to be returned, see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "payrollReportMember"
                ]
              }
            }
          }
        ],
        "responses": {
          "4XX": {
            "$ref": "#/components/responses/error"
          },
          "200": {
            "description": "Retrieved entities",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Collection of payrollReportMemberLine",
                  "properties": {
                    "@odata.count": {
                      "$ref": "#/components/schemas/count"
                    },
                    "value": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Microsoft.NAV.payrollReportMemberLine"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/payrollReportMemberLines({id})": {
      "parameters": [
        {
          "$ref": "#/components/parameters/company"
        },
        {
          "description": "key: id",
          "in": "path",
          "name": "id",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid",
            "example": "01234567-89ab-cdef-0123-456789abcdef"
          }
        }
      ],
      "get": {
        "summary": "Get entity from payrollReportMemberLines by key",
        "tags": [
          "payrollReportMemberLines"
        ],
        "parameters": [
          {
            "name": "$select",
            "description": "Select properties to be returned, see [Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "id",
                  "column",
                  "measure",
                  "description",
                  "reportedSum",
                  "memberReportNo",
                  "reportedBy"
                ]
              }
            }
          },
          {
            "name": "$expand",
            "description": "Select navigation properties to be returned, see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "payrollReportMember"
                ]
              }
            }
          }
        ],
        "responses": {
          "4XX": {
            "$ref": "#/components/responses/error"
          },
          "200": {
            "description": "Retrieved entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.NAV.payrollReportMemberLine"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update entity in payrollReportMemberLines",
        "tags": [
          "payrollReportMemberLines"
        ],
        "requestBody": {
          "description": "New property values",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Microsoft.NAV.payrollReportMemberLine-update"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Success"
          },
          "4XX": {
            "$ref": "#/components/responses/error"
          }
        }
      }
    },
    "/payrollReportMembers": {
      "get": {
        "description": "View and update payroll member reports for a specific payroll report<br><br>Permissions: Read and write<br>Returns: A list of members reports<br>Conditions: None<br><br>Examples:<br>GET:<br>Complete list: {environment}/api/computerCamp/payroll/v2.0/companies({{companyid}})/payrollReportMembers?$filter=reportNo eq '{reportNo}'<br>For a specific company: {environment}/api/computerCamp/payroll/v2.0/companies({{companyid}})/payrollReportMembers?$filter=reportNo eq '{reportNo}' and memberNo eq '{memberNo}<br>Response:<br>{<br>\"@odata.etag\": \"W/\\\"JzE5OzI2NjAyNTk0NjA2NDg4MTk4NzQxOzAwOyc=\\\"\",<br>\"id\": \"ac1ec7b7-c8f9-ef11-9f3c-c0db031a3955\",<br>\"reportNo\": \"2025\",<br>\"description\": \"Indberetning 2025\",<br>\"memberNo\": \"D00020\",<br>\"memberName\": \"Lecoq\",<br>\"status\": \"Created\",<br>\"reportedBy\": \"\"<br>}<br>For a specific company with reporting lines: {environment}/api/computerCamp/payroll/v2.0/companies({{companyid}})/payrollReportMembers?$filter=reportNo eq '{reportNo}' and memberNo eq '{memberNo} &$expand=payrollReportMemberLines<br>For a specific company with reporting lines sorted by measures: {environment}/api/computerCamp/payroll/v2.0/companies({{companyid}})/payrollReportMembers?$filter=reportNo eq '{reportNo}' and memberNo eq '{memberNo} &$expand=payrollReportMemberLines($orderby=measure)<br><br>PATCH:<br>A specific payroll meber report, use id from response: {environment}/api/computerCamp/payroll/v2.0/companies({{companyid}})/payrollReportMembers({id})<br>{<br>\"status\": \"SchemeAccepted\",<br>\"reportedBy\": \"D00010\"<br>}<br>",
        "summary": "Get entities from payrollReportMembers",
        "tags": [
          "payrollReportMembers"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/company"
          },
          {
            "$ref": "#/components/parameters/top"
          },
          {
            "$ref": "#/components/parameters/skip"
          },
          {
            "$ref": "#/components/parameters/search"
          },
          {
            "name": "$filter",
            "description": "Filter items by property values, see [Filtering](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionfilter)",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/count"
          },
          {
            "name": "$orderby",
            "description": "Order items by property values, see [Sorting](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionorderby)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "id",
                  "id desc",
                  "reportNo",
                  "reportNo desc",
                  "description",
                  "description desc",
                  "memberNo",
                  "memberNo desc",
                  "memberName",
                  "memberName desc",
                  "status",
                  "status desc",
                  "reportedBy",
                  "reportedBy desc",
                  "no",
                  "no desc"
                ]
              }
            }
          },
          {
            "name": "$select",
            "description": "Select properties to be returned, see [Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "id",
                  "reportNo",
                  "description",
                  "memberNo",
                  "memberName",
                  "status",
                  "reportedBy",
                  "no"
                ]
              }
            }
          },
          {
            "name": "$expand",
            "description": "Select navigation properties to be returned, see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "payrollReport",
                  "payrollReportMemberLines"
                ]
              }
            }
          }
        ],
        "responses": {
          "4XX": {
            "$ref": "#/components/responses/error"
          },
          "200": {
            "description": "Retrieved entities",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Collection of payrollReportMember",
                  "properties": {
                    "@odata.count": {
                      "$ref": "#/components/schemas/count"
                    },
                    "value": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Microsoft.NAV.payrollReportMember"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/payrollReportMembers({id})": {
      "parameters": [
        {
          "$ref": "#/components/parameters/company"
        },
        {
          "description": "key: id",
          "in": "path",
          "name": "id",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid",
            "example": "01234567-89ab-cdef-0123-456789abcdef"
          }
        }
      ],
      "get": {
        "summary": "Get entity from payrollReportMembers by key",
        "tags": [
          "payrollReportMembers"
        ],
        "parameters": [
          {
            "name": "$select",
            "description": "Select properties to be returned, see [Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "id",
                  "reportNo",
                  "description",
                  "memberNo",
                  "memberName",
                  "status",
                  "reportedBy",
                  "no"
                ]
              }
            }
          },
          {
            "name": "$expand",
            "description": "Select navigation properties to be returned, see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "payrollReport",
                  "payrollReportMemberLines"
                ]
              }
            }
          }
        ],
        "responses": {
          "4XX": {
            "$ref": "#/components/responses/error"
          },
          "200": {
            "description": "Retrieved entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.NAV.payrollReportMember"
                }
              }
            }
          }
        }
      },
      "patch": {
        "summary": "Update entity in payrollReportMembers",
        "tags": [
          "payrollReportMembers"
        ],
        "requestBody": {
          "description": "New property values",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Microsoft.NAV.payrollReportMember-update"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Success"
          },
          "4XX": {
            "$ref": "#/components/responses/error"
          }
        }
      }
    },
    "/payrollReports": {
      "get": {
        "description": "A list of payroll reports marked for Internet reporting<br><br>Permissions: Read<br>Returns: A list of reports<br>Conditions: None<br><br>Examples:<br>GET:<br>Complete list: {environment}/api/computerCamp/payroll/v2.0/companies({company})/payrollReports",
        "summary": "Get entities from payrollReports",
        "tags": [
          "payrollReports"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/company"
          },
          {
            "$ref": "#/components/parameters/top"
          },
          {
            "$ref": "#/components/parameters/skip"
          },
          {
            "$ref": "#/components/parameters/search"
          },
          {
            "name": "$filter",
            "description": "Filter items by property values, see [Filtering](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionfilter)",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/count"
          },
          {
            "name": "$orderby",
            "description": "Order items by property values, see [Sorting](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionorderby)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "reportNo",
                  "reportNo desc",
                  "description",
                  "description desc",
                  "year",
                  "year desc",
                  "validFromMonth",
                  "validFromMonth desc",
                  "deadline",
                  "deadline desc"
                ]
              }
            }
          },
          {
            "name": "$select",
            "description": "Select properties to be returned, see [Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "reportNo",
                  "description",
                  "year",
                  "validFromMonth",
                  "deadline"
                ]
              }
            }
          },
          {
            "name": "$expand",
            "description": "Select navigation properties to be returned, see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  null
                ]
              }
            }
          }
        ],
        "responses": {
          "4XX": {
            "$ref": "#/components/responses/error"
          },
          "200": {
            "description": "Retrieved entities",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Collection of payrollReport",
                  "properties": {
                    "@odata.count": {
                      "$ref": "#/components/schemas/count"
                    },
                    "value": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Microsoft.NAV.payrollReport"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/payrollReports('{reportNo}')": {
      "parameters": [
        {
          "$ref": "#/components/parameters/company"
        },
        {
          "description": "key: reportNo",
          "in": "path",
          "name": "reportNo",
          "required": true,
          "schema": {
            "type": "string",
            "maxLength": 10
          }
        }
      ],
      "get": {
        "summary": "Get entity from payrollReports by key",
        "tags": [
          "payrollReports"
        ],
        "parameters": [
          {
            "name": "$select",
            "description": "Select properties to be returned, see [Select](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionselect)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  "reportNo",
                  "description",
                  "year",
                  "validFromMonth",
                  "deadline"
                ]
              }
            }
          },
          {
            "name": "$expand",
            "description": "Select navigation properties to be returned, see [Expand](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionexpand)",
            "in": "query",
            "explode": false,
            "schema": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "type": "string",
                "enum": [
                  null
                ]
              }
            }
          }
        ],
        "responses": {
          "4XX": {
            "$ref": "#/components/responses/error"
          },
          "200": {
            "description": "Retrieved entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Microsoft.NAV.payrollReport"
                }
              }
            }
          }
        }
      }
    },
    "/$batch": {
      "post": {
        "summary": "Send a group of requests",
        "description": "Group multiple requests into a single request payload, see [Batch Requests](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_BatchRequests).\n\n*Please note that \"Try it out\" is not supported for this request.*",
        "tags": [
          "Batch Requests"
        ],
        "requestBody": {
          "required": true,
          "description": "Batch request",
          "content": {
            "multipart/mixed;boundary=request-separator": {
              "schema": {
                "type": "string"
              },
              "example": "--request-separator\nContent-Type: application/http\nContent-Transfer-Encoding: binary\n\nGET educations HTTP/1.1\nAccept: application/json\n\n\n--request-separator--"
            }
          }
        },
        "responses": {
          "4XX": {
            "$ref": "#/components/responses/error"
          },
          "200": {
            "description": "Batch response",
            "content": {
              "multipart/mixed": {
                "schema": {
                  "type": "string"
                },
                "example": "--response-separator\nContent-Type: application/http\n\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n{...}\n--response-separator--"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Microsoft.NAV.campMonth": {
        "type": "string",
        "title": "campMonth",
        "enum": [
          "None",
          "January",
          "February",
          "March",
          "April",
          "May",
          "June",
          "July",
          "August",
          "September",
          "October",
          "November",
          "December"
        ]
      },
      "Microsoft.NAV.campPayrollReportStatus": {
        "type": "string",
        "title": "campPayrollReportStatus",
        "enum": [
          "Created",
          "RegStarted",
          "SchemeReceived",
          "UnsolvedProblem",
          "SchemeDenied",
          "SchemeAccepted"
        ]
      },
      "Microsoft.NAV.payrollReportMemberLine": {
        "title": "payrollReportMemberLine",
        "type": "object",
        "properties": {
          "id": {
            "description": "",
            "type": "string",
            "format": "uuid",
            "example": "01234567-89ab-cdef-0123-456789abcdef"
          },
          "column": {
            "description": "Specifies the column the reported sum belongs to",
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "measure": {
            "description": "Specifies the measure af the reported sum",
            "type": "string",
            "maxLength": 10,
            "nullable": true
          },
          "description": {
            "description": "The description of the measure",
            "type": "string",
            "maxLength": 60,
            "nullable": true
          },
          "reportedSum": {
            "description": "Specifies the reported sum for the chosen column",
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "format": "decimal",
            "example": 0,
            "nullable": true
          },
          "memberReportNo": {
            "description": "Specifies the link between payroll member reports and payroll member report lines.",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "format": "int64",
            "example": "42",
            "nullable": true
          },
          "reportedBy": {
            "description": "Filter used to identify the person making the registration",
            "type": "string",
            "nullable": true
          }
        }
      },
      "Microsoft.NAV.payrollReportMemberLine-update": {
        "title": "payrollReportMemberLine (for update)",
        "type": "object",
        "properties": {
          "reportedSum": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string"
              }
            ],
            "format": "decimal",
            "example": 0,
            "nullable": true
          },
          "reportedBy": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "Microsoft.NAV.payrollReportMember": {
        "title": "payrollReportMember",
        "type": "object",
        "properties": {
          "id": {
            "description": "",
            "type": "string",
            "format": "uuid",
            "example": "01234567-89ab-cdef-0123-456789abcdef"
          },
          "reportNo": {
            "description": "Read-Only. The report indentifier",
            "type": "string",
            "maxLength": 10,
            "nullable": true
          },
          "description": {
            "description": "Read-Only. The description of the reporting batch",
            "type": "string",
            "nullable": true
          },
          "memberNo": {
            "description": "The member/company that has the report",
            "type": "string",
            "maxLength": 20
          },
          "memberName": {
            "description": "Read-Only. The name of the member/company that has the report",
            "type": "string",
            "maxLength": 100,
            "nullable": true
          },
          "status": {
            "description": "Specifies the status of the report",
            "allOf": [
              {
                "$ref": "#/components/schemas/Microsoft.NAV.campPayrollReportStatus"
              }
            ],
            "nullable": true
          },
          "reportedBy": {
            "description": "Specifies the person who made the registration",
            "type": "string",
            "maxLength": 20,
            "nullable": true
          },
          "no": {
            "description": "Specifies the link between payroll member reports and payroll member report lines",
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ],
            "format": "int64",
            "example": "42",
            "nullable": true
          }
        }
      },
      "Microsoft.NAV.payrollReportMember-update": {
        "title": "payrollReportMember (for update)",
        "type": "object",
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Microsoft.NAV.campPayrollReportStatus"
              }
            ],
            "nullable": true
          },
          "reportedBy": {
            "type": "string",
            "maxLength": 20,
            "nullable": true
          }
        }
      },
      "Microsoft.NAV.payrollReport": {
        "title": "payrollReport",
        "type": "object",
        "properties": {
          "reportNo": {
            "description": "The report indentifier",
            "type": "string",
            "maxLength": 10
          },
          "description": {
            "description": "Spedifies the description of the reporting batch",
            "type": "string",
            "maxLength": 30,
            "nullable": true
          },
          "year": {
            "description": "The year in which the report is valid",
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "validFromMonth": {
            "description": "Specifies the month from which the reporting batch applies",
            "allOf": [
              {
                "$ref": "#/components/schemas/Microsoft.NAV.campMonth"
              }
            ],
            "nullable": true
          },
          "deadline": {
            "description": "Specifies the deadline for registering the reports",
            "type": "string",
            "format": "date",
            "example": "2017-04-13",
            "nullable": true
          }
        }
      },
      "count": {
        "anyOf": [
          {
            "type": "integer",
            "minimum": 0
          },
          {
            "type": "string"
          }
        ],
        "description": "The number of entities in the collection. Available when using the [$count](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptioncount) query option."
      },
      "error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "target": {
                "type": "string"
              },
              "details": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "target": {
                      "type": "string"
                    }
                  }
                }
              },
              "innererror": {
                "type": "object",
                "description": "The structure of this object is service-specific"
              }
            }
          }
        }
      }
    },
    "parameters": {
      "company": {
        "in": "query",
        "schema": {
          "type": "string"
        },
        "name": "company",
        "description": "Kan findes i Business Central ved at &aring;bne siden regnskabsoversigt, v&aelig;lg derefter det &oslash;nskede regnskab. &Aring;bn inspectoren ved at trykke ctrl+alt+F1. Marker v&aelig;rdien i feltet &quot;id&quot; ved at triple-klikke og kopier v&aelig;rdien.",
        "required": true
      },
      "top": {
        "name": "$top",
        "in": "query",
        "description": "Show only the first n items, see [Paging - Top](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptiontop)",
        "schema": {
          "type": "integer",
          "minimum": 0
        },
        "example": 50
      },
      "skip": {
        "name": "$skip",
        "in": "query",
        "description": "Skip the first n items, see [Paging - Skip](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionskip)",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "count": {
        "name": "$count",
        "in": "query",
        "description": "Include count of items, see [Count](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptioncount)",
        "schema": {
          "type": "boolean"
        }
      },
      "search": {
        "name": "$search",
        "in": "query",
        "description": "Search items by search phrases, see [Searching](http://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_SystemQueryOptionsearch)",
        "schema": {
          "type": "string"
        }
      }
    },
    "responses": {
      "error": {
        "description": "Error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/error"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "oAuth2ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://login.microsoftonline.com/camp1.onmicrosoft.com/oauth2/v2.0/token",
            "scopes": {
              "https://api.businesscentral.dynamics.com/.default": "Default permissions"
            }
          }
        },
        "description": "<h5><i>HUSK at inds&aelig;tte dit tenant id eller dom&aelig;ne.</i></h5>"
      },
      "bearerAuth": {
        "bearerFormat": "JwT",
        "scheme": "bearer",
        "description": "<h5><i>Hvis du vil teste i Swagger UI, skal du anvende denne.</i></h5>",
        "type": "http"
      }
    }
  }
}
