#naughty developer
1 messages · Page 1 of 1 (latest)
hi! what do you mean by 'get' exactly? we do support tiered Prices.
i want some kind of amount to show for my frontend
like my price is tirered
volume pricing
1-5 x amount
6-10 x amount
i want the initial amount
i dont see any amounts in these apis
unit_amount is always null in this
i understand that
but i want some kind of price i can show
at the frontend
initial amount
For example Plan A starts at X amount per month
what's the Price ID price_xxx you created so I can have a look?
price_1MThdjIfyyzwPELMgwRayaOt
tiers[0] in the returned object has the details of the first Tier.
{
flat_amount: null,
flat_amount_decimal: null,
unit_amount: 29900,
unit_amount_decimal: "29900",
up_to: 5,
}
that information could be used to display "0 -> 5 costs 299.00" (you start at 0 since since it's the first tier) straightforwardly enough
oh i have to use the tiers parameter
can i know u got it from price api or plan api?
because there's nothing in the api documentation
about this