#AnnaH

1 messages ยท Page 1 of 1 (latest)

fringe kestrelBOT
meager sparrow
#

To confirm, you're creating an Invoice via the API and want to pull pending items from the associated Customer?

drifting hemlock
#

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?

meager sparrow
#

How are you adding the subscription items?

#

Are you updating the subscription directly? Or adding them as invoice items to the customer/subscription?

drifting hemlock
#

I am updating the subscription directly

meager sparrow
#

Can you share an example request ID? Looks like req_xxx

drifting hemlock
#

Ah i think the "pending_invoice_item_interval" on the subscription update is what i am looking for!
thanks for your help ๐Ÿ™‚

meager sparrow
#

Interesting, I guess you're using add_invoice_items too?

drifting hemlock
#

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

meager sparrow
#

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

drifting hemlock
#

you mean like this: "req_KLlsqj6NIOvdRQ" ?

meager sparrow
#

Let me see

#

Is your intention to immediately invoice for the new item?

drifting hemlock
#

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

meager sparrow
#

Then yes, you should use pending_invoice_item_interval

drifting hemlock
#

perfect thank you ๐Ÿ™‚