More robust error handling in sample app
Add line items in /createinvoice