#gaetan
1 messages · Page 1 of 1 (latest)
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.
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
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?
You can now send a post payment Invoice with one time payment on Checkout, https://stripe.com/docs/payments/checkout/post-payment-invoices and it looks it's what you're looking for.
humm is it a new feature ? i'm going to check it
New-ish, but I think it might be what you're looking for.