Discussions

Ask a Question
Back to all

List of invoice - retrieve only new and modified

Hello,

To synchronize B2B invoices state with our internal invoice state retrieving only the invoices updated.

It will be good to have a way to retrieve only the invoice modified since last retrieved.

I see 2 way for this :

  • With the ack flag (or another dedicated technical only flag like 'read' if ack has another goal) : when the invoice is modified or the status changed, the flag pass to true. In this case, when listing invoice, Iwill be able to retrieve only the invoices with this flag set to false. After that, I will set this flag to true for all retrieved invoices.
  • If not possible with that, using the updated_at_from filter to list invoice : currently it have a day precision, it will be better for performance and usage costs to have a timestamp field instead to be precise in seconds or minutes.

Is it possible to have some feature in this way in the future ?

Regards