#johnnylivettv

1 messages ยท Page 1 of 1 (latest)

gray trailBOT
hasty gale
#

There's some support for think via Checkout/PaymentLink flows, but in your own UI flows you'd need to look up the customer and check for subscriptions

broken rapids
#

okay yeah so no one query i twould have to be multiple

hasty gale
#

Assuming you de-dupe similarly, there should only ever be zero or one

broken rapids
#

get all customers with said email address loop through each active sub

#

and count essentialyl

#

yeah that is exactly how i dedupe!

hasty gale
broken rapids
#

just wasn't sure if there was a one stop query or not

#

thanks for the help

hasty gale
#

Hmm actually you can use expansion via Search if you attach a query parameter:

#

https://api.stripe.com/v1/customers/search?expand[]=data.subscriptions
So that should work via the SDKs too, allowing a one-shot

#

YOu'd get the customer search results back with the subscriptions included, if present

broken rapids
#

that is awesome

#

thank you so much

hasty gale
#

NP!

gray trailBOT
severe shoal
#

๐Ÿ‘‹ anything else we can help with?

broken rapids
#

nope all good thanks ๐Ÿ™‚