#themechanic_reportruns-parameters-accountheader
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/1264976272921198752
๐ 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.
- themechanic_webhooks, 3 days ago, 7 messages
- themechanic_webhooks, 5 days ago, 13 messages
- themechanic_api, 6 days ago, 28 messages
Hi ๐
Can you share API request IDs for these requests that return the error message? They will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Thanks for this, taking a look now
Okay. The issue is essentailly what the error says it is. You cannot specify the account ID in the parameters argument for the Report Run API.
https://docs.stripe.com/api/reporting/report_run/create#create_reporting_report_run-parameters
Instead, you need to make the API request on the Connect Account by using the Stripe-Account header. We document how to do this here.
oh ok, the doc is ambigious
in create report doc api there is a parameter:
parameters.connected_account
string
Connected account ID to filter for in the report run.
Ah yes. Unfortunately there is some discrepancy between different report types with respect to what parameters they will accept. Getting the balance right between flexibility and ease of use is tricky.
You can see individual report types and the parameters they will accept here
https://docs.stripe.com/reports/report-types/balance
ok thanks ๐
Oh, you can also see the Connect specific report types here
https://docs.stripe.com/reports/report-types/connect
Sorry we have different docs for the different categories of report type
are we ok than my webhook in main account should be triggered when i create a report with for a connected account ? my webhook seems to not be triggered
If you make a request on a Connect Account (using the Stripe-Account header), it will not create events on your main webhook since the changes those events are generated for are not occurring on your account.
To receive webhook events for those changes, you will need to implement a Connect webhook endpoint.
https://docs.stripe.com/connect/webhooks
Okay great! Happy to help ๐