#jefskoa_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/1430195583314034798
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there, do you mean you don't see an endpoint you previously configured, or a specific event is not being delivered to your endpoint the way you expected it to be?
I don't see the specific event even though I'm getting the resulting report. The other event I have registered is showing.
Can you share the specific event ID you expected to receive?
though I'm getting the resulting report
What do you mean by this?
In our sandbox, I've set webhooks up to listen to 2 events: payout.paid & reporting.report_run.succeeded. I am seeing the payouts in event deliveries. I am not seeing the report run succeeded event but know the report is completing as I can retrieve it by Id with Curl and API request.
Here's a report run id: frr_1SKfUHI1VSC7qNYwR5bx3wLm
if that helps at all.
hi there, taking over for my colleague. can you share the event ID of the event you expected to retrieve? it should look like evt_1234
I don't see an event id when querying for the completion of the report with curl:
curl https://api.stripe.com/v1/reporting/report_runs/frr_1SKfUHI1VSC7qNYwR5bx3wLm
ok, instead can you share the ID of the webhook endpoint where you were hoping the event would be delivered?
You bet! we_1S8oVoI1VSC7qNYwgvxPJdiH
Not sure if this helps, but the report I am requesting is: connected_account_payout_reconciliation.by_id.summary.1. Then I expected a webhook event when it is completed so I can retrieve it.
I'm not super familiar with reporting, but I suspect this is happening because your webhook endpoint is set up for Connect. can you try creating a standard webhook endpoint listening for that event type, and see if you receive the event?
I believe I could but Connect is paramount to our project. I have to be able to receive that web hook message from that report I ask for from any/all Connected accounts.
And we are getting payout.paid events.
Do you know if there's a different event to list to for connected accounts & reports? There wasn't one for payouts, and I get those.
oh, what I meant was, since the report is being run by your platform, I think the event may be being delivered to your account, rather than your connected account (despite the report being about your connected account's payouts
Is there (1) a way to show that/prove that and (2) is there a solution to help me get that report when it is completed on the Stripe side?
I see this event being delivered to your account https://dashboard.stripe.com/test/events/evt_1SKfUPI1VSC7qNYwwVAR6VRU
OK, and I see my pass parameters there with the connected account I need to verify and the report run id. I'm still not understanding though (sorry!) why the webhook isn't getting this event.
because your webhook endpoint is configured as a Connect webhook. Connect webhooks send events from your connected accounts, not your own account https://docs.stripe.com/connect/webhooks#connect-webhooks
Hmm .. ok .. I'm requesting the report from an API, not from the Stripe portal/platform. So it seems I need to go to the API team and see how to send that report request as a Connected Account API?
what I'm suggesting is you create an additional Account webhook endpoint and have it listen for reporting.report_run.succeeded events on your own account
I'm not sure what you mean by "your own account". I need to be requesting the report for any account where I receive the payout in my .Net app. When I request the report using the Stripe .net integration, I'm passing the connected account I receive from the payout web hook message.
can you show me how you're passing the connected account when you request the report?
Yes, I can and and thanks for taking a look at it!
public virtual string RequestPayoutSummaryReport(string stripePayoutId, string connectedAccount)
{
var options = new ReportRunCreateOptions
{
ReportType = "connected_account_payout_reconciliation.by_id.summary.1",
Parameters = new ReportRunParametersOptions
{
Payout = stripePayoutId,
ConnectedAccount = connectedAccount
}
};
right, so the connected account ID is being passed as a parameter to the report generation request. like I believe this would be an example of that request: https://dashboard.stripe.com/acct_1QptxoI1VSC7qNYw/test/logs/req_AjWLEtkVCOTSvu
but the report itself is being run on by your account. and therefore the event is delivered to your account. so that's why your Connect webhook doesn't get the event. does that make sense?
quoting the link I sent before:
- Account webhooks are for activity on your own account (for example, most requests made using your API keys and without authenticating as another Stripe account). This includes all types of charges, except those made directly on a connected account.
- Connect webhooks are for activity on any connected account. We send all events on the connected account (including account updates and direct charges) to the Connect webhooks.
I think I understand the issue: When I request the report in my API code (what I sent you above), it is not using the platform account / connect account -- which it needs to. What I'm wondering is how to request that report from the Connect account so the webhook wil fire.
no, you're making the report request correctly. you just need to have an Account webhook set up to catch the event when it succeeds
But wouldn't that mean having a webhook for EVERY account? We have ~600.
you have 600 platforms? or 600 connected accounts that are connected to your platform?
The latter. Sorry. 600 connected accounts on a single platform.
then you just need the Account webhook configured on your single platform
I will give it a whirl then, thanks!
you're welcome!
You were super helpful and very patient with my questions. Please take the rest of the day off!!! Tell you boss I said it was OK ๐
hahaha I appreciate that, but no worries, it's a complicated topic ๐