#jairo094215_webhooks
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/1437788966593237172
๐ 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.
- jairo094215_payment-records-customer-balance, 19 hours ago, 14 messages
- jairo094215_api, 3 days ago, 57 messages
๐ happy to help
And also, could I retry the delivery? Or is it impossible after 15 days?
Create an event destination to receive events at an HTTPS webhook endpoint. Receiving webhook events is particularly useful for listening to asynchronous events such as when a customer's bank confirms a payment, a customer disputes a charge, a recurring payment succeeds, or when collecting subscription payments.
Thanks for the info. I'm trying to retry the event using Stripe CLI but it seems that I can only retry events from Sandbox
I executed : stripe login --api-key pk_live_xxx
you can retry events from live as well
And then: stripe events resend evt_1SKdDUDyCiiQ0txVT92rJhzH --webhook-endpoint=we_17HfwpDyCiiQ0txVppBXEpjr
that's not how it works
But I'm getting this error: No such notification: 'evt_1SKdDUDyCiiQ0txVT92rJhzH'; a similar object exists in live mode, but a test mode key was used to make this request
ah ok, excuse me, I didn't notice this argument
Let me try again
Ok, now there is a different error: The provided key 'rk_live_*********************************************************************************************HrtpRY' does not have the required permissions for this endpoint on account 'acct_16HHobDyCiiQ0txV'. Please use a different key to perform this action
But I specified a different key on login :/
again that's not how this works
let me help you
you need to go to your dashboard and go to the API keys page
find the Restricted Key for the CLI
edit it
and find All webhook permission
Ok, I'm in
Ok, I'm able to resend the event, but it continues failing and I think I know what is happening
let me show you
sure
It seems that this event was originally sent to the endpoint that appears in the snapshot, but it's not our operative webhook endpoint. Maybe it was enabled accidentally, but now this endpoint is disabled
And I think that now my manual retries are using the same endpoint
our active webhook endpoint is: we_1IgSRbDyCiiQ0txVcQepuORc
if you're using the --webhook-endpoint=we_1IgSRbDyCiiQ0txVcQepuORc it should resend to that endpoint if it has been sent to it previously
I'm indicating the webhook endpoint ID by this way:
stripe events resend evt_1SKdDUDyCiiQ0txVT92rJhzH --webhook-endpoint=we_1IgSRbDyCiiQ0txVcQepuORc --live
this is correct
But I think the problem is that this event wasn't sent to this endpoint ID originally?
And then I cannot modify the endpoint at this point?
the webhook event is failing now on the correct endpoint with this failure message:
"Cannot create an invoice for non existent account"
Oh, maybe the retry has generated a new Event ID?
no it's the same event ID
I cannot find this error, and any new event inside the Invoice in_1SKdDRDyCiiQ0txVpkotbqZN
the error I shared is what your code responded to our request
you can find the attempt https://dashboard.stripe.com/events/evt_1SKdDUDyCiiQ0txVT92rJhzH
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.