{"action":"closed","issue":{"url":"https://api.github.com/repos/recurly/recurly-client-php/issues/193","labels_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/193/comments","events_url":"https://api.github.com/repos/recurly/recurly-client-php/issues/193/events","html_url":"https://github.com/recurly/recurly-client-php/issues/193","id":115859957,"number":193,"title":"Support for getting a list of coupon redemptions for a given coupon","user":{"login":"DrOhReally","id":792321,"avatar_url":"https://avatars.githubusercontent.com/u/792321?v=3","gravatar_id":"","url":"https://api.github.com/users/DrOhReally","html_url":"https://github.com/DrOhReally","followers_url":"https://api.github.com/users/DrOhReally/followers","following_url":"https://api.github.com/users/DrOhReally/following{/other_user}","gists_url":"https://api.github.com/users/DrOhReally/gists{/gist_id}","starred_url":"https://api.github.com/users/DrOhReally/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrOhReally/subscriptions","organizations_url":"https://api.github.com/users/DrOhReally/orgs","repos_url":"https://api.github.com/users/DrOhReally/repos","events_url":"https://api.github.com/users/DrOhReally/events{/privacy}","received_events_url":"https://api.github.com/users/DrOhReally/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-09T11:38:55Z","updated_at":"2015-11-10T14:41:42Z","closed_at":"2015-11-10T14:41:42Z","body":"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.\r\n\r\n```php\r\n$coupon = Recurly_Coupon::get('CouponCode');\r\n$redemptions = $coupon->getRedemptions();\r\n//or\r\n$redemptions = $coupon->redemptions->get();\r\n//or\r\n$redemptions = Recurly_CouponRedemptionList::getForCoupon('CouponCode');\r\n```\r\n\r\nThanks :)"}}