#talelmishali

1 messages ยท Page 1 of 1 (latest)

cerulean bluffBOT
lime raptor
#

Hi! Sorry for the wait. Are you looking at the Price object on the Subscription?

#

@full creek ๐Ÿ‘†

full creek
#

Sorry, got confused there for a sec.

#

Yes.

#

The Price object contain unit_amount, but, when the billing_scheme is tiered , it return null.

lime raptor
#

So you would need to make sure you're reporting usage in order for the quantity to change. Since the tiered billing scheme is part of a Metered Billing model, you would need to make sure you are reporting the quantity that the customer is using.

You do that by creating a Usage Record: https://stripe.com/docs/api/usage_records/create?event_types-payment_intent.payment_failed

full creek
#

I am looking to retrieve the pricing prior of the user subscribing. I can hardcode it on our end, but was looking to pull a single source that owned this price.

lime raptor
#

You can't retrieve the quantity of a Price before the subscription is created. You have to specify the quantity when you use Metered Billing. If you're looking for the Amount, then that can be specified