#localbrownboy_api

1 messages ยท Page 1 of 1 (latest)

ocean domeBOT
#

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

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

abstract talon
#

Hi there

chilly elk
#

Hello :)

abstract talon
#

I see this SubscriptionItem is using a Price that uses billing_scheme: 'tiered', This means there is no unit_amount

#

You'll need to look at the Price's tiers

chilly elk
#

So seperate request to price with whatever id and then there will be a cost per tier?

abstract talon
chilly elk
#

sorry you lost me there.

#

is this incorrect?

abstract talon
#

tiers under items.data.price is not automatically included in the response

chilly elk
#

okay, i get what you are saying, I will implement that

#

thank you very much :)

#

Take care, I will return if i have any more questions

abstract talon
#

Sure thing, happy to help!

chilly elk
abstract talon
#

Ah, no, this won't be possible

#

Not because list calls don't support expansion but because expansion can only be done four layers deep

chilly elk
#

I can make a seperate call to get the tiers off a price

#

so v1/prices/id

but then thats a get request

#

how do i expand off a get request?

abstract talon
#

Right, you'll need to make a separate call to get the Price

abstract talon
chilly elk
#

its still not there

#

what error am i making?

#

Oh i got it

abstract talon
#

Oh

#

?

chilly elk
#

the expand was meant to be a query param

#

not a part of the body

#

thanks so much :)

#

I can take it from here