Set Cost Threshold
telgea_set_cost_thresholdSet a monthly spend cap for DATA, international VOICE, SMS, or MMS usage at organisation, team, or user level; reaching the cap pauses that usage, and the response notes if it applies from next month.
Instructions
Set a monthly spend cap on DATA, VOICE (international), SMS or MMS for the organisation, a team or a user. Reaching it pauses that usage. Requires TELGEA_ENABLE_WRITES=true on the server. May apply from next month; the result says so (appliesFromNextMonth).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | No | Team the threshold is for. Omit teamId and userId for the organisation. | |
| userId | No | User the threshold is for. Omit teamId and userId for the organisation. | |
| maxAmount | Yes | Monthly cap in the organisation’s currency. | |
| usageType | Yes | VOICE means international calling. |