#idealover
1 messages · Page 1 of 1 (latest)
Hello 👋
What are you seeing in the response instead?
Hi, this is the response I got {
"active": true,
"billing_scheme": "tiered",
"created": 1691334624,
"currency": "usd",
"custom_unit_amount": null,
"id": "---",
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"object": "price",
"product": "---",
"recurring": {
"aggregate_usage": "sum",
"interval": "month",
"interval_count": 1,
"trial_period_days": null,
"usage_type": "metered"
},
"tax_behavior": "unspecified",
"tiers_mode": "volume",
"transform_quantity": null,
"type": "recurring",
"unit_amount": null,
"unit_amount_decimal": null
}
With tiered billing scheme, the prices are defined under tiers parameter
tieredindicates that the unit pricing will be computed using a tiering strategy as defined using the tiers and tiers_mode attributes.
https://stripe.com/docs/api/prices/object#price_object-billing_scheme
What you'd want to do is expand tiers when you retrieve the price
https://stripe.com/docs/api/prices/object#price_object-tiers
unit_amount and unit_amount_decimal are populated for per_unit billing scheme
Yes the issue is resolved, thanks a lot!