👍

New endpoints regarding creation of sales price list

It is now possible to create and update new sales price lists through the API.

Endpoints affected:

POST /v2/salespricelists
PUT /v2/salespricelists/{salesPriceListId}
PUT /v2/salespricelists/{salesPriceListId}/prices
DELETE /v2/salespricelists/{salesPriceListId}

What's new?

Finally!

We always strive to give our partners and our customers the best out of our system and API, therefore a new feature is coming our way called Discount In Fixed Amount. Some of you might be familiar with this already because we know this is a highly desired feature by our and your users in eAccounting.

This means that we have new properties on all API endpoints with sales rows models (in other words QuoteRowApi, OrderRowApi, CustomerInvoiceRowApi, and CustomerInvoiceDraftRowApi). The properties are IsDiscountInFixedAmount (boolean, optional, read only) and DiscountFixedAmount (number, optional, read only, 2 decimals). They all align the same for all sales model rows.

Why?

In order to extend the possibility from only using discount with percentage to both percentage and a fixed amount we need to expose the discounts a bit differently.

The IsDiscountInFixedAmount property will inform you of which discount type is on the row. False equals percentage and true equals fixed amount.

The DiscountFixedAmount property will represent the discount amount when IsDiscountInFixedAmount value is true.

What do I need to do?

If your integration reads or writes information about discount we recommend you to read from these new properties in combination with the existing DiscountPercentage property.

When do I need to do that?

The sooner the better. We will release this feature to be used in the GUI of eAccounting 14th of October. Before that you need to adapt to the changes in order for you integration to work with the new discount in fixed amount.

We really look forward to releasing this fully. Again, it’s a highly desired feature and will make eAccounting even better!

Questions? Don't hesitate to contact us at [email protected].

👍

New property in sales documents - VatRate

We have added a new property for all sales document rows. For CustomerInvoiceRowApi we had a similar property called PercentVat which has been deprecated and replaced by VatRate for consistency.

👍

New properties on Allocationperiod

New properties on GET /v2/allocationperiods:

CustomerInvoiceDraftId
CustomerInvoiceDraft
RowSourceDate
Description
NumberAndNumberSeries
AllocationPeriodRowType

What's new?

We've implemented a new customer type in Visma Online (our platform) for sandbox companies. That means newly registered sandbox companies will use our production environment with test companies as well as new IdentityServer clients in the production environment. They'll be suffixed automatically with "sandbox" in the company name so there's no risk of mixing them up with a real company.

Visma Lön Smart in Sweden!

Visma Lön Smart is the latest addition to our payroll suite in Sweden.

We are soon releasing Visma Lön Smart's API and it's a part of the sandbox package for swedish partners. You'll be able to integrate seamlessly with both products using the same authorization flow, separated with scopes.

The API is currently in the last phase of development, but the Visma Lön Smart service will be provisioned together with Visma eAccounting already.

Why?

This will easily solve most of the known issues with the existing sandbox environment. Deployment frequency, improved performance and multi user support are just a few of them. It will be more production-like for you as developers, which is something we've heard you have wanted for quite some time.

What do I need to do?

Register a new sandbox account here . You'll get a new sandbox company and new oAuth credentials in the production environment. For your integration code, you need to swap the clientid,clientsecretand IdentityServer base URL from https://identity-sandbox.test.vismaonline.com to https://identity.vismaonline.com and API base URL from https://eaccountingapi-sandbox.test.vismaonline.com to https://eaccountingapi.vismaonline.com.

When do I need to do that?

The old sandbox environment will be up and running until 2024-08-31. After this date, the following URLs will stop function and the companies will be removed permanently:

What about my data?!

You'll be able to export articles, customers, suppliers, chart of accounts, vouchers and more from Visma eAccounting. Just go to Settings > Import & Export. This data can then be imported in your new sandbox company. If that doesn't fulfill your needs, you can use the API to get the data you need and post to the new company.

After 2024-08-31 all old sandbox data will be deleted permanently!

Notice anything weird? Don't hesitate to contact us at [email protected].

👍

New error codes

Several new error codes have been added.

Error Codes

4026 - This error is thrown when you try to post a voucher in a locked bookkeping period.
4028 - This error is thrown when trying to undo an order that has backorders connected to it.
4029 - This error is thrown when a invalid social security number is provided for ROT/RUT input.
4032 - This error is thrown when a supplier invoice rows doesn't balance.
4033 - This error is thrown when the attempted action breaks the rules of approval flow.

📘

New bugfix

Bug fix to allow creating sales invoices to domestic customers with foreign currency with 4 decimals in UnitPrice in the API.

Affected endpoint:
POST v2/customerinvoices