#niceone_api

1 messages ยท Page 1 of 1 (latest)

earnest thunderBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1254809967131627622

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

bright stratus
#

*potion = option ๐Ÿ™‚

old saffron
#

Hello

#

Yep the upcoming Invoice API should handle this all for you

#

Have you tested it out with that?

bright stratus
#

for now we are using it just to tell that the existing coupon assigned to subscription should be used when doing the calculation

#

and now we want add possibility to add new one

#

what I don't get is what should I set when constructing the Discount object (java)

#

is it enough to set only a coupon field?

#

I see that there is also a 'discount' field, but not sure what is iit for

old saffron
#

Yes coupon should take care of it if the coupon is already created

bright stratus
#

ok

#

and if I want to use the already assigned one + new one, then I just pass list of two Discount objects in InvoiceUpcomingParams ?

old saffron
#

Yep

bright stratus
#

ok, thanks for confirmation