Update invoice endpoint