#wim_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/1302922025840672789
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey, im using
# Set date range for October 1 - October 5, 2024 (timestamps in seconds)
start_date = int(datetime(2024, 10, 1).timestamp())
end_date = int(datetime(2024, 10, 5, 23, 59, 59).timestamp())
and
# Iterate over all payment_failed events within the date range
events = stripe.Event.list(
type="invoice.payment_failed",
created={"gte": start_date, "lte": end_date},
limit=100 # Adjust limit if needed
)
for event in events.auto_paging_iter():
but i seem to get very few events, and i tested moving the dates to even earlier dates and i get none
mhh, isnt there any workaround?
the dashboard can show limited date after 30 days, isnt that possible with api too?
no that's a hard limitation of the API. sorry
so we had an incident where we need to recover the date of the first payment failed event for an invoice
is there some other workaround you know to achieve that?