#jz-1_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1427720334143914014
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! looking at this now
thank you!
i do see an event for this actually:
https://dashboard.stripe.com/events/evt_1SFti4LmdOdiMXBscSY2FFod
could you share how you found this from the request ID? we are unable to filter by invoice Id on the events tab of workbench
so we can only see this from logs + connected account id
i found it using internal tooling, we have a tool that lets us see all related events from a given request ID. but give me a bit and i can try to find the quickest path for how you could find it
thank you!
or just events relevant to a stripe id would help too tbh
we can only filter by event id which feels bit useless since we dont know what it is
ok, one way is starting from the invoice page and scrolling down to Events, and then this event shows as [redacted]'s invoice has changed
ah i see thank you so much!
is it safe to assume any sorts of changes that cause deltas in invoice status will emit an updated event?
outside of that if you're looking directly at the events list i would just filter by invoice.updated and filter to roughly the time where you ran the API call, then look through those to find the right one
regardless of payment option
it should yes! but i would always test in test mode just to be sure
got it thank you! one more question
invoice_payment.paid vs invoice.paid sound exactly the same based on docs https://docs.stripe.com/api/events/types?api-version=2025-09-30.preview&rds=1
but we have noticed in our experience sometimes invoices can be paid and then unpaid
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
is there additional context we can understand?
hmm do you have an example where an invoice was "unpaid"?
i dont remember the exact scenario off the top of my head but i believe one of the following
- payment failed
- discount/refunds
as of right now the biggest difference is just in the type of object you're listening to. technically an invoice can have multiple invoice_payments (for example if you're doing partial payments). but if you aren't doing partial payments then both of them should fire when an invoice is paid, so at that point it just depends on the object type of the snapshot you want to receive in your webhook
got it!
interesting ok we had thought we were listening to the wrong event since its unusual for a paid invoice to revert in status
failed payments and refunds shouldn't "un-pay" an invoice - paid is a terminal state for invoices (docs). for failed payments you would receive invoice.payment_failed and for refunds the invoice itself would remain paid but we would create a separate refund object and corresponding refund.created event
ok let me see if i can find the exact example we encountered
we may have observed the wrong event possibly
for sure! yeah if an invoice is going from paid to something else that would be bad news
feel free to share what you find and i can look at it
thanks! found the invoice looking for id now
evt_1SFfbnLmdOdiMXBsbkqQhKkL
it seems like a "invoice_payment.detached" event
which triggered a paid event + status update and then back to open status after
iiiinteresting. i don't see that endpoint in our public docs, it looks like it might be a dashboard exclusive route
yikes haha
ok so it is reasonable to assume stripe invoices can revert in status and is not immutable / forward only
in that case where does the payment go? was it reverted?
Hello
This is a private preview feature - https://docs.stripe.com/invoicing/payment-application
My team on discord won't know a ton about this as we don't work with beta features much
If that doc is unable to answer your questions, I would suggest reaching out to our support team