#a2e_maxammann

1 messages · Page 1 of 1 (latest)

cloud treeBOT
#

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

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

toxic dust
lilac shoal
toxic dust
#

I'm gonna have to jump unfortunately for ~1h but let me know if you need more information

#

this is it: req_4v9grxUJnBu8aY

#

btw I also have another question which is how to conver the preview into an invoice. Previously it was possible to pay upcoming invoices. This is the reuqest for that problem: req_3dc5u0cYcPEUNY

lilac shoal
#

What is the expected output from this request req_4v9grxUJnBu8aY?

toxic dust
lilac shoal
#
  1. I'm unable to create a preview invoice for all subscriptions or all open invoices items
    You need to list the subscriptions and then use the preview API in order to fetch the corresponding invoice preview
#
  1. I'm unable to "pay" preview invoices
    Yes that's exepcted, you can pay only open invoices (created one)
toxic dust
#

Before the breaking change it was a possible to have only one

toxic dust
cloud treeBOT
lilac shoal
toxic dust
#

Definitely I want to update however. The API library we are using is updating so it's a about time.

#

However you are right! We could leave that one endpoint on the old version

#

A bit hackish but that might work until I find a good solution

lilac shoal
#

Not sure I understand the difference here, do you have a request Id with the previous API version?

toxic dust
#

here you go: req_Fb3VZZwpu85orx

#

that one only gets has a customer as paramter and returns an invoice. I'm trying to have the same behavior in the new API

lilac shoal
#

That customer at that moment, had only one Subscription then ?

toxic dust
#

I do not know that. The documentation says:

If neither subscription nor subscription_details.items is provided, you will retrieve the next upcoming invoice from among the customer’s subscriptions.
Its plural subscriptions

#

maybe its only the most recent but then the docs are wrong

lilac shoal
#

Yes but the invoice is for one single Subscription

toxic dust
#

Interesting, I wonder how the previous one chose it if there were multiple subscriptions

cloud treeBOT
toxic dust
#

btw I'm currently trying to fall back to the old method so I can move forward. still interested though in how to do the upgrade later on

#

@daring brook if you dont want to read the above the issue is that the new create preview api behaves differently than the previous upcoming api

#

if only the customer is provided, the old api returns a result, the new one returns an error

daring brook
#

Hey there

#

Yes that seems to be the specific change here

Additionally, you can no longer preview the next invoice for a customer across all their subscriptions on the Create Preview Invoice API.
so you must specify eg a subscription (or similar) you want to preview

toxic dust
#

ooh I skipped that one