-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi Recurly Team,
I hope you're doing well!
While reviewing the API Reference documentation, specifically the Remove Coupon Redemption endpoint, we were wondering if it would be possible to introduce a new API capability. A new endpoint that allows removing a specific coupon redemption by passing both a user_id and a coupon_id?
Based on the current implementation, we would need to call listActiveCouponRedemptions to retrieve all of the user's active coupon redemptions. From there, we'd iterate through each redemption, invoking removeCouponRedemption one by one until we identify the specific redemption we're targeting. After that, we would then need to re-create any previously removed redemptions by calling create_coupon_redemption to restore them. this one functionality is calling three APIs.
This approach involves four separate steps to remove one specific coupon redemption for a user, which isn’t very efficient and can be a bit error-prone. If there’s a more streamlined API or endpoint available, it would really help simplify our process.