#devendra_api
1 messages · Page 1 of 1 (latest)
đź‘‹ Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đź”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1359760553635090475
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
I created a one-time invoice and noticed on the Stripe dashboard that a coupon was applied, even though we didn’t apply any. Where did it come from?
coupon is 25% it forver use for subscription why showing in this invoice.
https://dashboard.stripe.com/invoices/in_1RBzQIIE5Vvk0efGlHflhEEp
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
The discount that you set on subscription will be applied on the invoices associated with the subscription
https://dashboard.stripe.com/logs/req_8HF6Z0qJZh37ZF this is the request that you made to create the invoice, and it includes subscription param
But this coupon was applied to the subscription, so it should only apply to recurring invoices—not a one-time invoice.
Let me take a closer look
Even though a discount exists on this invoice, the discount amount is 0
this is the code which is used for create one time invoice.
Yeah, the discount amount is zero, but why is the coupon showing up at all? I don’t want any coupon to appear here.
Ok, thanks for waiting.
The discount amount is zero because the product in the invoice isn't applicable to the coupon. However, since you specified subscription to associate the subscription with this invoice, as I explained earlier, the discounts that set on the subscription will be applied to the invoice.
If this isn't the behaviour that you want, simply remove subscription from the invoice creation request.
if I remove subscription from the invoices create request then I think invoices will not sohwing in subscription ?
Right
Yes you are right