Using API to Find Customer Events?

741 views
Skip to first unread message

M Gib

unread,
Mar 7, 2016, 3:41:51 PM3/7/16
to Stripe API Discussion
I'm a new developer using the Stripe API and are just getting our system in place working with the Stripe API and Webhooks.

My question is this:

- Using the API only, is there any way that I can use a Stripe customer id (cus_12345) and get back a list of Events (not charges or subscriptions) for that particular customer?  Things like customer.source.updated and customer.updated

It looks like I can only search Events using the API by 'date' and 'type' (not customer).  Additionally, I don't see any list of Events that get returned with a customer record via the API.

We need to determine which customers' source cards have changed from when they originally signed up.  I understand that we can use the webhook and get notified when a customer's source data changes and we have that working just fine.  However, I'd also like to see if I can dynamically get this information via the API by just starting with a customer id.

Thanks for any help.

Matthew Arkin

unread,
Mar 7, 2016, 4:02:13 PM3/7/16
to Jake K.
There isn't a documented way to do this via the API.

I would use webhooks and like create some sort of feed in your own database. Like "customer updated card", "evt_XXXXXXX" if I had this as a requirement.

The unofficial, this isn't documented and could break / behave oddly at any point, way would be to query on "related_object" 


--
You received this message because you are subscribed to the Google Groups "Stripe API Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
To post to this group, send email to api-d...@lists.stripe.com.
Visit this group at https://groups.google.com/a/lists.stripe.com/group/api-discuss/.

M Gib

unread,
Mar 8, 2016, 8:35:34 AM3/8/16
to Stripe API Discussion
Thanks Matthew.  That's is what I thought.  I think we are going to use the webhook feed into our own local table solution but maybe I'll take a peek at the related_object for limited use in a pinch...
Reply all
Reply to author
Forward
0 new messages