How to create an invoice (and client) via php api?

That did the trick, thank you very much for your support.

Btw: Is the whitelabel thing an addon or how does it work with upgrading (and file overwrite)?

The white label license is stored in the database so isn’t affected by overwriting the files.