Skip to main content

A Python Client/ORM library for integration to Visma e-Accounting, Visma e-Ekonomi

Project description


A Python Client/ORM library for integration to Visma eAccounting, Visma eEkonomi


Using the library requires Python 3.6 or higher

.. code-block:: python

pip install visma

Access to Visma API

After installation you will need to set up access to the Visma eAccounting API

As of now it is not possible to get access by yourself so you will need to contact
Visma at

See full documentation for more info on how to get access and how to set it up.

Using the library

The api is inspired from the Django ORM. The Visma API is well documented and
supports filtering according to Odata which makes the operations very similar
to database access. We want to be able interact with all objects as normal python objects

.. code-block:: python

customers = Customer.objects.all()

invoice = CustomerInvoiceDraft.objects.get('e629baaf-642b-4079-9180-1b8463d24dc2')
invoice.your_reference = 'Mr finance guy'

invoice2 = CustomerInvoiceDraft.objects.get('ff9839do-642b-4079-9180-1b8463d24dc2')

# or


Supported functions:
* Getting all objects
* Getting single object
* Saving new objects and updating existing via .save()
* Deleting objects

* filtering via Odata parameters, should be similar to Django QuerySets
* manage pagination

Available Objects
Some objects we use and have tried out. But other code is made from generating
marshmallow schemas with `swagger-marshmallow-codegen
We have not tried all of it since we wont have the use cases.
We would be happy to receive some comments if something is not working.

* Customer
* TermsOfPayment
* CustomerInvoiceDraft

Commercial Support and Development

The library is developed by Palmlund Wahlgren Innovative Technology AB, a certified Visma Partner.

`Visma Integration Catalog <>`_.

We offer software development and integration services to Visma eAccounting (eEkonomi) and can develop your integration or offer support to your team on this library.

Check us out at ` <>`_ or contact us on ` <mailto://>`_ .

Full documentation can be found at .

API reference

Visma Environments

Test (Sandbox)

Visma eAccounting client
Visma eAccounting API
Visma IdentityServer Authorization
Visma IdentityServer Token


Visma eAccounting client
Visma eAccounting API
Visma IdentityServer Authorization
Visma IdentityServer Token


Added handling of enveloped schemas.

Handling of allowed methods on objects. Adding methods and endpoints to all models


Initial release. Use Visma API objects in an ORM:y way. get, create, update
and delete function. All objects added after editing output from
swagger-marshmallow-codegen. But only some is working properly.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

visma-0.1.0.tar.gz (48.7 kB view hashes)

Uploaded Source

Built Distribution

visma-0.1.0-py3-none-any.whl (59.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page