chargebee / chargebee-typescript

Typescript library for the Chargebee API.
https://apidocs.chargebee.com/docs/api?lang=typescript
MIT License
22 stars 16 forks source link

Applying coupons when creating subscription not working #29

Closed bluetiger1008 closed 2 years ago

bluetiger1008 commented 2 years ago

Create subscription actually works but coupons are not applied though I send coupon_ids as params like this: chargebee.subscription.create_with_items("xxxxx", { "subscription_items":[{"item_price_id":"xxxxx","unit_price":418800}], "coupon_ids":["TROOM"] });

Is this bug of this library or chargebee backend issue?

bluetiger1008 commented 2 years ago

I tested CURL using post man, and I see coupon_ids is added. so I think this is issue in this library.

cb-prajaktachavan commented 2 years ago

Hi, This issue is fixed in v2.7.1 so closing this issue.