How to use the OAuth2 configuration for Exact Online

Robert van Boesschoten

Published: 30-10-2019

Last updated: 27-08-2020

  1. Go to Configurations under Settings in the builder menu on the left.
  2. Create a new configuration and choose the kind OAuth2 Basic.
  3. Go to the Exact Online app center and create an API key for your Exact Online application.
  4. Retreive a Client_id and Client_secret from the Authorization server in Exact Online.
  5. Copy paste these properties (Client_id and secret) to the configuration you just created in your Betty Blocks application.
  6. Search in Exact's documentation for the Authorization and Token credential uri's. Both starts with "".
  7. Insert an extra authentication attribute to the configuration: response_type = code. This is required to access Exact's API.
  8. Save the configuration and press the button 'Connect' at the bottom of the form.
  9. You are redirect to a login screen from exact, based on the authorization and token credentials uri you have given. Please login to Exact Online. With this login procedure, you authorize access to your Exact Online data.
  10. After you have logged in, Exact redirects you to the given redirect url in the API key registration.
  11. As it all went well, your created configuration is now connected to your Exact Online app. Assign this configuration to a web service.
  12. Go to Webservices under Tools in the builder menu left.
  13. Create a new web service or use an existing one.
  14. Choose the Authentication configuration we just created.
  15. Create a web service endpoint and test if the authentication works?
In this tutorial

Not sure where to start?

Click here to register and start learning