#mitsuhiro7452_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1255322299008155758
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hello, gimme a while to take a look!
hrm, did you create the Meter event before the invoice was created? I see this timestamp : 1719646256
I see that
Subscription invoice will be finalized and charged 7/1/24, 1:00 AM
but the Meter event was created for the timestamp of 6/29/24, 4:30 PM
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
no i didnt, I had created after the invoice was created.
This is because the mistake was noticed when the invoice was darft. I wanted it to be included in June for the period, so I specified a past timestamp.
can you share the request id for the Meter event that you mention was created after the Invoice was created? it'd look like req_xxx [0]
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I know the identifier, but I don't know the request_id, so I'll look it up.
this one req_8qyM7IJd59j6Mx
hrm, gimme a while more, still looking into this
what if you try finalizing the invoice (a.k.a move the clock forward such that it finalizes the invoice automatically), does it eventually bill for that Meter Event?
I will try.
oh-! It bill for that meter event.
We won't know until it's finalized, right?
so i think what happened here is that page is showing the draft invoice at the time of the invoice was created (i.e. metered event wasn't sent yet). When the invoice actually finalizes, it takes into account the metered events that were sent after the invoice was created
We won't know until it's finalized, right?
I believe so. You may want to try this out without a test clock also - maybe have a (daily) subscription with a trial that ends after an hour or so, then when the second invoice is created (draft), send a meter event, see if it's the same scenario
ok. thanks!