API för hantering av prenumerationer på årsredovisningshändelser

Prenumeration

avslutaPrenumeration

Avsluta prenumeration på årsredovisninghändelser

Tjänsten tar emot en förfrågan om att avsluta prenumeration för önskad url och organisationsnummer.


/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 = ; // 

// Avsluta prenumeration på årsredovisninghändelser
[apiInstance avslutaPrenumerationWith:anropsobjekt
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ApiFrHanteringAvPrenumerationerPRsredovisningshndelser = require('api_fr_hantering_av_prenumerationer_p_rsredovisningshndelser');

// Create an instance of the API class
var api = new ApiFrHanteringAvPrenumerationerPRsredovisningshndelser.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 {
                // Avsluta prenumeration på årsredovisninghändelser
                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:
    # Avsluta prenumeration på årsredovisninghändelser
    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 och organisationsnummer

Responses


hamtaPrenumerationer

Hämta prenumerationer

Tjänsten hämtar prenumerationer som finns för en viss url, orgnr, fr.o.m. datum, t.o.m. datum. eller kombinationer av dessa. Minst ett (1) sökvillkor måste anges.


/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 | Organisationsnummer för prenumeration.
        date from = 2013-10-20; // date | Från och med datum när prenumerationen registrerades
        date tom = 2013-10-20; // date | Till och med datum när prenumerationen registrerades

        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 | Organisationsnummer för prenumeration.
        date from = 2013-10-20; // date | Från och med datum när prenumerationen registrerades
        date tom = 2013-10-20; // date | Till och med datum när prenumerationen registrerades

        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; // Organisationsnummer för prenumeration. (optional) (default to null)
date *from = 2013-10-20; // Från och med datum när prenumerationen registrerades (optional) (default to null)
date *tom = 2013-10-20; // Till och med datum när prenumerationen registrerades (optional) (default to null)

// Hämta prenumerationer
[apiInstance hamtaPrenumerationerWith:url
    orgnr:orgnr
    from:from
    tom:tom
              completionHandler: ^(HamtaPrenumerationerOK output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ApiFrHanteringAvPrenumerationerPRsredovisningshndelser = require('api_fr_hantering_av_prenumerationer_p_rsredovisningshndelser');

// Create an instance of the API class
var api = new ApiFrHanteringAvPrenumerationerPRsredovisningshndelser.PrenumerationApi()
var opts = {
  'url': url_example, // {String} URL
  'orgnr': orgnr_example, // {String} Organisationsnummer för prenumeration.
  'from': 2013-10-20, // {date} Från och med datum när prenumerationen registrerades
  'tom': 2013-10-20 // {date} Till och med datum när prenumerationen registrerades
};

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 | Organisationsnummer för prenumeration. (optional)  (default to null)
            var from = 2013-10-20;  // date | Från och med datum när prenumerationen registrerades (optional)  (default to null)
            var tom = 2013-10-20;  // date | Till och med datum när prenumerationen registrerades (optional)  (default to null)

            try {
                // Hämta prenumerationer
                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 | Organisationsnummer för prenumeration.
$from = 2013-10-20; // date | Från och med datum när prenumerationen registrerades
$tom = 2013-10-20; // date | Till och med datum när prenumerationen registrerades

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 | Organisationsnummer för prenumeration.
my $from = 2013-10-20; # date | Från och med datum när prenumerationen registrerades
my $tom = 2013-10-20; # date | Till och med datum när prenumerationen registrerades

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 | Organisationsnummer för prenumeration. (optional) (default to null)
from = 2013-10-20 # date | Från och med datum när prenumerationen registrerades (optional) (default to null)
tom = 2013-10-20 # date | Till och med datum när prenumerationen registrerades (optional) (default to null)

try:
    # Hämta prenumerationer
    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
Organisationsnummer för prenumeration.
from
date (date)
Från och med datum när prenumerationen registrerades
tom
date (date)
Till och med datum när prenumerationen registrerades

Responses


prenumerera

Prenumerera på årsredovisninghändelser

Tjänsten tar emot en förfrågan om prenumeration på organisationsnummer till önskade urler samt kontrollerar att organisationsnumren är giltiga.


/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 = ; // 

// Prenumerera på årsredovisninghändelser
[apiInstance prenumereraWith:anropsobjekt
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ApiFrHanteringAvPrenumerationerPRsredovisningshndelser = require('api_fr_hantering_av_prenumerationer_p_rsredovisningshndelser');

// Create an instance of the API class
var api = new ApiFrHanteringAvPrenumerationerPRsredovisningshndelser.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 {
                // Prenumerera på årsredovisninghändelser
                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:
    # Prenumerera på årsredovisninghändelser
    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 och organisationsnummer

Responses