#yathartha_api

1 messages ¡ Page 1 of 1 (latest)

thin larkBOT
#

👋 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/1273935381091319810

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

ivory cedar
mellow sage
#

This will lead to the business logic failure as we have both oneoff and recurring types. which will create subscription schedule

ivory cedar
#

Yeah I mean not sure what to tell you. You can't add a one-time price as an item to recurring subscription/schedule. You'd add it as an invoice item, as per above, so it's included on the invoice for that phase

mellow sage
#

few weeks back i have created a ticket regarding the update of the subscription schedule, where even if i update the schedule with the proration none, it was updating the schedule keeping proration behaviour so, the client had to refund some amount to the customer

mellow sage
ivory cedar
#

I'm not sure what to tell you. You're trying to add a one-time price as a recurring item on a schedule phase. It won't work, you can only add recurring prices there

mellow sage
#

further i have talked with the support here and she told me to use stripe subscription update instead. which again works as told but while updating the subscription to oneoff, yet again it says i cannot update the cancellation behaviour as it is managed by the schedule

mellow sage
ivory cedar
#

Subscriptions are only for recurring payments, regardless of whether there's an associated schedule or not. If you want to charge an ad-hoc amount once (e.g. a one-time price), then you'd use the add_invoice_items parameter I shared above and it'll be included on the next invoice for that phase

mellow sage
#

so it is that we should not /cannot update the subscription from recurring to one off?

ivory cedar
#

Exactly

mellow sage
#

thanks

#

I will try using add_invoice_items

#

Can you please wait for sometime, I will try to use the above way.thanks