Retrieving Line Items from Estimate/Invoice

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?

1 Like

At this time the ability to get line items from estimates or unpaid invoices isn’t currently possible with our API. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slight_smile: