Add optional invoice param

Needed for adding invoice items to existing invoices