#geekcorner_code
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/1384842853901008917
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
whoops sorry i thought it would add a code block automatically on the code question
hello! no worries, your question is plenty clear
i get it but color syntax is always better
the removal of this property on basil releases is documented here:
https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices
invoice.payments contains a list of all payments associated with an invoice
https://docs.stripe.com/api/invoices/object#invoice_object-payments
you can also call this new endpoint to directly list all payments for a given invoice:
https://docs.stripe.com/api/invoice-payment/list
(note that it also works in reverse - you can pass in a payment intent via the payment.payment_intent param if you want to find an invoice associated with a given PaymentIntent. you aren't asking about this but it can be confusing to people so i figured i would let you know in case it ever comes up ๐ )
so basically a new request to make right?
since as far as i know, you can't ask webhooks to expand some properties on delivery
Also, in this case, how would I fetch the subscription from an invoice? I used to be able to do this too
i do think you would need to make a request as the payments property is listed as expandable... let me double check that real quick
(and you're right that you can't ask webhooks to expand)
there are no dumb questions ๐
let me prove you that there are dumb question: "what is a dumb question?"
Anyways, double checked the docs, and I couldn't find any subscription-related field
for the invoice => subscription lookup, you want to look at this new property:
https://docs.stripe.com/api/invoices/object#invoice_object-parent-subscription_details-subscription
omw!
for reference this change is documented here:
https://docs.stripe.com/changelog/basil/2025-03-31/adds-new-parent-field-to-invoicing-objects
oh yeah i overlooked the parent property
yep it's subtle if you don't know what you're looking for
as a general rule for moving from pre-basil => basil i would suggest starting from the changelog
this page flags all breaking changes with a little โ mark
https://docs.stripe.com/changelog/basil#2025-03-31.basil
yep!
hi! I'm taking over this thread. let me know if you have other questions.