#aught66
1 messages · Page 1 of 1 (latest)
Hi, have you tried the Retrieve Price API?
It does not return the tiers on a graduated price object
You sure? It should be here inside the Price object https://stripe.com/docs/api/prices/object#price_object-tiers
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 see that documented as part of the object, but retrieving a price does not return the tiers.
"id": "price_1LcdnSJmf816nHGt1jDWo7gh",
"object": "price",
"active": true,
"billing_scheme": "tiered",
"created": 1661901882,
"currency": "usd",
"custom_unit_amount": null,
"livemode": false,
"lookup_key": "flex_toll_free_minutes",
"metadata": {},
"nickname": "flex_toll_free",
"product": "prod_MLKSFDnWxdXSO9",
"recurring": {
"aggregate_usage": "sum",
"interval": "month",
"interval_count": 1,
"trial_period_days": null,
"usage_type": "metered"
},
"tax_behavior": "exclusive",
"tiers_mode": "graduated",
"transform_quantity": null,
"type": "recurring",
"unit_amount": null,
"unit_amount_decimal": null
}```
Found the trick!
Had to add , expand: ['tiers']