#nikoschns_node-basil-invoice-properties
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/1440018676526088212
๐ 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.
- nikoschns_docs, 3 days ago, 7 messages
Hi there! There was a breaking change with Invoice objects in 2025-03-31.basil.
https://docs.stripe.com/changelog/basil/2025-03-31/adds-new-parent-field-to-invoicing-objects
On the Invoice object, we deprecated the quote, subscription, subscription_details, and subscription_proration_date fields.
On Invoice objects:
Use invoice.parent.subscription_details.subscription (verify invoice.parent.type is subscription_details) instead of invoice.subscription.
Nice, that was helpful. Also, when I am creating a new subscription can I still use the expand property to include the payment intent details in the invoice?
e.g.
expand: ["latest_invoice.payment_intent"]
Hi ๐
I'm stepping in as my colleague had to go. After the basil API, there is no longer a direct link from the Invoice to a Payment Intent. So there is no latest_invoice.payment_intent to expand. I recommend you review our updated Subscription Integration guide and the code snippets for the specifics of how you should approach this.
I think there is a broken link as I am clicking to go to : https://docs.stripe.com/api/subscriptions/create#create_subscription-expand
but I am redirected to subscriptions page. Hence I cannot fully understand what expand: ['latest_invoice.confirmation_secret'] actually put in the invoice
Sorry but it's not clear to me what you are clicking.
The expand parameter is showing you that you need to expand the confirmation_secret property on the Invoice object.
This is what I was looking for actually.
So may I confirm that even though there is no longer a direct link from the Invoice to a Payment Intent, I can still take the payment intent (id or object) from the invoice.payments.data[i].payment.payment_intent
What are you attempting to retrieve this for?
If it is to complete the payment for the Invoice using Stripe Elements, we recommend using the confirmation_secret.client_secret instead.
But you can go through the invoice.payments.data.payment.payment_intent to get related Payment Intent(s) for other purposes.
nikoschns_node-basil-invoice-properties
I just need the payment intent ID for referencing the payment in case it's needed. In that case I think it's okay to use the invoice.payments.data.payment.payment_intent. Besides the confirmation_secret.client_secret contains the payment intent ID but also has other alphanumerics added to it, right?