#devendra_api

1 messages · Page 1 of 1 (latest)

tribal bluffBOT
#

đź‘‹ 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.

hybrid axle
drifting agate
#

The discount that you set on subscription will be applied on the invoices associated with the subscription

hybrid axle
#

But this coupon was applied to the subscription, so it should only apply to recurring invoices—not a one-time invoice.

drifting agate
#

Let me take a closer look

#

Even though a discount exists on this invoice, the discount amount is 0

hybrid axle
#

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.

drifting agate
#

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.

hybrid axle
#

if I remove subscription from the invoices create request then I think invoices will not sohwing in subscription ?

Right

drifting agate
#

Yes you are right