#inexorable_api

1 messages ยท Page 1 of 1 (latest)

jaunty summitBOT
#

๐Ÿ‘‹ 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.

stray tree
#

Hi, are you asking how to get the subscription id from the invoice?

jaunty summitBOT
static oyster
#

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

strong folio
#

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 you parent has subscription_details first, 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 ๐Ÿ™‚

strong folio
#

Use invoice.parent.subscription_details.subscription (verify invoice.parent.type is subscription_details) instead of invoice.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.subscription instead of invoice.subscription.

#

but in order to check subscription_details you need first check the parent type

#

(verify invoice.parent.type is subscription_details)

#

Does that clarify / make sense?

static oyster
#

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.