Magento gets all the comments for invoices by its Id to track for a given order payment stuff.
Invoice comments will be added by the Store admin representative from the backend for the invoice query.
Comments can be notified by customer email and also display in the frontend invoice section if the checkbox is checked by the admin when creating any new comments from the backend.
The class responsible for the fetch list of comments from the invoice, Magento\Sales\Api\InvoiceManagementInterface
Continue reading “How to get Invoice comments list programmatically in Magento 2?”