I have already managed to create an invoice and an invoice pdf document using the Bitrix REST API (methods "crm.invoice.add" and "crm.documentgenerator.document.a