apirestful-authenticationexact-online

Exact online REST API: POST call not working


I am trying to make a post call in Exact Online REST API. I'm trying to create a SalesInvoiceLine. I can perfectly do a GET call via my browser. I am logged in in Exact Online so I don't need authentication since this should be passed via a cookie. I tried POST via a browser. The browser prompts me to login, when I do nothing happens. I've also tried this in Postman:

Error 401

I am 100% certain these initials are correct, I can login with them in Exact Online. What am I doing wrong?

If this is not the way, how can I post data to Exact Online? There are not that many concrete examples to find online.


Solution

  • You can't log on to the Exact Online REST API with Basic authentication, the mode you are using now.

    The web service uses OAuth as authentication mechanism, meaning you have to acquire a token first. The steps to do so are outlined in the official documentation.

    It will need some work on your end to register an app, get the flow up and running. Depending on your business needs, you might be helped with one of the apps for Exact Online by the company I work for.