price object not showing flat fee

24 views
Skip to first unread message

Bob Lund

unread,
Oct 1, 2024, 3:54:36 PM10/1/24
to Stripe API Discussion

Hi,

I've got a monthly recurring product with 2 tiers, graduated
0 - 1,000   $0.00 per unit, $1.00 flat fee
1,001 -      $0.003 per unit

When I retrieve the price object:
tiers_mode == 'graduated'
unit_amount == null

Neither the price nor associated product objects show the $1.00 flat fee or per unit fee for > 1000.

How can I get that information via the JavaScript API?

Thanks
Bob

Remi J.

unread,
Oct 1, 2024, 4:31:19 PM10/1/24
to api-d...@lists.stripe.com
Hey Bob,

What you are using is called "tiered pricing" and is documented here [1]. When you look at a Price object [2] in our API it has a `tiers` property [3]. That property is not returned by default and is what we call "includable" which means you need to explicitly request it when you retrieve the object. This is done using our Expand feature [4][5] and is documented in this step [6].

I hope this helps but if you have any follow up questions, feel free to join our Discord server [7] where we can help you in real-time with code-related questions. Or reach out to our support team [8].
Best,
Remi


To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.
Reply all
Reply to author
Forward
0 new messages