Hi, in simple terms I want to get a webhook notification when an invoice (ideally also an estimate) is created/updated, and then retrieve the line items for that invoice. I’ve done the first bit, but am struggling with the second.
After a lot of head scratching I’ve realised the problem is that the order_id field doesn’t exist until an invoice is paid (Invoices that are unpaid have no order_id).
So, how do I get the line items for an estimate/unpaid invoice via the API? Surely there is a way, otherwise there’s no way to get ‘sales pipeline’ data out of Square?