4.0 KiB
4.0 KiB
UpdatePlanItemPriceRequest
Pricing for usage beyond included units. Omit for free features.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
amount |
Optional[float] | ➖ | Price per billing_units after included usage. Either 'amount' or 'tiers' is required. |
tiers |
List[models.UpdatePlanTierRequest] | ➖ | Tiered pricing. Each tier's 'to' does NOT include included amount. Either 'amount' or 'tiers' is required. |
interval |
models.UpdatePlanItemPriceIntervalRequest | ✔️ | Billing interval. For consumable features, should match reset.interval. |
interval_count |
Optional[float] | ➖ | Number of intervals per billing cycle. Defaults to 1. |
billing_units |
Optional[float] | ➖ | Units per price increment. Usage is rounded UP when billed (e.g. billing_units=100 means 101 rounds to 200). |
billing_method |
models.UpdatePlanBillingMethodRequest | ✔️ | 'prepaid' for upfront payment (seats), 'usage_based' for pay-as-you-go. |
max_purchase |
Optional[float] | ➖ | Max units purchasable beyond included. E.g. included=100, max_purchase=300 allows 400 total. |