Hi, i've been trying to import my invoice items for all of 2024 using the API, but so far it's a quite slow process. The API doesn't seem to allow me to import chunks of data (an updated_before parameter would be sufficient), so i've resorted to taking all invoice id's from the invoice table and calling the invoice items per invoice.
The problem with this is that this costs me one API call per invoice. For all of 2024 that's going to take forever.
Is there a better way to get the invoice item data?
For context, what i'm trying to achieve is to link treatment id's to the payment allocations table. So far my route has been to link payment allocations through the invoice item id to a treatment plan item, which has a treatment id linked to it. If there's a smarter way of approaching this i'd be happy to hear about it.