#talelmishali
1 messages ยท Page 1 of 1 (latest)
Hi! Sorry for the wait. Are you looking at the Price object on the Subscription?
@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.
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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.
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