swagger: '2.0' info: description: Bolagsverkets API for electronic annual report events version: '1.3' title: API for electronic annual report events contact: {name: The Swedish Companies Registration Office Group for electronic annual reports, email: emsdiar@bolagsverket.se} license: {name: Public document according to the Swedish Press Act, url: 'http://www.notisum.se/rnp/sls/lag/19490105.htm#K2P3'} host: api.bolagsverket.se basePath: /hamta-arsredovisningshandelser/v1.3 schemes: [https] tags: - {name: handelser, description: Services that retrieve information about annual report events} paths: /handelser: post: tags: [handelser] summary: Retrieve annual report events for public companies. description: The service delivers events that you already subscribe to and that you need to retrieve, e.g. if they have not arrived. operationId: handelser consumes: [application/json;charset=utf-8] produces: [application/json;charset=utf-8] parameters: - name: anropsobjekt description: URL and organisation number in: body required: true schema: {$ref: '#/definitions/HandelserAnrop'} responses: '200': description: OK schema: {$ref: '#/definitions/HandelserOK'} '400': description: Bad request schema: {$ref: '#/definitions/Fel'} '403': description: Unauthorized user of service schema: {$ref: '#/definitions/Fel'} '500': description: Unspecified technical problem schema: {$ref: '#/definitions/Fel'} '503': description: The service is temporarily unavailable schema: {$ref: '#/definitions/Fel'} '504': description: Timeout schema: {$ref: '#/definitions/Fel'} definitions: Upplysning: type: object description: Contains further details on errors etc. properties: kod: {type: integer, format: int32, description: Code that describes the kind of information. Described in a separate document.} text: {type: string, description: Text that leaves further information.} typ: type: string description: Classification of the information - info, warning or error. enum: [info, warn, error] required: [kod, text, typ] Fel: type: object description: Provides detailed error information. properties: kod: {type: integer, format: int32, description: Code that describes the error. Described in a separate document.} text: {type: string, description: Text that leaves further information about the error.} detaljinformation: type: array description: Detailed information about the error items: {$ref: '#/definitions/Upplysning'} required: [kod, text] HandelserAnrop: type: object description: Request object for the annual report event service properties: url: {description: URL for subscription to annual report events., type: string} orgnr: type: array items: {description: Organisation numbers for which events are to be retrieved., type: string, pattern: '[0-9]{10}'} fromtidpunkt: {description: Start timestamp for annual report events., type: string, format: date-time} tomtidpunkt: {description: End timestamp for annual report events., type: string, format: date-time} required: [url] HandelserOK: type: object description: Response object for the annual report event service. properties: meddelanden: type: array items: {$ref: '#/definitions/Handelse'} Handelse: type: object description: An annual report event. properties: typ: {type: string, maxLength: 20, description: Type of event.} id: {type: string, maxLength: 40, description: The identity of the event in the form of the organization number of the public company.} nr: {type: integer, format: int64, description: Sequence number of the event.} tid: {type: string, format: date-time, description: Time when the event occurred.} data: {$ref: '#/definitions/Arsredovisningshandelse'} required: [typ, id, nr, tid, data] Arsredovisningshandelse: type: object description: Information on status changes for electronically submitted annual reports. properties: version: {type: string, maxLength: 10, pattern: '[0-9]+\.[0-9]+', description: 'Version of the event, not present means version 1.0.'} idnummer: {type: string, maxLength: 20, description: Unique identification number for the document submitted. Deprecated - use instead handlingsinfo (handling->arsredovisning) -> idnummer} idnummerRevisionsberattelse: {type: string, maxLength: 20, description: Unique identification number for any separate auditor's report that was submitted. Deprecated - use instead handlingsinfo (handling->revisionsberattelse) -> idnummer} handlingsinfo: type: array description: Unique identification number for any separate auditor's report that was submitted. items: properties: handling: type: string description: Specifies the type of document, eg arsredovisning (annual report) enum: [arsredovisning, revisionsberattelse, faststallelseintyg] idnummer: {type: string, maxLength: 20, description: Unique identification number for the document submitted.} kontrollsumma: type: object description: Contains the checksum, algorithm and possible information in case an error has occurred for a specific document. properties: digest: {type: string, format: byte, description: The checksum contained in the file., maxLength: 44} algoritm: {type: string, description: Algoritm för att generera kontrollsumman.} upplysning: {type: string, description: An information is displayed when the checksum in the file does not match the contents of the file.} required: [digest, algoritm] minItems: 1 required: [handling, idnummer] status: type: string description: Current status of the annual report. enum: [arsred_inkommen, arsred_registrerad, arsred_avslutad_ej_registrerad, arsred_forelaggande_skickat, arsred_komplettering_inkommen] required: [version, handlingsinfo, status] externalDocs: {description: Information aboud electronic annual reports, url: 'http://bolagsverket.se/om/oss/utveckling-av-digitala-tjanster/digital-ingivning'}