#harinth_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/1442722237508751461
📝 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.
- harinth_connect-sandbox-payments, 7 hours ago, 49 messages
- harinth_intent-capture-apiversion, 10 hours ago, 19 messages
Hi
You have the latest_charge properties now
You can call Retrieve Payment Intent API then expand this latest_charge
Thanks,
Yes, I saw that. But I was getting charge objects earlier, so I used that in my codebase.
Now when it misses, my code is also broken.
Is there a way, we can include that in the webhook response?
It's the API version change. Did you upgrade API version of the webhook endpoint?
I didn't upgrade. But its a new sandbox account, so it automatically got upgraded
If you wish to use the old API version, you would need to create a webhook endpoint via API
That will let you specify, in contrast of Dashboard where you can only have the latest
Could you please share the curl example for that?
Not exact syntax but that's the parameter
Thanks.
How to specify the version here?
Hello! Do let me know if you have further questions on what my colleague shared!
Okay, I will.
Just testing it
I just created the webhook
Do I need to add "expand" for charge object in payment_intent succeed?
You would not have to expand anything if you created a webhook prior to the removal of the charges property
Seems I am not receiving any entries in the new webhook
we_1SXDZxPSc5x61LTci8xGo3Gs
Could you please check
I need to download CLI right?
yup, or you can just create a test payment through workbench
I found an event: https://dashboard.stripe.com/test/events/evt_3SXDlvSCfsGQQC9I0QnXWs1u which was fired recently from the connected account (acct_1SXBe5SCfsGQQC9I)
But i dont see it sent to a connect webhook
You would have to specify connect=true [0] if you want to create a connect webhook
[0] https://docs.stripe.com/api/webhook_endpoints/create?#create_webhook_endpoint-connect
acct_1SNsJjPSc5x61LTc
Could you please check here?
Yup, i was checking in the account (acct_1SNsJjPSc5x61LTc) for the webhook creation.
The most recent webhook creation request can be found here, which creates an Account webhook: https://dashboard.stripe.com/acct_1SNsJjPSc5x61LTc/test/logs/req_4quvoXWl53dX2R
Were you intending to create Connect webhooks or Account webhooks?
I am bit confused over that part.
I have a number of users using my CRM website.
They are connecting to this stripe account via OAuth and make payments in their own accounts.
From my end, I would like to see all the webhook events(selected events in this webhook) in this account "acct_1SNsJjPSc5x61LTc"
Right, it sounds like you were intending to create a Connect webhook.
Previously, the event that you sent in this chat evt_3SXCJoSCfsGQQC9I1LpcX30r was an event that happened on one of your connected accounts (the accounts that connected via OAuth). This event got sent to this webhook endpoint we_1SNsrEPSc5x61LTcc643PyjE which is a Connect Webhook
Currently, from what i understand, is that you want a new Connect Webhook to be of the version 2017-08-15. However, when you created the new Webhook Endpoint, it did not receive any events from your Connected Accounts. The reason is because you did not specify connect=true in your Webhook Create API call here. As such it created an Account webhook, which only listens to events that happen WITHIN that account and not events from your connected accounts
I would suggest you create a new webhook endpoint, specifying connect=true to create a Connect Webhook. Here is an example curl command
curl https://api.stripe.com/v1/webhook_endpoints \ -u "sk_test_xxxx" \ -H "Stripe-Version: 2025-11-17.preview" \ -d "enabled_events[]"="payment_intent.succeeded" \ -d api_version='2017-08-15’ \ -d connect='true’ \ --data-urlencode url="https://example.com/my/webhook/endpoint"
Thank you so much!
Let me try this
version numbers can be copied as such?
I would like to get the charge object in the payment_intent.succeed webhook
Apologies what do you mean by "version numbers can be copied as such?"
Have you tried the curl command?
"Stripe-Version: 2025-11-17.preview"
api_version='2017-08-15’
"error": {
"message": "Invalid boolean: ",
"param": "connect",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_D5Czb2fQBbUy97?t=1764048206",
"type": "invalid_request_error"
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yes, now the endpoint is created
Nice! let me know when you have created a test payment_intent.succeeded event. It should have the list of charges (if the webhook was created correctly)
Okay, let me try