Issue with Fortnox / invoices routes QueryTool itgenfnx068

It seems some of the endpoints in the /invoices/ objects for Fortnox connector have an issue resulting in an error while talking with fortnox API.

Query Tool 25.0.95
Error: itgenfnx068
Message:

itgenfnx068:
The authentication credentials for Fortnox are incorrect.
unauthorized
Le serveur distant a retourné une erreur :
(401) Non autorisé.
Please take note of the hints that may be shown on the fields that you need to fill out.
Message ID: 072ace44-d513-4f28-976b-5101b6786a45
Occurred (UTC): 25/11/2025 16:47:37
select * from InvoiceByDocumentNumber@fnx_GASH(3)
System.Net.WebExceptionValidationExceptionValidationException
à System.Net.HttpWebRequest.GetResponse()
à Invantive.Data.Providers.Http.HttpWorker.DoRequest(GlobalState owner, ExecutionOptions executionOptions, SqlExecutionStep sqlExecutionStep, IHttpBasedProvider self, HttpWebRequest request, String url, ObjectDefinition objectDefinition, QueryObject queryObject, String partitionCode, String callSafeNameOverrule, String anonymizedPostText, Boolean allowRetryOnNoConnectionMade, Boolean allowRetryOnConnectionLoss, ParameterList parameters, Guid nativeCallUid, Boolean throwExceptionOnNonSuccessfulStatusCode, Object requestBody, Int64 timeoutInitialMs, Int64 timeoutMaxOnRetryMs, String resultCacheId, String publicQueryParameters, ExecutionStatistics& executionStatistics, ODataErrorProcessingInstructions& oDataErrorProcessingInstructions)

So far concerned endpoints are:

  • invoices.InvoiceByDocumentNumber
  • invoices.InvoiceLinesByDocumentNumber

invoices.invoices works fine.

It seems the error resolved by itself this morning: it is possible to fetch the endpoint without 401.

Note that a re-authentication process has occurred when launching Query Tool. It creates some difficulties since Fortnox is not multicompany, and we don’t know for which company the auth flow is applied for when 2 or more Fortnox databases are defined in the same connection in settings.xml. A separate ticket will be filled.

1 like

Dit topic is 3 dagen na het laatste antwoord automatisch gesloten. Nieuwe antwoorden zijn niet meer toegestaan.