Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for getting a list of coupon redemptions for a given coupon #193

Closed
emycakes opened this issue Nov 9, 2015 · 2 comments
Closed
Labels
V2 V2 Client

Comments

@emycakes
Copy link

emycakes commented Nov 9, 2015

Would really appreciate a way to quickly retrieve a list coupon redemptions for a given coupon. At the moment an accurate tracking is not possible without looking up coupon redemptions for each account. This is not viable when your client has thousands of accounts.

$coupon = Recurly_Coupon::get('CouponCode');
$redemptions = $coupon->getRedemptions();
//or
$redemptions = $coupon->redemptions->get();
//or
$redemptions = Recurly_CouponRedemptionList::getForCoupon('CouponCode');

Thanks :)

@emycakes
Copy link
Author

nevermind, found redemptions stub object in the coupon recurly object. Docs could be a little more clear about this

@drewish
Copy link

drewish commented Nov 10, 2015

Ah yeah +1 on a better example in the docs. /cc @csmb

@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

No branches or pull requests

3 participants