#kaki87_api

1 messages ยท Page 1 of 1 (latest)

high ravenBOT
#

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

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

rose glacier
#

hey there, taking a look

knotty beacon
#

Hi synthrider, I remember you from when I was working at a company a few years ago, I was active here a lot ^^

rose glacier
#

welcome back!

knotty beacon
#

Thank you !

rose glacier
#

For subscriptions with unpaid invoices, the unpaid invoices remain open but further payment attempts are paused. The subscription continues to generate invoices each billing cycle, which remain in the draft state.

#

Paying the most recent non-voided invoice before its due date updates the subscription status to active.

knotty beacon
#

So, what do I do to provide a button that gives the customer a link to pay the overdue balance ?

rose glacier
#

If you update your list request to use draft status, you'll find these invoices, which you can then finalize & pay when ready

#

What do you mean by button here?

#

What are you trying to achieve?

knotty beacon
#

Here's a screenshot of the button I made :

#

When clicking it, while the subscription is in past_due state, the request I made would work, the link I would give back is hosted_invoice_url

#

How do I do the unpaid case ?

rose glacier
#

So that URL doesnt exist for draft invoices

#

You need to finalize it first

knotty beacon
#

Yeah

#

How ?

rose glacier
#

Then it will be open and reayd for payment, including via a URL

knotty beacon
#

So that's 3 requests

rose glacier
#

What do you mean?

knotty beacon
#

1 request to get the invoice ID from the subscription ID and see if it has a URL, 1 request to finalize if no URL, and 1 more to get the URL again

rose glacier
#

You should be able to get the url from the /finalize response -- it includes the invoice object

knotty beacon
#

Okay, thanks !
Also, I must say I liked better how the server was last time I was here, I think there was a general channel where people could hang out, and the threads weren't forcibly closed after a few minutes

rose glacier
#

We made some changes to address some community members not respecting rules and to better organize/clarify the how we help folks and when to talk to support instead etc

knotty beacon
#

Yeah, I understand :/
But yesterday for example it took me a while to try out something that one of your colleague gave me, and it worked, but I lost the chance to tell them and thank them because of the auto-closing...

#

And I miss the general channel

#

The fact that a company has actual devs on Discord, that creates a unique kind of community compared to those who are only filled with the usual "customer service", and I wish we could enjoy that

rose glacier
#

Appreciate you trying to come back to let us know ๐Ÿ™‚
We close by default after long dormancy because most folks don't come back to say anything

#

If you update periodically while testing we'd likely keep it open

knotty beacon
#

Alright, will do !
Well, I just finished updating my code, and this works, so thank you :)

high ravenBOT
knotty beacon
#

Would you consider recreating a general (non-help) channel ?

rose glacier
#

Probably not in the near term -- there was some abuse there and folks expecting questions to be answered etc

#

But I'll flag to my team that this is something you apprecaited and missed, so we can take that into account

knotty beacon
#

Yeah, I understand. Thank you and have a nice day !