I need to retrieve a price using Stripe API with the tiers, currency_options and tiers inside the currency_options. The following CLI command does return tiers at the root object and currency_options, but not tiers inside the currency_options. Why is that?
I do see the tiers for the currencies in the dashboard for this price.
stripe prices retrieve X
-d "expand[0]"=tiers
-d "expand[1]"=currency_options.tiers
Returns:
{
"id": "X",
"object": "price",
"active": true,
"billing_scheme": "tiered",
"created": 1717060175,
"currency": "eur",
"currency_options": {
"eur": {
"custom_unit_amount": null,
"tax_behavior": "exclusive",
"unit_amount": null,
"unit_amount_decimal": null
},
"usd": {
"custom_unit_amount": null,
"tax_behavior": "exclusive",
"unit_amount": null,
"unit_amount_decimal": null
}
},
"custom_unit_amount": null,
"livemode": false,
"lookup_key": null,
"metadata": {},
"nickname": null,
"product": "X",
"recurring": {
"aggregate_usage": null,
"interval": "month",
"interval_count": 1,
"meter": null,
"trial_period_days": null,
"usage_type": "licensed"
},
"tax_behavior": "exclusive",
"tiers": [
{
"flat_amount": null,
"flat_amount_decimal": null,
"unit_amount": 1500,
"unit_amount_decimal": "1500",
"up_to": 10
},
{
"flat_amount": null,
"flat_amount_decimal": null,
"unit_amount": 1200,
"unit_amount_decimal": "1200",
"up_to": null
}
],
"tiers_mode": "volume",
"transform_quantity": null,
"type": "recurring",
"unit_amount": null,
"unit_amount_decimal": null
}