#mateusz-kuda_api

1 messages ยท Page 1 of 1 (latest)

keen flaxBOT
#

๐Ÿ‘‹ 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/1227210985455226921

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

azure horizonBOT
tender wigeon
#

๐Ÿ‘‹ happy to help

#

what do you mean by valid here?

#

is is still active?

blazing dome
#

yes

#

and by acitve i mean everything like end date and usage

#

Do you want to said that active = true means is valid?

tender wigeon
#

so basically if it's a new subscription you would pass in everything that you would normally pass to a subscription (customer and subscription_... fields)

blazing dome
#

Yes i know this

tender wigeon
#

and invoice_items

#

with the promotion code

blazing dome
#

and for new subscritpion we can use during create subscription

tender wigeon
#

and if it's an existing subscription you would pass the subscription ID

blazing dome
#

Ok, great then

tender wigeon
#

in both cases if you want to make sure that the discount will apply is to retrieve the upcoming invoice before creating/updating the subscription

blazing dome
#

So if promo code will not be valid, then I will go and error yes? Or I will get full price?

tender wigeon
#

and see if it was applied or not

blazing dome
#

Ok thanks then

#

I think I know everything

tender wigeon
#

sure let me know if you need any more help