Can I add custom fields to doctypes using the REST API?

So I’m using the REST API to integrate ERPNext to my app and it works fine. But I need to add some custom fields occasionally and I wanted to know if that was possible with the REST API as well instead of doing it manually

In addition to this, can I get an example for creating a sales invoice with the REST API?