#jefskoa_webhooks

1 messages ยท Page 1 of 1 (latest)

night lakeBOT
#

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

lilac oxide
#

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?

last bridge
#

I don't see the specific event even though I'm getting the resulting report. The other event I have registered is showing.

night lakeBOT
lilac oxide
#

Can you share the specific event ID you expected to receive?

#

though I'm getting the resulting report
What do you mean by this?

last bridge
#

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.

queen palm
#

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

last bridge
queen palm
#

ok, instead can you share the ID of the webhook endpoint where you were hoping the event would be delivered?

last bridge
#

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.

queen palm
#

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?

last bridge
#

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.

queen palm
#

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

last bridge
#

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?

queen palm
last bridge
#

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.

queen palm
last bridge
#

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?

queen palm
#

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

last bridge
#

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.

queen palm
#

can you show me how you're passing the connected account when you request the report?

last bridge
#

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
}
};

queen palm
#

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.
last bridge
#

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.

queen palm
#

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

last bridge
#

But wouldn't that mean having a webhook for EVERY account? We have ~600.

queen palm
#

you have 600 platforms? or 600 connected accounts that are connected to your platform?

last bridge
#

The latter. Sorry. 600 connected accounts on a single platform.

queen palm
#

then you just need the Account webhook configured on your single platform

last bridge
#

I will give it a whirl then, thanks!

queen palm
#

you're welcome!

last bridge
#

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 ๐Ÿ™‚

queen palm
#

hahaha I appreciate that, but no worries, it's a complicated topic ๐Ÿ™‚