#nickdnk_api

1 messages ยท Page 1 of 1 (latest)

slow gazelleBOT
#

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

๐Ÿ“ 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.

dull vigil
#

request increased limits* I mean

#

I only work with 1 payment per invoice, so I just want to go from subscription or from invoice to latest payment intent/charge

#

It's also a little inconsistent, as apparently sometimes data doesn't count, or some endpoints have different restrictions. See #1470474852828975166 message

crystal crater
#

Hi there,
just to clarify, you have either invoice ID and/or subscription ID and want to find the payment intent of the latest payment for that invoice?

dull vigil
#

In this particular case, I have a subscription and I want to list all subscriptions including their payment intent

#

It seems I now need to perform another request per resource in that list, which makes it a lot slower

#

but the problem is the same when listing invoices, as that's also below the 4 limit, see req_gWPzrXoNJzJlEq

crystal crater
#

I have a subscription and I want to list all subscriptions including their payment intent
You mean a subscription and list all invoices incl. their latest Payment Intents?

dull vigil
#

Either subscription -> invoice -> payment or just invoice -> payment. Neither is possible in one go now.

#

See req_gWPzrXoNJzJlEq

#

And this doesn't even include .charge which I'd also need to get the payment method that was used

#

This is terrible for my application. I retrieve invoices or subscriptions along with their payment in a lot of places

#

Mainly just invoice -> payment, but like I said, that's also more than 4 levels.

crystal crater
#

If you have the invoice ID, you could use the List Invoice Payments API, using that invoice ID as parameter and expand ["data.payment.payment_intent.latest_charge"]

dull vigil
#

Yeah but if I'm listing the invoices

#

I will have to do this for each item in the list

#

Previously I could just expand to .payment_intent.latest_charge

crystal crater
#

That is true. We intentionally moved away from this siince the basil API version update

dull vigil
#

Okay, so I guess I will have to rewrite this and see if the invoice payments API will be sufficient

#

Big sad

#

Going to be slow ๐Ÿ™

#

Can you explain to me why this is allowed then? req_VvAVTvLSMWyihc

#

That's 5 levels

#

Or is it because it only counts those that are listed as Expandable ?

#

(and lines.data.pricing.price_details is one object)

#

I guess that's why, otherwise none of this makes sense

crystal crater
dull vigil
#

Alright

#

I'll try and work around it