Hello Aldevinas,
great to know you figured out the what the problem was and how to fix it.
We will publish a webinar link in the next days where you'll find more details about OAuth and RestAPI.
Please check the Education Section in the Partner Portal.
Giuseppe
HansaWorld Support