AccountingTransaction/Generate@1 creates a financial document tied to an order. The transactionType field controls what is produced.
AccountingTransaction/Generate@1
transactionType