4.7 KiB
4.7 KiB
UpdateBalanceParams
Fields
| Field | Type | Required | Description |
|---|---|---|---|
customer_id |
str | ✔️ | The ID of the customer. |
feature_id |
str | ✔️ | The ID of the feature. |
entity_id |
Optional[str] | ➖ | The ID of the entity for entity-scoped balances (e.g., per-seat limits). |
remaining |
Optional[float] | ➖ | Set the remaining balance to this exact value. Cannot be combined with add_to_balance. |
add_to_balance |
Optional[float] | ➖ | Add this amount to the current balance. Use negative values to subtract. Cannot be combined with current_balance. |
interval |
Optional[models.UpdateBalanceInterval] | ➖ | Target a specific balance by its reset interval. Use when the customer has multiple balances for the same feature with different reset intervals. |