Adding api_path method for Invoice to set the correct api path for Magento.