How to get Division for api (exact online)

2.8k Views Asked by At

i'm wondering how to get the division that is required for most api calls to the exact online platform.

Also the documentation suggests that I use api/v1/current/Me to be the first call however when running this I receive the following (which is useless):

array(3) { ["url"]=> string(46) "https://start.exactonline.be/api/v1/current/Me" ["request"]=> array(0) { } ["response"]=> NULL }
1

There are 1 best solutions below

2
On

When you switch company in Exact Online, the URL of your browser will display the division of the newly selected company:

https://start.exactonline.nl/docs/MenuPortal.aspx?_Division_=123123

You can also query system/divisions or run on https://online-sql-editor.com (I work there) the following query:

select * from systemdivisions