#jenn

1 messages ยท Page 1 of 1 (latest)

unborn roverBOT
barren shell
#

Hello ๐Ÿ‘‹
Unfortunately, once a subscription has been created with the promo code then it counts as a redemption. There's no alternatives that I know of.

past nacelle
#

Ok, thank you for letting me know. Is there an easy way through the API to find all the subscriptions that have used a promotion code? I haven't seen any documentation for that, but that would be helpful!

barren shell
#

Hmm I doubt there's an API endpoint that allows you to filter by promo code, let me reconfirm though

#

Yeah not something that we support by default, a good workaround here would be to add the information in the subscription object's metadata when you create the subscription and then use the search subscriptions API to look for it
https://stripe.com/docs/api/subscriptions/search

past nacelle
#

I see; I didn't know you could search by metadata on subscriptions, that's helpful.

#

Ok, thank you!

barren shell
#

NP! ๐Ÿ™‚ happy to help