#maximepvrt_api

1 messages ¡ Page 1 of 1 (latest)

meager valleyBOT
#

👋 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/1485693199904145459

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

hallow hound
#

However, I am hitting your strict expansion limit: "You cannot expand more than 4 levels of a property".

Since everything now goes through the payments array, what is the current recommended best practice to efficiently fetch a list of invoices along with the refunded status of their associated payments, without making excessive API calls?

Thanks in advance for your insights.

stone niche
#

hello! looking into something else atm but i'll be with you asap

#

just to double check my understanding of your question, you're just looking for the most efficient route to get from /v1/invoices to the latest_charge property?

hallow hound
#

Yes, exactly.

To give you more context, I recently updated the Stripe API version in my project. My main goal is to accurately display the status of my invoices on my custom interface (just like the Stripe Dashboard does), specifically to show if the payment associated with an invoice has been refunded.

Since the invoice status itself doesn't change to "refunded" and the payment information is now nested under the payments attribute, I am looking for the most efficient route to access that refund status (via latest_charge or otherwise) when listing invoices, without having to make additional API calls for each individual invoice.

stone niche
#

just confirming, which API version are you moving to? i'm guessing you're moving from a pre-basil release to either basil or clover?