#mindsetinmeta
1 messages · Page 1 of 1 (latest)
Hi there, how can I help?
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
You mean you want to programmatically retrieve the event object? Yes we have an API for that https://stripe.com/docs/api/events#events
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
evt_1MhOWlRgU6VhWDZVc6n0yfwh
when we query for the event of this id
it returns that it does not exist
req_d97O06fRNwUgZl
OK, this event happens on your connected account, so it can't be found in platform's Dashboard.
what should I do?
You need to open the Connected account's dashboard
then can I query that event through API?
- Go to https://dashboard.stripe.com/test/connect/accounts/overview
- Select the Connected Account from the list
- Click the three-dot button on the upper right and select View Dashboard as this account
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
thanks
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)