#ian-reports-webhook

1 messages · Page 1 of 1 (latest)

patent houndBOT
#

ian-reports-webhook

hoary timber
#

I believe you'd need to listed to reporting.report_type.updated event
https://stripe.com/docs/reports/api#integration-pattern

  1. A reporting.report_type.updated webhook is sent as soon as a new day’s data is available for a given report type. The payload includes the updated ReportType object. You’ll typically receive 20-30 webhooks each day, two for each report type. (Different users are eligible for different reports.)

  2. Upon receiving the reporting.report_type.updated webhook for the desired report type and range of data availability, create a report run. The response contains a new ReportRun object, initialized with status=pending.

  3. When the run completes, a reporting.report_run.succeeded webhook is sent. This webhook includes the nested field result.url. (As mentioned above, in the rare case of a failure, we’ll send
    a reporting.report_run.failed event instead.)

  4. Access the file contents at result.url, using your API key.

broken dagger
#

thanks! i will try listening for reporting.report_type.updated