Hi there,
I'm happy to answer your question and help you out.
I assume that when you write "change a customer's quantity" you mean update the `quantity` parameter on the `Subscription` object.
When you receive an `invoice.created` Event, if you update the `Subscription` object's `quantity`, that new value will not be reflected in the `Invoice` that was just created. Instead, this new `quantity` will be reflected in the `Invoice` that will be created for the next billing cycle.
The only way to modify the `Invoice` that was just created is to use `InvoiceItem` objects and ensuring that you pass in the `id` of the newly created `Invoice` as the `invoice` parameter as outlined in our docs [0].
I hope this clarifies the issue but please do not hesitate to get back to me if you need more details.
Good luck and happy hacking!
-zach