#Ghar
1 messages · Page 1 of 1 (latest)
Thanks for reporting that bug. It sounds like we aren't providing the Stripe API version so we are defaulting to your account's API version but that doesn't support those parameters
I will file a bug report so that we can fix that. In the mean time you can use the CLI to resend those events
Thanks, but my account API is also 2022-11-15
Stripe CLI same issue - but gives error no such endpoint.
The endpoint seems fine
stripe events resend evt_1MNI8wGa4fn7zJwNzn0lFvpM --webhook-endpoint=http://localhost:3000/webhooks/stripe --account=###
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such webhook endpoint: 'http://localhost:3000/webhooks/stripe'",
"param": "webhook_endpoint",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_k4bfliyp5E9DnT?t=1673020403",
"type": "invalid_request_error"
}
}
curl -X POST -H "Content-Type: application/json" -d '{"message": "Hello, World!"}' http://localhost:3000/webhooks/stripe
{"status":"ok"}%
For that --webhook-endpoint argument, it is expecting the ID of the endpoint (we_123) not the URL
You can find the Id on the webhook's page in your dashboard https://dashboard.stripe.com/test/webhooks
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
cool let me try that
I do not see any endpoints, just a local listener
probably due to using Stripe CLI to route endpoint to localhost
Yeah the local listener would be the CLI endpoint. That ID should be the one to provide here
Or if you don't provide an endpoint ID at all it should just resend to all applicable endpoints including your local listener
If you click on its entry I believe it should take you to a page for it