#naughty developer

1 messages · Page 1 of 1 (latest)

jovial forgeBOT
proven path
#

hi! what do you mean by 'get' exactly? we do support tiered Prices.

slow sable
#

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

proven path
#

what's the Price ID price_xxx you created so I can have a look?

slow sable
#

price_1MThdjIfyyzwPELMgwRayaOt

proven path
#

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

slow sable
#

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

proven path
slow sable
#

alright thanks karl

#

you have earned the respect of naughty developer