#jones.jeffery
1 messages · Page 1 of 1 (latest)
Hello! Yes, when viewing an Event in the Dashboard you can see what generated it.
Is that "Source" present in the webhook?
No, this is Dashboard only.
On Event objects we do have a request property with some details though: https://stripe.com/docs/api/events/object#event_object-request
Ok. That may help. Do you know if on completion of a Checkout Session if say a Subscription would come back with the request id as "automatic" or the initial checkout session request
It would probably be neither, it would probably be the confirmation request made by the customer.
That said, I want to clarify that you can't retrieve details about requests from the API.
You would need to look them up in the Dashboard.
So I don't think this will work for you.
A different way to go about this is to use metadata in your code to flag changes made by your code, then look for changes that don't include the metadata to determine which ones are coming from other places.
Would meta data persist from a Checkout Session to the subscription.created and invoice.created webhooks that get created from it?
No. You can fetch the associated Checkout Session to get the metadata though.
For example, you could find the Checkout Session that created a Subscription by listing Checkout Sessions based on subscription: https://stripe.com/docs/api/checkout/sessions/list#list_checkout_sessions-subscription