#Clément
1 messages · Page 1 of 1 (latest)
Hi there,
promotion code are used only with Checkout. not possible using API
Damned ! Is there plan to support them sooner or later ?
Of course I can, but the ID would have been to track how many time a coupon was used.
i.e. : I'm running a promo offer with my partner, same coupon (20% off) but 10 différents partners. I must know how many times X was used
AFAIK, no. you can get the related couponId from the promotion code then you apply the couponId
Grumph.
Well, assuming that. Is there a possibility for you to ask the dedicated team to add the ability to update "APIly" the times_reedemed field from https://stripe.com/docs/api/promotion_codes/update
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That field is updated internally and automatically by Stripe, once the customer used the promotion code for Checkout:
Number of times this promotion code has been used.
If you want to use the promotion code outside Checkout Session, then you need to keep tracking the reeedemed in your integration