Thanks guys.
This seems indeed to be the issue: I created the same logic as in step 7 but in a separate API workflow to run it manually when “invoice items” are created, it works like a charm.
My app’ will create invoices automatically: how to have step 7 run only when the "invoice items " are created ?
EDIT: I am going to look at this thread that seems to have the same issue that I have.