#Shady-coupons

1 messages · Page 1 of 1 (latest)

brazen summit
#

Hello! Are you just referring to what's set at customer.discount? Or are you referring to any/all coupons that apply to any of a customer's charges?

spice trout
#

any/all coupons applied to the user

brazen summit
#

Hmm... that's a bit difficult to get since there isn't a single API call you can make to get this.

#

I feel like the easiest way would be for you to track this yourself, but if you need to get this through the API you'd have to list all invoices for a customer and then filter through all of them to get the discounts that were used

spice trout
#

ok. i'll just store it myself

#

thanks

brazen summit
#

👍

spice trout
#

that's what i figured i would do when i couldn't find an easy way to do it in the docs