If I create the invoice with the Magento API, will the PDF be based on the Amasty template?
If our PDF Customizer extension is enabled in the admin area, order-related PDF files will be generated on the Amasty template basis both when invoices are created via API and when they're created manually in the backend.