#inexorable_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/1382726153495642286
๐ 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.
- inexorable_api, 12 minutes ago, 17 messages
Hi, are you asking how to get the subscription id from the invoice?
No, I have that from the help you gave me a short while ago. I'm just checking that there is an error in the breaking changes doc and that I'm not misunderstanding the API docs. I think it's just an error but I want to be sure.
Breaking changes doc says the invoice.parent.type could be "invoice.subscription" - but I think thats a type. The API docs say the values can only be quote_details or subscription_details.
The irony that I just typed "type" instead of "typo" is not lost on me - lol
Hey there, can you point to the specific doc page you're referencing about what to check?
The text you quoted up top sounds accurate:
verify invoice.parent.type is subscription_details
this is what tells youparenthassubscription_detailsfirst, then you can:
Use invoice.parent.subscription_details.subscription
Breaking changes doc says the invoice.parent.type could be "invoice.subscription" - but I think thats a type
this does sound wrong if that's what it says. If you can share the link you're looking at I can get that fixed ๐
https://docs.stripe.com/changelog/basil/2025-03-31/adds-new-parent-field-to-invoicing-objects?changelog-sdk=rest
Impact section (for invoice object)
Use
invoice.parent.subscription_details.subscription(verifyinvoice.parent.typeissubscription_details) instead ofinvoice.subscription.
I read this as correct, i think you might be misread the parenthetical
If we remove that it reads:
Use
invoice.parent.subscription_details.subscriptioninstead ofinvoice.subscription.
but in order to check subscription_details you need first check the parent type
(verify
invoice.parent.typeissubscription_details)
Does that clarify / make sense?
Yes it makes sense. You are right this is my mistake. I apologise for wasting your time.
I will have to accept that my all-night coding session last night (and today) has broken me . I shall go home and sleep and stop finding issue that aren't there (or creating them) ๐
Thank you.