First of all - big thanks to cyb3rl4d for reverse engineering how the lay-z api works.
It was the basis of this module.
https://github.com/cyb3rl4d/Lay-Z-Spa/blob/master/README.md
Also, big thanks to
https://github.com/schoendort/lazy_spa
where I saw how the requests for the bestways api are done.