1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. UnitRateGraduatedV2

UnitRateGraduatedV2

    UnitRateGraduatedV2 captures the structure of a pricing plan where the free tier is handled via credit grants rather than being baked into the pricing tiers. Contains only paid (on-demand) tiers. For graduated prices, tiers contains multiple entries. For per-unit prices with a single rate, tiers contains a single entry.

    Properties

    • tiers array[UnitRateGraduatedTier] required
      The list of on-demand pricing tiers. For graduated prices, contains multiple tiers. For per-unit prices, contains a single tier.
    • tier integer required
      Tier is an ordered index of where this tier places amongst other tiers. Tiers are 0-indexed.
    • flatFee integer required
      FlatFee is the flat amount to be charged at this tier, if any.
    • upperBound integer required
      UpperBound defines the upper limit, inclusive, that closes out the tier. The lower bound should be inferred from the previous tier if it exists; otherwise zero.
    • costPerResource string required
      CostPerResource is the amount per resource to be charted on top of the flat fee.