#mindsetinmeta

1 messages · Page 1 of 1 (latest)

half lakeBOT
paper shard
#

Hi there, how can I help?

violet hollow
#

is there a way I can query an event?

#

we have set up a webhook listening to payout.updated event.

#

then we get the following triggered event:

#

{"_class":"StaticObject","data":{"_wf_body.id":"evt_1MhOWlRgU6VhWDZVc6n0yfwh","_wf_body.object":"event","_wf_body.account":"acct_1MSbGHRgU6VhWDZV","_wf_body.api_version":"2022-11-15","_wf_body.created":1677811162000,"_wf_body.data.object.id":"po_1MhOWkRgU6VhWDZVG9JRdMEP","_wf_body.data.object.object":"payout","_wf_body.data.object.amount":1,"_wf_body.data.object.arrival_date":1677801600000,"_wf_body.data.object.balance_transaction":"txn_1MhOWkRgU6VhWDZVuyWQ6KgT","_wf_body.data.object.created":1677811161000,"_wf_body.data.o

#

we found the event in the body

paper shard
violet hollow
#

evt_1MhOWlRgU6VhWDZVc6n0yfwh

#

when we query for the event of this id

#

it returns that it does not exist

#

req_d97O06fRNwUgZl

paper shard
#

OK, this event happens on your connected account, so it can't be found in platform's Dashboard.

violet hollow
#

what should I do?

paper shard
#

You need to open the Connected account's dashboard

violet hollow
#

then can I query that event through API?

paper shard
violet hollow
#

thanks

paper shard
#

Yes, you can query through API, make sure you specify the Stripe-Account header in the request to make API call for connected account. You should specify a stripe_account in the request.

By specifying a stripe_account, you are telling Stripe that you want to make an API call on behalf of a connected account. You can refer to this doc to learn more about making API request for connected account (https://stripe.com/docs/connect/authentication)