7.5 KiB
7.5 KiB
AttachItem
Fields
| Field | Type | Required | Description |
|---|---|---|---|
type |
OptionalNullable[models.AttachType] | ➖ | The type of the product item. |
feature_id |
OptionalNullable[str] | ➖ | The feature ID of the product item. Should be null for fixed price items. |
included_usage |
OptionalNullable[models.IncludedUsage] | ➖ | The amount of usage included for this feature (per interval). |
interval |
OptionalNullable[models.AttachInterval] | ➖ | The reset or billing interval of the product item. If null, feature will have no reset date, and if there's a price, it will be billed one-off. |
interval_count |
OptionalNullable[float] | ➖ | Interval count of the feature. |
entity_feature_id |
OptionalNullable[str] | ➖ | The feature ID of the entity (like seats) to track sub-balances for. |
usage_model |
OptionalNullable[models.UsageModel] | ➖ | Whether the feature should be prepaid upfront or billed for how much they use end of billing period. |
price |
OptionalNullable[float] | ➖ | The price of the product item. Should be null if tiered pricing is set. |
tiers |
List[models.Tiers] | ➖ | Tiered pricing for the product item. Not applicable for fixed price items. |
billing_units |
OptionalNullable[float] | ➖ | The billing units of the product item (eg $1 for 30 credits). |
reset_usage_when_enabled |
OptionalNullable[bool] | ➖ | Whether the usage should be reset when the product is enabled. |