#gaetan

1 messages · Page 1 of 1 (latest)

hollow anchorBOT
north ibex
#

Hi, sure.

#

A discount represents the actual application of the coupon or the promotion. It is a separate object that starts with di_ id: https://stripe.com/docs/api/discounts. You can pass this di_ object id here.

magic shoal
#

Globally I explain my problem:
I use stripe checkout session page where by the code i put a coupon. this coupon is redeemed and set to 1. whebhook come success and I need to create an invoice manually on this webhook, so i give the coupon when i creating the invoice and the coupon is set to 2.
I search a way to not be set to 2.. but use 1 time only

north ibex
#

You are technically using this coupon twice, once on the Checkout Session and again, when you create an invoice manually. Can I ask why you create an invoice manually?

magic shoal
#

humm is it a new feature ? i'm going to check it

north ibex
#

New-ish, but I think it might be what you're looking for.

magic shoal
#

sure is that I want ! I'm going to test it.

#

thanks you very much