optimized send invoice