Error Codes

eAccounting API error codes

You will probably face errors in the API while developing. Every error has its own error code with specific information attached to it. This is to help you find out what went wrong!

Error Name

Error Code

Error Information

DataModelValidationError

2000

This error is thrown when any data model validations are broken in the request. See the rules for each POST method on each property.

ResourceNotFound

3000

This error is thrown when you refer to a specific object that does not exist, eg. customers, suppliers or articles in a request.

FiscalYearDoesNotExist

3001

This error is thrown when you refer to a specific fiscalyear that does not exist.

AccountNotFound

3002

This error is thrown when you refer to a specific account that does not exist.

InsufficientApprovalPermission

3003

This error is thrown when you have insufficient permissions to bookeep an invoice when using supplier invoice approval flow.

Conflict

4000

This error is thrown when you try to create a object that cannot exist as a duplicate.

CanNotBeDeleted

4001

This error is thrown when you try to delete a object that cannot be deleted. For example, when a object has dependencies, it cannot be deleted.

CanNotBeCreatedOrUpdated

4002

This error is thrown when you try to create or update a object that contains one or more invalid properties that prevents it from being created or updated.

NoAccessToModule

4002

This error is thrown when the user lack one or more modules. Some endpoints require additional modules in eAccounting purchased from the InApp store.

StartupGuideNotCompleted

4003

This error is thrown when you try to make requests towards a company that hasn't completed the startup guide in Visma eAccounting.

CompanyNotActive

4004

This error is thrown when you try to make requests towards an inactive company.

NotAuthorized

4005

This error is thrown when you try to make unauthorized requests towards the API.

NoAccessToScopes

4006

This error is thrown when you try to make requests towards an endpoint which require scopes that you are not authorized with.

PermissionDenied

4007

This error is thrown when you try to make requests with an authorized user that does not have sufficient permissions for that specific endpoint.

InvalidControlDigit

4008

This error is thrown when you try to make a request towards an endpoint with ControlDigit validation and the value is invalid.

NoAccessDueToProductVariant

4009

This error is thrown when you try to make requests towards and endpoint that is not included in the authorized company's product variant.

TooManyRequests

4010

This error is thrown when you try to more requests than allowed. Read more about this here.

NoAccessForAuthenticatedUser

4011

This error is thrown when the authenticated user does not have access to eAccounting for this company. Give the user access to eAccounting or reauthenticate with a user that have access to eAccounting to solve the issue.

LicenceAgreementNotAccepted

4012

This error is thrown when the authenticated user does not have accepted the licence agreement for eAccounting for this company. The licence agreement can be accepted by logging in to eAccounting with the same user and company.

CannotBookkeepInvoice

4013

This error is thrown when the process of bookkeeping the invoice is interrupted by validations like locked fiscal year or accounting period.

AutoInvoiceMissingYourReference

4014

This error is thrown when Norwegian companies lack YourReference when sending customer invoices with AutoInvoice.

AutoInvoiceMissingOurReference

4015

This error is thrown when sending customer invoices with AutoInvoice and the customer requires a reference code, which is missing.

SupplierInvoiceInvalidDueDate

4016

This error is thrown when a invalid invoice date is applied to a supplier invoice.

AutoInvoiceMissingElectronicAddress

4017

This error is thrown when sending customer invoices with AutoInvoice and electronic address is missing on the customer.

SupplierInvoiceValidationSkipSendToBank

4018

This error is thrown when you try to create a supplier invoices with a future date without having the "pay manually" setting active.

NoPermissionForReadonlyUser

4019

This error is thrown when you are authenticated with a readonly user and trying to create/edit/delete an entity.

FiscalYearIsOverlappingOtherYear

4020

This error is thrown when you are trying to create a fiscal year which overlaps another one.

FiscalYearMaximumPeriodExceeded

4021

This error is thrown when you are trying to create a fiscal year with a number of months which exceeds the maximum allowed for the specific country.

FiscalYearEndDateMustBeLastDayOfMonth

4022

This error is thrown when you are trying to create a fiscal year which doesn't end in the last day of a month.

ExternalServiceValidation

4100

This error is thrown when a validation from an external service is thrown

InternalServerError

5000

This error is thrown when you encounter a error that we have not handled on our side. This can occur if there is a bug in eAccounting. These errors should be reported to us at [email protected]

CantReachSystemDependendency

5001

This error is thrown when you make a request towards and endpoint with external service dependencies, and that dependency is not answering in time. This can occur if a service is down.

OperationCanceled

5002

This error is thrown when you encounter a error that we have not handled on our side. These errors should be reported to us at [email protected]

StockToNonStockNoZeroBalance

5003

This error is thrown when an article cannot be changed to non stock article because it has non zero stock balance.

StockToServiceNoZeroBalance

5004

This error is thrown when a stock article cannot be changed to service type article because it has non zero stock balance.

QueryParameterError

6000

This error is thrown when you make a request with $filter parameters and the query is invalid.

InvalidInput

6001

This error is thrown when you make a request with DateTime properties or filtering and the provided format is wrong.