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 \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.bolagsverket.se/hantera-arsredovisningsprenumerationer/v2.0/handelseprenumeration" \
 -d '{
  "orgnr" : "orgnr",
  "url" : "url"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrenumerationApi;

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

public class PrenumerationApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PrenumerationApi apiInstance = new PrenumerationApi();
        AvslutaPrenumerationAnrop anropsobjekt = ; // AvslutaPrenumerationAnrop | 

        try {
            apiInstance.avslutaPrenumeration(anropsobjekt);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#avslutaPrenumeration");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PrenumerationApi;

public class PrenumerationApiExample {
    public static void main(String[] args) {
        PrenumerationApi apiInstance = new PrenumerationApi();
        AvslutaPrenumerationAnrop anropsobjekt = ; // AvslutaPrenumerationAnrop | 

        try {
            apiInstance.avslutaPrenumeration(anropsobjekt);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#avslutaPrenumeration");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PrenumerationApi *apiInstance = [[PrenumerationApi alloc] init];
AvslutaPrenumerationAnrop *anropsobjekt = ; // 

// 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');

// Create an instance of the API class
var api = new ApiForSubscriptionToAnnualReportEvents.PrenumerationApi()
var anropsobjekt = ; // {AvslutaPrenumerationAnrop} 

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 Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class avslutaPrenumerationExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PrenumerationApi();
            var anropsobjekt = new AvslutaPrenumerationAnrop(); // AvslutaPrenumerationAnrop | 

            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');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrenumerationApi();
$anropsobjekt = ; // AvslutaPrenumerationAnrop | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrenumerationApi->new();
my $anropsobjekt = WWW::OPenAPIClient::Object::AvslutaPrenumerationAnrop->new(); # AvslutaPrenumerationAnrop | 

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

# Create an instance of the API class
api_instance = openapi_client.PrenumerationApi()
anropsobjekt =  # AvslutaPrenumerationAnrop | 

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)
extern crate PrenumerationApi;

pub fn main() {
    let anropsobjekt = ; // AvslutaPrenumerationAnrop

    let mut context = PrenumerationApi::Context::default();
    let result = client.avslutaPrenumeration(anropsobjekt, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
anropsobjekt *

URL and organisation number

Responses


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 \
 -H "Accept: application/json" \
 "https://api.bolagsverket.se/hantera-arsredovisningsprenumerationer/v2.0/handelseprenumeration?url=url_example&orgnr=orgnr_example&from=2013-10-20&tom=2013-10-20"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrenumerationApi;

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

public class PrenumerationApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        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 org.openapitools.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();
        }
    }
}


// Create an instance of the API class
PrenumerationApi *apiInstance = [[PrenumerationApi alloc] init];
String *url = url_example; // URL (optional) (default to null)
String *orgnr = orgnr_example; // Organization number for subscription. (optional) (default to null)
date *from = 2013-10-20; // From date when the subscription was registered (optional) (default to null)
date *tom = 2013-10-20; // End date when the subscription was registered (optional) (default to null)

// 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');

// Create an instance of the API class
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 Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class hamtaPrenumerationerExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PrenumerationApi();
            var url = url_example;  // String | URL (optional)  (default to null)
            var orgnr = orgnr_example;  // String | Organization number for subscription. (optional)  (default to null)
            var from = 2013-10-20;  // date | From date when the subscription was registered (optional)  (default to null)
            var tom = 2013-10-20;  // date | End date when the subscription was registered (optional)  (default to null)

            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');

// Create an instance of the API class
$api_instance = new OpenAPITools\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::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrenumerationApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::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 openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

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)
extern crate PrenumerationApi;

pub fn main() {
    let url = url_example; // String
    let orgnr = orgnr_example; // String
    let from = 2013-10-20; // date
    let tom = 2013-10-20; // date

    let mut context = PrenumerationApi::Context::default();
    let result = client.hamtaPrenumerationer(url, orgnr, from, tom, &context).wait();

    println!("{:?}", result);
}

Scopes

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


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 \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://api.bolagsverket.se/hantera-arsredovisningsprenumerationer/v2.0/handelseprenumeration" \
 -d '{
  "prenumerationer" : [ {
    "authKey" : "authKey",
    "skickaTestmeddelande" : false,
    "orgnr" : "orgnr",
    "url" : "url"
  }, {
    "authKey" : "authKey",
    "skickaTestmeddelande" : false,
    "orgnr" : "orgnr",
    "url" : "url"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrenumerationApi;

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

public class PrenumerationApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PrenumerationApi apiInstance = new PrenumerationApi();
        PrenumerationAnrop anropsobjekt = ; // PrenumerationAnrop | 

        try {
            apiInstance.prenumerera(anropsobjekt);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#prenumerera");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PrenumerationApi;

public class PrenumerationApiExample {
    public static void main(String[] args) {
        PrenumerationApi apiInstance = new PrenumerationApi();
        PrenumerationAnrop anropsobjekt = ; // PrenumerationAnrop | 

        try {
            apiInstance.prenumerera(anropsobjekt);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrenumerationApi#prenumerera");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PrenumerationApi *apiInstance = [[PrenumerationApi alloc] init];
PrenumerationAnrop *anropsobjekt = ; // 

// 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');

// Create an instance of the API class
var api = new ApiForSubscriptionToAnnualReportEvents.PrenumerationApi()
var anropsobjekt = ; // {PrenumerationAnrop} 

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 Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prenumereraExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PrenumerationApi();
            var anropsobjekt = new PrenumerationAnrop(); // PrenumerationAnrop | 

            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');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrenumerationApi();
$anropsobjekt = ; // PrenumerationAnrop | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrenumerationApi->new();
my $anropsobjekt = WWW::OPenAPIClient::Object::PrenumerationAnrop->new(); # PrenumerationAnrop | 

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

# Create an instance of the API class
api_instance = openapi_client.PrenumerationApi()
anropsobjekt =  # PrenumerationAnrop | 

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

pub fn main() {
    let anropsobjekt = ; // PrenumerationAnrop

    let mut context = PrenumerationApi::Context::default();
    let result = client.prenumerera(anropsobjekt, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
anropsobjekt *

URL and organisation number

Responses