API for subscription to annual report events

Prenumeration

avslutaPrenumeration

Terminate subscription to annual report events

The service handles requests for termination of subscriptions to annual report events.


/handelseprenumeration

Usage and SDK Samples

curl -X DELETE "https://api.bolagsverket.se/hantera-arsredovisningsprenumerationer/v1.1/handelseprenumeration"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PrenumerationApi;

import java.io.File;
import java.util.*;

public class PrenumerationApiExample {

    public static void main(String[] args) {
        
        PrenumerationApi apiInstance = new PrenumerationApi();
        AvslutaPrenumerationAnrop anropsobjekt = ; // AvslutaPrenumerationAnrop | URL and organisation number
        try {
            apiInstance.avslutaPrenumeration(anropsobjekt);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#avslutaPrenumeration");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PrenumerationApi;

public class PrenumerationApiExample {

    public static void main(String[] args) {
        PrenumerationApi apiInstance = new PrenumerationApi();
        AvslutaPrenumerationAnrop anropsobjekt = ; // AvslutaPrenumerationAnrop | URL and organisation number
        try {
            apiInstance.avslutaPrenumeration(anropsobjekt);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#avslutaPrenumeration");
            e.printStackTrace();
        }
    }
}
AvslutaPrenumerationAnrop *anropsobjekt = ; // URL and organisation number

PrenumerationApi *apiInstance = [[PrenumerationApi alloc] init];

// Terminate subscription to annual report events
[apiInstance avslutaPrenumerationWith:anropsobjekt
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiForSubscriptionToAnnualReportEvents = require('api_for_subscription_to_annual_report_events');

var api = new ApiForSubscriptionToAnnualReportEvents.PrenumerationApi()

var anropsobjekt = ; // {AvslutaPrenumerationAnrop} URL and organisation number


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.avslutaPrenumeration(anropsobjekt, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class avslutaPrenumerationExample
    {
        public void main()
        {
            
            var apiInstance = new PrenumerationApi();
            var anropsobjekt = new AvslutaPrenumerationAnrop(); // AvslutaPrenumerationAnrop | URL and organisation number

            try
            {
                // Terminate subscription to annual report events
                apiInstance.avslutaPrenumeration(anropsobjekt);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PrenumerationApi.avslutaPrenumeration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PrenumerationApi();
$anropsobjekt = ; // AvslutaPrenumerationAnrop | URL and organisation number

try {
    $api_instance->avslutaPrenumeration($anropsobjekt);
} catch (Exception $e) {
    echo 'Exception when calling PrenumerationApi->avslutaPrenumeration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PrenumerationApi;

my $api_instance = WWW::SwaggerClient::PrenumerationApi->new();
my $anropsobjekt = WWW::SwaggerClient::Object::AvslutaPrenumerationAnrop->new(); # AvslutaPrenumerationAnrop | URL and organisation number

eval { 
    $api_instance->avslutaPrenumeration(anropsobjekt => $anropsobjekt);
};
if ($@) {
    warn "Exception when calling PrenumerationApi->avslutaPrenumeration: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PrenumerationApi()
anropsobjekt =  # AvslutaPrenumerationAnrop | URL and organisation number

try: 
    # Terminate subscription to annual report events
    api_instance.avsluta_prenumeration(anropsobjekt)
except ApiException as e:
    print("Exception when calling PrenumerationApi->avslutaPrenumeration: %s\n" % e)

Parameters

Body parameters
Name Description
anropsobjekt *

Responses

Status: 202 - Accepted

Status: 400 - Bad request

Status: 403 - Unauthorized user of service

Status: 500 - Unspecified technical problem

Status: 503 - The service is temporarily unavailable

Status: 504 - Timeout


hamtaPrenumerationer

Retrieve subscriptions

The service retrieves subscriptions available for a specific url, org. number, from date, end date or combinations thereof. At least one (1) search criteria must be specified.


/handelseprenumeration

Usage and SDK Samples

curl -X GET "https://api.bolagsverket.se/hantera-arsredovisningsprenumerationer/v1.1/handelseprenumeration?url=&orgnr=&from=&tom="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PrenumerationApi;

import java.io.File;
import java.util.*;

public class PrenumerationApiExample {

    public static void main(String[] args) {
        
        PrenumerationApi apiInstance = new PrenumerationApi();
        String url = url_example; // String | URL
        String orgnr = orgnr_example; // String | Organization number for subscription.
        date from = 2013-10-20; // date | From date when the subscription was registered
        date tom = 2013-10-20; // date | End date when the subscription was registered
        try {
            HamtaPrenumerationerOK result = apiInstance.hamtaPrenumerationer(url, orgnr, from, tom);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#hamtaPrenumerationer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PrenumerationApi;

public class PrenumerationApiExample {

    public static void main(String[] args) {
        PrenumerationApi apiInstance = new PrenumerationApi();
        String url = url_example; // String | URL
        String orgnr = orgnr_example; // String | Organization number for subscription.
        date from = 2013-10-20; // date | From date when the subscription was registered
        date tom = 2013-10-20; // date | End date when the subscription was registered
        try {
            HamtaPrenumerationerOK result = apiInstance.hamtaPrenumerationer(url, orgnr, from, tom);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#hamtaPrenumerationer");
            e.printStackTrace();
        }
    }
}
String *url = url_example; // URL (optional)
String *orgnr = orgnr_example; // Organization number for subscription. (optional)
date *from = 2013-10-20; // From date when the subscription was registered (optional)
date *tom = 2013-10-20; // End date when the subscription was registered (optional)

PrenumerationApi *apiInstance = [[PrenumerationApi alloc] init];

// Retrieve subscriptions
[apiInstance hamtaPrenumerationerWith:url
    orgnr:orgnr
    from:from
    tom:tom
              completionHandler: ^(HamtaPrenumerationerOK output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiForSubscriptionToAnnualReportEvents = require('api_for_subscription_to_annual_report_events');

var api = new ApiForSubscriptionToAnnualReportEvents.PrenumerationApi()

var opts = { 
  'url': url_example, // {String} URL
  'orgnr': orgnr_example, // {String} Organization number for subscription.
  'from': 2013-10-20, // {date} From date when the subscription was registered
  'tom': 2013-10-20 // {date} End date when the subscription was registered
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.hamtaPrenumerationer(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class hamtaPrenumerationerExample
    {
        public void main()
        {
            
            var apiInstance = new PrenumerationApi();
            var url = url_example;  // String | URL (optional) 
            var orgnr = orgnr_example;  // String | Organization number for subscription. (optional) 
            var from = 2013-10-20;  // date | From date when the subscription was registered (optional) 
            var tom = 2013-10-20;  // date | End date when the subscription was registered (optional) 

            try
            {
                // Retrieve subscriptions
                HamtaPrenumerationerOK result = apiInstance.hamtaPrenumerationer(url, orgnr, from, tom);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PrenumerationApi.hamtaPrenumerationer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PrenumerationApi();
$url = url_example; // String | URL
$orgnr = orgnr_example; // String | Organization number for subscription.
$from = 2013-10-20; // date | From date when the subscription was registered
$tom = 2013-10-20; // date | End date when the subscription was registered

try {
    $result = $api_instance->hamtaPrenumerationer($url, $orgnr, $from, $tom);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrenumerationApi->hamtaPrenumerationer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PrenumerationApi;

my $api_instance = WWW::SwaggerClient::PrenumerationApi->new();
my $url = url_example; # String | URL
my $orgnr = orgnr_example; # String | Organization number for subscription.
my $from = 2013-10-20; # date | From date when the subscription was registered
my $tom = 2013-10-20; # date | End date when the subscription was registered

eval { 
    my $result = $api_instance->hamtaPrenumerationer(url => $url, orgnr => $orgnr, from => $from, tom => $tom);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrenumerationApi->hamtaPrenumerationer: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PrenumerationApi()
url = url_example # String | URL (optional)
orgnr = orgnr_example # String | Organization number for subscription. (optional)
from = 2013-10-20 # date | From date when the subscription was registered (optional)
tom = 2013-10-20 # date | End date when the subscription was registered (optional)

try: 
    # Retrieve subscriptions
    api_response = api_instance.hamta_prenumerationer(url=url, orgnr=orgnr, from=from, tom=tom)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrenumerationApi->hamtaPrenumerationer: %s\n" % e)

Parameters

Query parameters
Name Description
url
String
URL
orgnr
String
Organization number for subscription.
from
date (date)
From date when the subscription was registered
tom
date (date)
End date when the subscription was registered

Responses

Status: 200 - OK

Status: 400 - Bad request

Status: 403 - Unauthorized user of service

Status: 500 - Unspecified technical problem

Status: 503 - The service is temporarily unavailable

Status: 504 - Timeout


prenumerera

Subscribe to annual report events

The service handles requests for subscriptions to urls and verifies that the supplied organization numbers are valid.


/handelseprenumeration

Usage and SDK Samples

curl -X POST "https://api.bolagsverket.se/hantera-arsredovisningsprenumerationer/v1.1/handelseprenumeration"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PrenumerationApi;

import java.io.File;
import java.util.*;

public class PrenumerationApiExample {

    public static void main(String[] args) {
        
        PrenumerationApi apiInstance = new PrenumerationApi();
        PrenumerationAnrop anropsobjekt = ; // PrenumerationAnrop | URL and organisation number
        try {
            apiInstance.prenumerera(anropsobjekt);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#prenumerera");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PrenumerationApi;

public class PrenumerationApiExample {

    public static void main(String[] args) {
        PrenumerationApi apiInstance = new PrenumerationApi();
        PrenumerationAnrop anropsobjekt = ; // PrenumerationAnrop | URL and organisation number
        try {
            apiInstance.prenumerera(anropsobjekt);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#prenumerera");
            e.printStackTrace();
        }
    }
}
PrenumerationAnrop *anropsobjekt = ; // URL and organisation number

PrenumerationApi *apiInstance = [[PrenumerationApi alloc] init];

// Subscribe to annual report events
[apiInstance prenumereraWith:anropsobjekt
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiForSubscriptionToAnnualReportEvents = require('api_for_subscription_to_annual_report_events');

var api = new ApiForSubscriptionToAnnualReportEvents.PrenumerationApi()

var anropsobjekt = ; // {PrenumerationAnrop} URL and organisation number


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.prenumerera(anropsobjekt, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class prenumereraExample
    {
        public void main()
        {
            
            var apiInstance = new PrenumerationApi();
            var anropsobjekt = new PrenumerationAnrop(); // PrenumerationAnrop | URL and organisation number

            try
            {
                // Subscribe to annual report events
                apiInstance.prenumerera(anropsobjekt);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PrenumerationApi.prenumerera: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PrenumerationApi();
$anropsobjekt = ; // PrenumerationAnrop | URL and organisation number

try {
    $api_instance->prenumerera($anropsobjekt);
} catch (Exception $e) {
    echo 'Exception when calling PrenumerationApi->prenumerera: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PrenumerationApi;

my $api_instance = WWW::SwaggerClient::PrenumerationApi->new();
my $anropsobjekt = WWW::SwaggerClient::Object::PrenumerationAnrop->new(); # PrenumerationAnrop | URL and organisation number

eval { 
    $api_instance->prenumerera(anropsobjekt => $anropsobjekt);
};
if ($@) {
    warn "Exception when calling PrenumerationApi->prenumerera: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PrenumerationApi()
anropsobjekt =  # PrenumerationAnrop | URL and organisation number

try: 
    # Subscribe to annual report events
    api_instance.prenumerera(anropsobjekt)
except ApiException as e:
    print("Exception when calling PrenumerationApi->prenumerera: %s\n" % e)

Parameters

Body parameters
Name Description
anropsobjekt *

Responses

Status: 202 - Accepted

Status: 400 - Bad request

Status: 403 - Unauthorized user of service

Status: 500 - Unspecified technical problem

Status: 503 - The service is temporarily unavailable

Status: 504 - Timeout