#AnnaH
1 messages ยท Page 1 of 1 (latest)
To confirm, you're creating an Invoice via the API and want to pull pending items from the associated Customer?
The case is:
I created a subscription over the UI..A invoice is created.
And after one month I update the subscription - add more subscription Items over the API..
Now i want to send a invoice only for the Pending invoice items over the api
is this possible?
How are you adding the subscription items?
Are you updating the subscription directly? Or adding them as invoice items to the customer/subscription?
I am updating the subscription directly
Can you share an example request ID? Looks like req_xxx
In most instances we would immediately invoice for any updates made to a subscription: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment
Ah i think the "pending_invoice_item_interval" on the subscription update is what i am looking for!
thanks for your help ๐
Interesting, I guess you're using add_invoice_items too?
no i dont use this.
i use stripe.subscriptionItems.update and stripe.subscriptionItems.create..
Or add/update the items directly in the UI with update subscription
Not sure how pending_invoice_item_interval applies in this case then
If you can share an ID of an update call you've made I can check
you mean like this: "req_KLlsqj6NIOvdRQ" ?
invoice at the end of the day.
if you add one item in the morning and one in the afternoon you should only get one invoice of these 2 items
Then yes, you should use pending_invoice_item_interval
perfect thank you ๐