#moe-invoiceitem-period
1 messages ยท Page 1 of 1 (latest)
Hi ๐
I"m still having a little trouble understanding what you are trying to do here. How are these events added and when do you want to bill for them?
The invoice items are added by API
The invoice is created by API
We want to bill them on the 1st of the following month
I'll use a simplified example of what is actually wanted although of course this is all made up.
#1 - Invoice item created Jan 3rd @ 00:01 UTC
#2 - Invoice item created Jan 5th @ 00:01 UTC
#3 - Invoice item created Feb 1st @ 00:01 UTC
I want to make the invoice on Feb 1st at 03:00 UTC. I want the invoice to only have "January's items" -- So only #1 and #2 .
I want the invoice to have ONLY all invoice items created from Jan 1 00:00:00.000 UTC -> Jan 31 23:59:59.999 UTC and exclude the Feb item
But there does not seem to be a way with teh API to create an invoice and then add specific invoice items to it, if the invoice items was already created ๐ค
Unfortunately I think you would need to create the Invoice before you create the February line item. You would then use pending_invoice_items_behavior parameter with include to include all those invoice items.
Thanks Snufkin
Could the invoice item's "period" property be useful for this? And Revenue Recognition? It is something we haven't explored... but were curious about it
https://stripe.com/docs/api/invoiceitems/create#create_invoiceitem-period
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Wait, aren't we having the same discussion in two threads?
I think this feature is specific to how your revenue gets calculated, not what Invoice the items are assigned to. However it might be worth a quick test
No this is a different topic, sorry for the confusion!
This is a weird behaviour I'm not sure about, while the other topic I made is a general workflow question
omg I confused myself.
THIS topic is the one with the general workflow, the OTHER is the weird behaviour which I am not sure about
For this one, thanks for the tips, we might experiment with the rev recognition and I think we're good on this thread here
Okay , thanks for helping me keep it straight