{"components":{"schemas":{"AddressInformation":{"description":"Address of the Bankruptcy Administrator","properties":{"address":{"description":"Address","type":"string"},"city":{"description":"City","type":"string"},"coAddress":{"description":"C/O Address","type":"string"},"zipCode":{"description":"Postal Code","type":"string"}},"type":"object"},"AppealDetails":{"description":"Information about how an appeal can be done against opening of reconstruction","properties":{"latestDateForAppeal":{"description":"Latest date to appeal against a cancellation/opening of bankruptcy","type":"string"},"nonSwedishCourtCountryCode":{"description":"Country of foreign court","type":"string"},"nonSwedishCourtName":{"description":"Foreign court where the cancellation/opening of bankruptcy can be appealed","type":"string"},"swedishCourtCode":{"description":"Court code for Swedish court where cancellation/opening of bankruptcy can be appealed","type":"string"}},"type":"object"},"BadRequest":{"description":"Returned when something is wrong in the request, e.g. failed argument validation or missed argument","properties":{"attributes":{"description":"Invalid attributes","items":{"$ref":"#/components/schemas/RequestAttribute"},"type":"array"},"error":{"default":"BadRequest","description":"Error name","type":"string"},"message":{"default":"Required arguments are missing in the request","description":"Description of the request error","type":"string"}},"type":"object"},"Bankruptcy":{"description":"Information about bankruptcy processes","properties":{"appealAgainstCancellationOfBankruptcyDetails":{"allOf":[{"$ref":"#/components/schemas/AppealDetails"}],"description":"Information about how an appeal can be done against cancellation of bankruptcy"},"appealAgainstOpeningOfBankruptcyDetails":{"allOf":[{"$ref":"#/components/schemas/AppealDetails"}],"description":"Information about how an appeal can be done against opening of bankruptcy"},"bankruptcyAdministrator":{"allOf":[{"$ref":"#/components/schemas/BankruptcyAdministrator"}],"description":"Bankruptcy administrator"},"cancelledByNonSwedishCourtCountryCode":{"description":"Country code for the foreign court","type":"string"},"cancelledByNonSwedishCourtName":{"description":"Foreign court which has cancelled earlier opened bankruptcy","type":"string"},"cancelledBySwedishCourtCode":{"description":"Code for Swedish court which has cancelled earlier opened situation","type":"string"},"cancelledDate":{"description":"Decision date of cancellation of situation","type":"string"},"changeDate":{"description":"Date for when the record was changed","type":"string"},"companyNameNotInCompanyHouseRegister":{"description":"Name of the company (only if the company is not registered by the Swedish Company Registration Office)","type":"string"},"concludedDate":{"description":"Date when the situation was ended","type":"string"},"concludedWithSurplus":{"description":"Set to true if there was a surplus at the conclusion of the bankruptcy - a liquidation will open","type":"boolean"},"courtCaseNumber":{"description":"Number of court case for the bankruptcy","type":"string"},"dataSourcing":{"allOf":[{"$ref":"#/components/schemas/DataSourcing"}],"description":"Holds internal case number for referencing potential corrections"},"debtorAddressInformation":{"allOf":[{"$ref":"#/components/schemas/DebtorAddressInformation"}],"description":"Address of debtor"},"insolvencyProceedingsTypes":{"allOf":[{"$ref":"#/components/schemas/InsolvencyProceedingsTypes"}],"description":"Insolvency proceedings types"},"latestClaimDate":{"description":"Latest date to report claims in the bankruptcy","type":"string"},"nonSwedishCourtCountryCode":{"description":"Country code of foreign court which handles (opened) the bankruptcy","type":"string"},"nonSwedishCourtName":{"description":"Name of foreign court which handles (opened) the bankruptcy","type":"string"},"openedDate":{"description":"Date when the situation was opened","type":"string"},"registrationDateTime":{"description":"Date and time of registration by Company Registration Office","type":"string"},"situationStatusCode":{"description":"Code describing a situation status which has or had effect on the life of the company","type":"string"},"situationStatusDate":{"description":"Registration date of the situation status","type":"string"},"swedishDistrictCourtCode":{"description":"Code for district court which handles the situation","type":"string"}},"type":"object"},"BankruptcyAdministrator":{"description":"Bankruptcy administrator","properties":{"addressInformation":{"allOf":[{"$ref":"#/components/schemas/AddressInformation"}],"description":"Address of the Bankruptcy Administrator"},"dataSourcing":{"allOf":[{"$ref":"#/components/schemas/DataSourcing"}],"description":"Holds internal case number for referencing potential corrections"},"email":{"description":"Email address of bankruptcy administrator","type":"string"},"firstName":{"description":"First name","type":"string"},"fullName":{"description":"Full name","type":"string"},"surName":{"description":"Last name","type":"string"}},"type":"object"},"CompanyStatus":{"properties":{"changeDate":{"description":"Date for when the record was changed","type":"string"},"companyId":{"description":"Company identifier (company registration number / organization number)","type":"string"},"companyInCompanyHouseRegister":{"description":"Set to true if the company is a company registered by Swedish Bolagsverket","type":"boolean"},"situation":{"allOf":[{"$ref":"#/components/schemas/Situation"}],"description":"Situations"},"situationStatusCode":{"description":"Most current status code, based on all the situations displayed in the api","type":"string"},"situationStatusDate":{"description":"Registration date and time of the situation status code","type":"string"}},"type":"object"},"CompanyStatusResults":{"description":"Company status results","properties":{"records":{"description":"found records in company status","items":{"$ref":"#/components/schemas/CompanyStatus"},"type":"array"},"status":{"$ref":"#/components/schemas/SearchResultStatus"}},"type":"object"},"DataSourcing":{"description":"Holds internal case number for referencing potential corrections","properties":{"caseNumber":{"description":"Internal case number for referencing potential corrections","type":"string"},"isCorrection":{"description":"Signals that this data is a correction of previous update","type":"boolean"},"isHistoricalCorrection":{"description":"Signals that this data is a historical correction of an earlier case number","type":"boolean"}},"type":"object"},"DebtorAddressInformation":{"description":"Address of debtor","properties":{"address":{"description":"Address","type":"string"},"city":{"description":"City","type":"string"},"coAddress":{"description":"C/O Address","type":"string"},"country":{"description":"Country","type":"string"},"countryCode":{"description":"Country code","type":"string"},"dataSourcing":{"allOf":[{"$ref":"#/components/schemas/DataSourcing"}],"description":"Holds internal case number for referencing potential corrections"},"zipCode":{"description":"Postal Code","type":"string"}},"type":"object"},"InsolvencyProceedingsTypes":{"description":"Insolvency proceedings types","properties":{"mainProceedings":{"description":"True means main proceedings","type":"boolean"},"secondaryProceedings":{"description":"True means secondary proceedings","type":"boolean"},"territorialProceedings":{"description":"True means territorial insolvency proceedings","type":"boolean"}},"type":"object"},"Liquidation":{"description":"Information about liquidation processes","properties":{"cancelledBySwedishCourtCode":{"description":"Code for Swedish court which has cancelled earlier opened situation","type":"string"},"cancelledDate":{"description":"Decision date of cancellation of situation","type":"string"},"changeDate":{"description":"Date for when the record was changed","type":"string"},"concludedDate":{"description":"Date when the situation was ended","type":"string"},"continuedDate":{"description":"Continued Date","type":"string"},"dataSourcing":{"allOf":[{"$ref":"#/components/schemas/DataSourcing"}],"description":"Holds internal case number for referencing potential corrections"},"enforcedByCompanyHouse":{"description":"True when liquidation is effected by Swedish Company House","type":"boolean"},"fromDate":{"description":"Liquidation from date - for liquidation by company´s own decision","type":"string"},"liquidationDecisionBy":{"description":"Liquidation decided by","type":"string"},"openedDate":{"description":"Date when the situation was opened","type":"string"},"registrationDateTime":{"description":"Date and time of registration by Company Registration Office","type":"string"},"removedDate":{"description":"Liquidation removed date (for voluntary liquidation)","type":"string"},"situationStatusCode":{"description":"Code describing a situation status which has or had effect on the life of the company","type":"string"},"situationStatusDate":{"description":"Registration date of the situation status","type":"string"},"swedishDistrictCourtCode":{"description":"Code for district court which handles the situation","type":"string"}},"type":"object"},"Reconstructor":{"description":"Reconstructor information","properties":{"addressInformation":{"allOf":[{"$ref":"#/components/schemas/ReconstructorAddressInformation"}],"description":"Reconstructor address information"},"dataSourcing":{"allOf":[{"$ref":"#/components/schemas/DataSourcing"}],"description":"Holds internal case number for referencing potential corrections"},"email":{"description":"Email address of the reconstructor","type":"string"},"firstName":{"description":"First Name","type":"string"},"fullName":{"description":"Full Name","type":"string"},"surName":{"description":"Last Name","type":"string"}},"type":"object"},"ReconstructorAddressInformation":{"description":"Reconstructor address information","properties":{"address":{"description":"Address","type":"string"},"city":{"description":"City","type":"string"},"coAddress":{"description":"C/O Address","type":"string"},"country":{"description":"Country","type":"string"},"countryCode":{"description":"Country code","type":"string"},"zipCode":{"description":"Postal Code","type":"string"}},"type":"object"},"RequestAttribute":{"description":"Incorrect attribute of request","properties":{"attribute":{"description":"Parameter name","type":"string"},"value":{"description":"Parameter value, subject for validation","type":"string"}},"type":"object"},"ResolutionAndReconstruction":{"description":"Information about resolution and reconstruction processes","properties":{"appealAgainstCancellationOfReconstructionDetails":{"allOf":[{"$ref":"#/components/schemas/AppealDetails"}],"description":"Information about how an appeal can be done against cancellation of reconstruction"},"appealAgainstOpeningOfReconstructionDetails":{"allOf":[{"$ref":"#/components/schemas/AppealDetails"}],"description":"Information about how an appeal can be done against opening of reconstruction"},"cancelledByNonSwedishCourtCountryCode":{"description":"Country code for the foreign court","type":"string"},"cancelledByNonSwedishCourtName":{"description":"Foreign court which has cancelled earlier opened reconstruction","type":"string"},"cancelledBySwedishCourtCode":{"description":"Code for Swedish court which has cancelled earlier opened situation","type":"string"},"cancelledDate":{"description":"Decision date of cancellation of situation","type":"string"},"changeDate":{"description":"Date for when the record was changed","type":"string"},"companyNameNotInCompanyHouseRegister":{"description":"Name of the company (only if the company is not registered by the Swedish Company Registration Office)","type":"string"},"concludedDate":{"description":"Date when the situation was ended","type":"string"},"courtCaseNumber":{"description":"Number of court case for the reconstruction","type":"string"},"dataSourcing":{"allOf":[{"$ref":"#/components/schemas/DataSourcing"}],"description":"Holds internal case number for referencing potential corrections"},"insolvencyProceedingsTypes":{"allOf":[{"$ref":"#/components/schemas/InsolvencyProceedingsTypes"}],"description":"Insolvency proceedings types"},"latestClaimDate":{"description":"Latest date to report claims in the reconstruction","type":"string"},"nonSwedishCourtCountryCode":{"description":"Country code of foreign court which handles the reconstruction","type":"string"},"nonSwedishCourtName":{"description":"Name of foreign court which handles the reconstruction","type":"string"},"openedDate":{"description":"Date when the situation was opened","type":"string"},"reconstructor":{"allOf":[{"$ref":"#/components/schemas/Reconstructor"}],"description":"Reconstructor information"},"registrationDateTime":{"description":"Date and time of registration by Company Registration Office","type":"string"},"situationStatusCode":{"description":"Code describing a situation status which has or had effect on the life of the company","type":"string"},"situationStatusDate":{"description":"Registration date of the situation status","type":"string"},"swedishDistrictCourtCode":{"description":"Code for district court which handles the situation","type":"string"}},"type":"object"},"SearchResultStatus":{"description":"Description of search result","properties":{"code":{"description":"0 - found, 1 - not found","format":"int32","type":"integer"},"text":{"description":"search result description","type":"string"}},"type":"object"},"ServerError":{"description":"Internal server error","properties":{"error":{"default":"InternalServerError","description":"Error name","type":"string"},"message":{"default":"An internal server error occurred, please contact the system administrator with information on the error","description":"Description of the request error","type":"string"}},"type":"object"},"Situation":{"description":"Situations","properties":{"bankruptcy":{"description":"Information about bankruptcy processes","items":{"$ref":"#/components/schemas/Bankruptcy"},"type":"array"},"liquidation":{"description":"Information about liquidation processes","items":{"$ref":"#/components/schemas/Liquidation"},"type":"array"},"resolutionAndReconstruction":{"description":"Information about resolution and reconstruction processes","items":{"$ref":"#/components/schemas/ResolutionAndReconstruction"},"type":"array"}},"type":"object"}},"securitySchemes":{"OAuth2":{"description":"All requests require authentication via OAuth2 client credentials.\n\nBase URL: https://api.roaring.io\n\n1. Obtain a Consumer key and Consumer secret from https://developer.roaring.io/keys\n   (separate sandbox and production pairs).\n2. Request an access token by POSTing to the token endpoint:\n\n   POST https://api.roaring.io/token\n   Content-Type: application/x-www-form-urlencoded\n   Authorization: Basic base64(consumer-key:consumer-secret)\n\n   body: grant_type=client_credentials\n\n   Tokens are valid for 3600 seconds. The response contains an access_token of\n   type Bearer.\n3. Send the access token on every API call:\n\n   Authorization: Bearer <access_token>","flows":{"clientCredentials":{"tokenUrl":"https://api.roaring.io/token","scopes":{}}},"type":"oauth2"}}},"info":{"description":"Fetch company status information\n\nAll requests require authentication via OAuth2 client credentials.\n\nBase URL: https://api.roaring.io\n\n1. Obtain a Consumer key and Consumer secret from https://developer.roaring.io/keys\n   (separate sandbox and production pairs).\n2. Request an access token by POSTing to the token endpoint:\n\n   POST https://api.roaring.io/token\n   Content-Type: application/x-www-form-urlencoded\n   Authorization: Basic base64(consumer-key:consumer-secret)\n\n   body: grant_type=client_credentials\n\n   Tokens are valid for 3600 seconds. The response contains an access_token of\n   type Bearer.\n3. Send the access token on every API call:\n\n   Authorization: Bearer <access_token>","title":"Company Status","version":"1.0","x-logo":{"url":"https://assets.roaring.io/svg/company-status-icon-v3.1.svg"}},"openapi":"3.0.1","paths":{"/{companyId}":{"get":{"description":"It supports date parameter to find company status information up to date","operationId":"view","parameters":[{"description":"id of company","in":"path","name":"companyId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyStatusResults"}}},"description":"OK, successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Returned when something is wrong in the request, e.g. failed argument validation or arguments are missing"},"404":{"description":"Requested resource could not be found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerError"}}},"description":"An internal server error occurred, please contact the system administrator with information on the error"}},"summary":"Find company status information by company id","tags":["CompanyStatusSe"]}}},"security":[{"OAuth2":[]}],"servers":[{"url":"https://api.roaring.io/se/company/status/1.0"}],"x-category":"company","x-countries":["se"],"x-id":"CompanyStatusApiSe"}