Use case: I want to only resend webhook attempts that I know never succeeded for specific webhook endpoints (i.e. using the webhook endpoint ID) without logging into the web UI. However, I have not been able to find a way to list the webhook attempts with details (like it does in the web UI) through the API or CLI tool.
So far I can find events that have unsuccessful webhook deliveries, but it only lists how many webhooks were unsuccessful (pending_webhooks
> 0), but no webhook endpoint ID or anything else more specific.
CodePudding user response:
This is not currently possible. You'd need the retrieve the IDs of the specific Event objects you want to re-send before using the CLI. The only way to do that currently is to view the webhook attempts via the Dashboard UI.
stripe events resend evt_xxx --live