#markan97-promotioncode-subscription
1 messages · Page 1 of 1 (latest)
Hi 👋
If your promo code was created to only be valid for a single use then it was consumed and you will need to create a new one.
I understand that, but it has not been used, the payment has not been completed.
Do you have an example of the promo code in question?
Or the request where it was attached?
https://stripe.com/docs/api/promotion_codes/create#create_promotion_code-restrictions-first_time_transaction This parameter is not clear to me, would it help me?
What are you trying to do?
I want the promo code to be validated as used only after successful payment.
Okay then that parameter is not useful to you
And I would still need a request ID where you created the subscription with the promo code to help further
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
When this is attached to the subscription it is consumed, regardless of whether the payment was completed or not. If you want to apply another one-time promo code you should create a new one.
wow...
THe logs show the promo code was set as consumed during the CreateSubscription action
Is there a way to reactivate it if the subscription is deleted?
You can try updating the active boolean in an Update call: https://stripe.com/docs/api/promotion_codes/update#update_promotion_code-active
I'll try