#ashar_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/1417745861546606593
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Stripe AI chat, which I referred
Hello! do give me some time to take a look at this
Hi! Stepping in for my colleague! Is the issue that you cannot retrieve an older invoice or are unable to access the invoice_pdf URL for the invoice?
Can you paste the request ID and the Invocie ID in the chat?
req_cMwmP6zjfCoUDq
in_1ROHblJG0sbFhCDr5PzIfbc3
req_fJCqV4rf4TONVs
in_1ROXhXJG0sbFhCDreRK1UzQi
Taking a look!
I am unable to find an invoice with the ID in_1ROHblJG0sbFhCDr5PzIfbc3. Is this the correct invoice ID?
yes it's correct, that's what I needed to confirm, does stripe deletes older invoices? or are there chances of invoiceID getting changed?
For example, you could check this customer cus_S8MZGFzKgQobiQ it have some older payments for subscriptions, but only shows 2 latest invoices
does stripe deletes older invoices?
No we don't
or are there chances of invoiceID getting changed?
No they don't change.
Can you give me the subscription ID for the screenshot you provided? I would like to check further.
Sure
I couldn't get it, could you check it with this customer id cus_S8MZGFzKgQobiQ ?
Sure!
The 2 invoices on this customer don't include the invoices you are retrieving in the 2 request you provided.
Yes that's what my original question is, and if invoices are not deleted, why I'm not able to see it here for the corresponding earlier payments made by this customer
Invoices are not deleted. There is a chance that these are not correct invoice IDs. Where did you get them from?
We save it in our db, at the time of paymet
Let's say invoices id might be incorrect, but e.g for this customer, I can't see invoices of earlier payments, It shows only 2 of the latest, but we can see earlier payments corrspinding to subs made right?
Ah apologies, I realised this is test mode. In test mode we do delete Subscriptions created 90 days ago. So any invoice related to it gets deleted. This doesn't happen for live mode Subscriptions.
Ah okay got it, thanks let me check it on live mode
This is the support article for your reference: https://support.stripe.com/questions/test-mode-subscription-data-retention
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Thanks! I think I can see older invoices on live mode
Thanks for your help
Sorry to bother again, I got one more doubt in the list of invoices in test mode, I can see invoices older than 90 days as well
e.g in_1QQSGIJG0sbFhCDr1UpPt8yA this is from dec 2024
Looking into this!
Looking into this will take some time, so I'll need your help to create a ticket so I can get back to you. I'll send you a note shortly on how to do that. Do note that these subscriptions are quite old, so we may not have logs available. I can't promise we'll be able to see exactly what happened, but I'll update you with any information we find.
Hello @halcyon dawn, we have sent you a direct message, please check it at https://discord.com/channels/@me/1417767628994379829
- 🔗The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Got it, I'll raise the ticket
Thanks!