recurly/recurly-client-php — Issue #13: Recurly_CouponRedemption::get() not found error
Author: TheDeveloper
Created: 2011-11-03 15:06:19+00:00
State: open

As per the official [Redeeming Coupons](http://docs.recurly.com/client-libraries/php/coupon-redemption) documentation, the following is supposed to look up an account's active coupon redemption:

$redemption = Recurly_CouponRedemption::get('account_code');

This function call triggers an exception:

PHP Fatal error: Uncaught exception 'Recurly_NotFoundError' with message 'Object not found' in .....response.php:48

The API url being accessed is /accounts/{ACCOUNT_CODE}/coupon. This appears to be throwing a 404. Should it not be /accounts/{ACCOUNT_CODE}//redemption instead?

So far the coupon implementation in SDK v2 has been poor.