{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"https://backoffice.anleggsregisteret.no","description":"Generated server url"}],"tags":[{"name":"Anleggsklasser","description":"API for informasjon om anleggsklasser"},{"name":"Idrettsmoms","description":"API for informasjon brukt i behandlingen av momsrefusjon for idrettsanlegg"},{"name":"Anleggsstatuser","description":"API for informasjon om anleggsstatuser"},{"name":"Anlegg","description":"API for informasjon om anlegg"},{"name":"Anleggskategorier","description":"API for informasjon om anleggskategorier og anleggstyper i èn kategori"},{"name":"Fylker og kommuner","description":"API for å hente listen over fylkene og fylkenes kommuner"}],"paths":{"/vat-api/vatRefundSubsidyRequestsOnFacility/{facilityId}":{"get":{"tags":["Idrettsmoms"],"summary":"Hent liste over søknader på et anleggsnummer","description":"Liste over søknader for idrettsmoms på et anleggsnummer.","operationId":"listSubsidyRequestForFacility","parameters":[{"name":"facilityId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubsidyRequestListForVatRefundDTO"}}}}}}}},"/vat-api/vatRefundSubsidyRequestAuditorDocument/{subsidyRequestId}":{"get":{"tags":["Idrettsmoms"],"summary":"Hent revisorrapport(ene) for søknad","description":"Henter revisorrapporten(e) fra revisorkontrollen.","operationId":"findSubsidyRequestAuditorDocument","parameters":[{"name":"subsidyRequestId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubsidyRequestForVatRefundAuditorFileDTO"}}}}}}}},"/vat-api/vatRefundSubsidyRequest/{subsidyRequestId}":{"get":{"tags":["Idrettsmoms"],"summary":"Hent èn søknad","description":"Henter informasjon fra èn søknad/sluttrapport etter søknadsnummer.","operationId":"findSubsidyRequestsForVATRefund","parameters":[{"name":"subsidyRequestId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SubsidyRequestForVatRefundDTO"}}}}}}},"/api/facilityStatuses":{"get":{"tags":["Anleggsstatuser"],"summary":"Hent anleggsstatus","description":"Henter en liste over statuser.","operationId":"getFacilityStatuses","responses":{"200":{"description":"Statusen ble funnet","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityStatusDTO"}}}}},"404":{"description":"Statusen finnes ikke","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityStatusDTO"}}}}}}}},"/api/facilityClasses":{"get":{"tags":["Anleggsklasser"],"summary":"Hent anleggsklasser","description":"Henter en liste over klasser.","operationId":"findAllClasses","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityClassDTO"}}}}}}}},"/api/facilityCategories":{"get":{"tags":["Anleggskategorier"],"summary":"Liste over anleggskategorier","description":"Henter en liste over alle anleggskategorier.","operationId":"findAllCategories","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityCategoryDTO"}}}}}}}},"/api/facilityCategories/{categoryIds}/facilityTypes":{"get":{"tags":["Anleggskategorier"],"summary":"Liste over anleggstyper i en kategori","description":"Henter en liste over alle anleggstypene i en kategori.","operationId":"findFacilityTypes","parameters":[{"name":"categoryIds","in":"path","required":true,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityTypeDTO"}}}}}}}},"/api/facilities":{"get":{"tags":["Anlegg"],"summary":"Hent liste over anlegg","description":"Henter en paginert liste over alle eksisterende anlegg etter gitte søkeparametre.","operationId":"getFacilities","parameters":[{"name":"categoryId","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"typeId","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"countyId","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"municipalityId","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"classId","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"freeSearch","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["Planlagt","Eksisterende","Nedlagt","Ble ikke realisert"]}}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":20,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/SliceFacilityDTO"},{"type":"array","items":{"$ref":"#/components/schemas/FacilityDTO"}}]}}}}}}},"/api/facilitiesCount":{"get":{"tags":["Anlegg"],"summary":"Vis antall anlegg","description":"Viser antall eksisterende anlegg etter satte parametere.","operationId":"getFacilitiesCount","parameters":[{"name":"categoryId","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"typeId","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"countyId","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"municipalityId","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"classId","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}},{"name":"freeSearch","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["Planlagt","Eksisterende","Nedlagt","Ble ikke realisert"]}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FacilityCountDTO"}}}}}}},"/api/facilities/{facilityIds}":{"get":{"tags":["Anlegg"],"summary":"Hent ett anlegg","description":"Viser detaljer på ett anlegg.","operationId":"getFacilityDetails","parameters":[{"name":"facilityIds","in":"path","required":true,"schema":{"type":"array","items":{"type":"integer","format":"int64"}}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FacilityDetailDTO"}}}}}}}},"/api/counties":{"get":{"tags":["Fylker og kommuner"],"summary":"Hent fylkene","description":"Henter en listen over fylker.","operationId":"findCounties","responses":{"200":{"description":"Fylkene ble funnet","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CountyDTO"}}}}},"404":{"description":"Fylkene finnes ikke","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CountyDTO"}}}}}}}},"/api/counties/{countyId}/municipalities":{"get":{"tags":["Fylker og kommuner"],"summary":"Hent kommunene i ett fylke","description":"Henter en listen over kommuner.","operationId":"findMunicipalities","parameters":[{"name":"countyId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"Kommunene ble funnet","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MunicipalityDTO"}}}}},"404":{"description":"Kommunene finnes ikke","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MunicipalityDTO"}}}}}}}}},"components":{"schemas":{"SubsidyRequestListForVatRefundDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"description":{"type":"string"},"year":{"type":"integer","format":"int32"}}},"SubsidyRequestForVatRefundAuditorFileDTO":{"type":"object","properties":{"auditorReportFileName":{"type":"string"},"auditorReportContentType":{"type":"string"},"auditorReportFile":{"type":"string","format":"byte"}}},"SubsidyRequestForVatRefundDTO":{"type":"object","properties":{"subsidyRequestId":{"type":"integer","format":"int64"},"subsidyRequestName":{"type":"string"},"responsibleName":{"type":"string"},"applicantOrganizationNo":{"type":"integer","format":"int64"},"applicantOrganizationName":{"type":"string"},"applicantBusinessAddress1":{"type":"string"},"applicantBusinessAddress2":{"type":"string"},"applicantBusinessAddress3":{"type":"string"},"applicantBusinessZipcode":{"type":"string"},"applicantBusinessCity":{"type":"string"},"applicantPostalAddress1":{"type":"string"},"applicantPostalAddress2":{"type":"string"},"applicantPostalAddress3":{"type":"string"},"applicantPostalZipcode":{"type":"string"},"applicantPostalCity":{"type":"string"},"municipalityApproved":{"type":"boolean"},"countyConclusion":{"type":"string"},"constructionStart":{"type":"string","format":"date"},"constructionEnd":{"type":"string","format":"date"},"subsidyRequestAmount":{"type":"integer","format":"int64"},"subsidyRequestComments":{"type":"string"},"subsidyRequestBankAccountNumber":{"type":"string"},"reportingBankAccountNumber":{"type":"string"},"municipalityWorkProgressStatus":{"type":"string"},"countyWorkProgressStatus":{"type":"string"},"facilityNumber":{"type":"integer","format":"int64"},"facilityName":{"type":"string"},"facilityClass":{"type":"string"},"facilityType":{"type":"string"},"facilityTypeId":{"type":"integer","format":"int64"},"facilityCategory":{"type":"string"},"facilityCategoryId":{"type":"integer","format":"int64"},"facilityOwnerOrganizationNumber":{"type":"string"},"facilityOwnerOrganizationName":{"type":"string"},"municipalityName":{"type":"string"},"municipalityNo":{"type":"string"},"countyName":{"type":"string"},"countyNo":{"type":"string"},"totalGrantAmount":{"type":"integer","format":"int64"},"totalPaymentAmount":{"type":"integer","format":"int64"},"reportingId":{"type":"integer","format":"int64"},"reportingDate":{"type":"string","format":"date"},"reportingStatus":{"type":"string"},"reportPurchasesEligible":{"type":"integer","format":"int64"},"reportPurchasesNotEligible":{"type":"integer","format":"int64"},"reportVatEligible":{"type":"integer","format":"int64"},"reportVatNotEligible":{"type":"integer","format":"int64"},"reportDeductibleVat":{"type":"integer","format":"int64"},"reportVoluntaryWorkEligible":{"type":"integer","format":"int64"},"reportVoluntaryWorkNotEligible":{"type":"integer","format":"int64"},"auditorStatus":{"type":"string"},"vatApprovedByAuditor":{"type":"boolean"},"accountingApprovedByAuditor":{"type":"boolean"},"auditorReportOK":{"type":"boolean"},"auditorType":{"type":"string"},"auditorDate":{"type":"string","format":"date"},"municipalityControlStatus":{"type":"string"},"municipalityControlAccountingAttachmentsOK":{"type":"boolean"},"municipalityControlFacilityOK":{"type":"boolean"},"municipalityControlMeasurementsOK":{"type":"boolean"},"municipalityControlSpecialDocumentationOK":{"type":"boolean"},"municipalityControlDate":{"type":"string","format":"date"}}},"FacilityStatusDTO":{"type":"object","properties":{"label":{"type":"string"},"facilityStatus":{"type":"string","enum":["Planlagt","Eksisterende","Nedlagt","Ble ikke realisert"]},"labelKey":{"type":"string"}}},"FacilityClassDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"description":{"type":"string"},"descriptionKey":{"type":"string"}}},"FacilityCategoryDTO":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"integer","format":"int64"},"nameKey":{"type":"string"}}},"FacilityTypeDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"description":{"type":"string"},"descriptionKey":{"type":"string"},"facilityCategoryId":{"type":"integer","format":"int64"}}},"FacilityDTO":{"type":"object","properties":{"facilityId":{"type":"integer","format":"int64"},"name":{"type":"string"},"categoryId":{"type":"integer","format":"int64"},"categoryDescription":{"type":"string"},"categoryDescriptionKey":{"type":"string"},"classId":{"type":"integer","format":"int64"},"classDescription":{"type":"string"},"classDescriptionKey":{"type":"string"},"typeId":{"type":"integer","format":"int64"},"typeDescription":{"type":"string"},"typeDescriptionKey":{"type":"string"},"municipalityName":{"type":"string"},"municipalityId":{"type":"integer","format":"int64"},"countyName":{"type":"string"},"countyId":{"type":"integer","format":"int64"},"buildingYear":{"type":"integer","format":"int32"},"lastRebuildingYear":{"type":"integer","format":"int32"},"latitude":{"type":"number","format":"double"},"longitude":{"type":"number","format":"double"},"ownerName":{"type":"string"},"ownerOrgno":{"type":"string"},"totalGrants":{"type":"integer","format":"int64"},"totalRevoked":{"type":"integer","format":"int64"},"totalPayments":{"type":"integer","format":"int64"},"operatorName":{"type":"string"},"operatorOrgno":{"type":"string"},"additionalTextLabel":{"type":"string"},"additionalText":{"type":"string"},"status":{"type":"string","enum":["Planlagt","Eksisterende","Nedlagt","Ble ikke realisert"]},"exportFacilityStatus":{"type":"string"},"statusKey":{"type":"string"}}},"PageableObject":{"type":"object","properties":{"offset":{"type":"integer","format":"int64"},"paged":{"type":"boolean"},"pageNumber":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"sort":{"$ref":"#/components/schemas/SortObject"},"unpaged":{"type":"boolean"}}},"SliceFacilityDTO":{"type":"object","properties":{"first":{"type":"boolean"},"last":{"type":"boolean"},"size":{"type":"integer","format":"int32"},"content":{"type":"array","items":{"$ref":"#/components/schemas/FacilityDTO"}},"number":{"type":"integer","format":"int32"},"sort":{"$ref":"#/components/schemas/SortObject"},"numberOfElements":{"type":"integer","format":"int32"},"pageable":{"$ref":"#/components/schemas/PageableObject"},"empty":{"type":"boolean"}}},"SortObject":{"type":"object","properties":{"empty":{"type":"boolean"},"sorted":{"type":"boolean"},"unsorted":{"type":"boolean"}}},"FacilityCountDTO":{"type":"object","properties":{"facilityCount":{"type":"integer","format":"int32"}}},"FacilityDetailDTO":{"type":"object","properties":{"facilityId":{"type":"integer","format":"int64"},"name":{"type":"string"},"categoryId":{"type":"integer","format":"int64"},"categoryDescription":{"type":"string"},"categoryDescriptionKey":{"type":"string"},"classId":{"type":"integer","format":"int64"},"classDescription":{"type":"string"},"classDescriptionKey":{"type":"string"},"typeId":{"type":"integer","format":"int64"},"typeDescription":{"type":"string"},"typeDescriptionKey":{"type":"string"},"municipalityName":{"type":"string"},"municipalityId":{"type":"integer","format":"int64"},"countyName":{"type":"string"},"countyId":{"type":"integer","format":"int64"},"buildingYear":{"type":"integer","format":"int32"},"lastRebuildingYear":{"type":"integer","format":"int32"},"latitude":{"type":"number","format":"double"},"longitude":{"type":"number","format":"double"},"ownerName":{"type":"string"},"ownerOrgno":{"type":"string"},"totalGrants":{"type":"integer","format":"int64"},"totalRevoked":{"type":"integer","format":"int64"},"totalPayments":{"type":"integer","format":"int64"},"operatorName":{"type":"string"},"operatorOrgno":{"type":"string"},"additionalTextLabel":{"type":"string"},"additionalText":{"type":"string"},"status":{"type":"string","enum":["Planlagt","Eksisterende","Nedlagt","Ble ikke realisert"]},"measurements":{"type":"array","items":{"$ref":"#/components/schemas/MeasurementDTO"}},"grants":{"type":"array","items":{"$ref":"#/components/schemas/GrantDTO"}},"exportFacilityStatus":{"type":"string"},"statusKey":{"type":"string"}}},"GrantDTO":{"type":"object","properties":{"amount":{"type":"integer","format":"int64"},"year":{"type":"integer","format":"int32"}}},"MeasurementDTO":{"type":"object","properties":{"description":{"type":"string"},"descriptionKey":{"type":"string"},"unit":{"type":"string"},"unitKey":{"type":"string"},"amount":{"type":"number","format":"double"}}},"CountyDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"}}},"MunicipalityDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"countyId":{"type":"integer","format":"int64"}}}}}}