#wim_api

1 messages ¡ Page 1 of 1 (latest)

round wingBOT
#

👋 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.

proper shoal
#

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

dull barn
#

hi there!

#

no, we only return events from the last 30 days.

proper shoal
#

mhh, isnt there any workaround?

#

the dashboard can show limited date after 30 days, isnt that possible with api too?

dull barn
#

no that's a hard limitation of the API. sorry

proper shoal
#

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?