Visma eAccounting 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. |
FutureDateCannotBeSet | 4023 | This error is thrown when you try to pay an invoice in a future date. |
InvalidVatNumber | 4025 | This error is thrown when you have provided an invalid VAT number. |
VoucherDateIsInLockedPeriod | 4026 | This error is thrown when you try to post a voucher in a locked bookkeping period. |
ReversedVatZero | 4027 | This error is thrown when you try to apply reversed VAT to a non-eligible article row. |
OrderCannotBeVoided | 4028 | This error is thrown when trying to undo an order that has backorders connected to it. |
SsnNumberIsInvalid | 4029 | This error is thrown when a invalid social security number is provided for ROT/RUT input. |
OcrNumberIsInvalid | 4030 | This error is thrown when you provide a invalid OCR number. |
CustomerInvoiceMissingOrderArticles | 4031 | This error is thrown when a customer invoice is created based on a order and order rows are missing. |
SupplierInvoiceDoesntBalance | 4032 | This error is thrown when a supplier invoice rows doesn't balance. |
ForbiddenActionInApprovalFlow | 4033 | This error is thrown when the attempted action breaks the rules of approval flow. |
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. |
ProjectEnded | 5005 | This error is thrown when you try to refer to a project that has already ended and is therefor no longer available for usage. |
InactiveCostCenter | 5006 | This error is thrown when you try to refer to a cost center that is inactive and is therefor no longer available for usage. |
ItemToAttachNotFound | 5007 | This error is thrown when you try to attach documents that does not exist. |
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. |
Updated 5 months ago