to get a personalized navigation.
to get a personalized navigation.
Endpoint: PUT v2/fiscalyears/openingbalances
The purpose of this endpoint is to allow the user to update its opening balances on the first fiscal year through the API using a simple collection of account numbers and their new opening balances. Below you can see the Opening Balance section as you would like to update in eAccounting.
Opening Balance in eAccounting
In order to achieve the same behavior through the API, the following payload should be used:
Opening Balance in API
As you can see the account numbers which we wanted to update in the web application can be found in the JSON, next to its balance. The new balances represent the new total amounts that we want to have on the specific accounts, which do not amount or diminish the previous ones but instead replacing them. You can also specify some or all the other accounts in the fiscal year, as long as the total amount balances or you set the balance as it currently is.
The endpoint by default supports using inactive accounts in the JSON by automatically activating them. If you do not wish to allow this, set the parameter enableInactiveAccounts to false in which case validation will be thrown.
Scenario 1
We have the following accounts with their current balances:
We would like to update the balance on account 1010 to 20. In order to successfully accomplish that, we need to set up a new amount on another account based on the new difference. In this case we will use account 1229 to counter the new added amount.
The required JSON will be :
Scenario 1
Note: You can also use other accounts as long as the amounts balance or either their current amount is used.
Scenario 2
We have the following accounts with their current balances:
We would like to update the opening balance of another account, for example, 1220 to -20. Below is an example of a way of doing it:
At a first glance, the amounts in the JSON do not balance. -20 + 50 = 30. But below you can observe all the accounts with their updated amounts:
Hi, is there anyway the opening balances can be corrected after the first year? My predecessor didn't enter any opening balances, or run the year end and it makes life more difficult. I have corrected the error in the bank accounts but it means the year end results are always wrong.
Copyright © 2022 Visma.com. All rights reserved.