#aught66

1 messages · Page 1 of 1 (latest)

junior oliveBOT
topaz cove
#

Hi, have you tried the Retrieve Price API?

neat zenith
#

It does not return the tiers on a graduated price object

topaz cove
neat zenith
#

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']