#the-farrnacle_webhooks
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/1463969220382560257
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Ok here are the different structures I'm seeing:
In the docs, it says I should be able to get the payment intent through invoice.payments.data.payment.payment_intent
https://docs.stripe.com/api/invoices/object#invoice_object-payments-data-payment-payment_intent
In the webhook event, There is no payments object at all on the invoice and no reference to a payment_intent
And then when I fetch the invoice through the /v1/invoices api, I'm seeing a payment_intent field on the root of the invoice object and not through the payments.data....
hello! i've got a few things going on at the moment but i'll be with you asap
No worries! Appreciate the help
ok looking at this now
ok, so this is probably related to API versions. which API version are you using?
you can see in this changelog entry that the payments array was added as of 2025-03-31.basil, so if you're using a version prior to that this is expected
https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices
Yea we are using Clover. So I would expect to see the payments array everwhere
can you share an example API request ID where you saw the payment_intent property on an invoice?
Sorry had to go find one. This one didn't actually have anything and had the same structure that I'm seeing in the webhook
req_mkCtZzUbxdkjl0
Perhaps it's just in the UI inspector that I'm seeing the payment_intent field
can you share more about what you mean by UI inspector? is that the workbench CLI? can you maybe share a screenshot so we're on the same page?
but yes, it's likely that whatever you're looking at in the UI is using a different API version than your webhook / other API calls
Yea, it's the workbench inspector. Here's a screen recording of what I see. Hopefully you can see it haha. I had to bump it down to 720p
But that's good to know that the workbench is different—although, that still doesn't explain why the payments array isn't showing up in the webhook events and api responses
let me look at the specific event delivery you're referring to
actually i don't see a specific event ID that you've shared yet, can you grab one where you aren't seeing the payments array for me? it should look like this: evt_[random characters]
Oh sorry, maybe I missed that. Here's an example: evt_1SpqmoEJnI2Hvavf0PRVqIPO
ahhhhh ok, i think that property requires you to expand it to see it
1 sec
yep, so unfortunately you need to retrieve the invoice and expand payments to see it, you can see an example in the changelog here:
https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices#inspect-the-array-for-payment-information
Ok cool, yea just did a test and it did show up after doing the expand. I guess I would've thought that even if you didn't expand payments the base would still show up but I guess not. Thanks for your help!
yep of course!