Sample - Stripe API
POST/v1/billing/alerts/{id}/activate

Activate a billing alert

Triggers reactivation of a billing alert so it can trigger again. Use id to identify the alert and expand to request additional fields in the response.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.
  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter · 1 body field
idstringrequired
The unique identifier of the billing alert to activate, limited to 5000 characters.

Optional form-encoded request body used to request expanded response fields.

expandarray<string>optional
Specifies which fields in the response should be expanded.

2 status codes
200Returns the billing alert with its status updated to reflect activation, along with its identifier, type, title, and usage-threshold configuration.
alert_typestringrequired
Defines the type of the alert.
Allowed:usage_threshold
idstringrequired
Unique identifier for the object.
livemodebooleanrequired
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringrequired
String representing the object's type. Objects of the same type share the same value.
Allowed:billing.alert
statusstringoptional
Status of the alert. This can be active, inactive or archived.
Allowed:activearchivedinactive
titlestringrequired
Title of the alert.
usage_thresholdobjectoptional
Encapsulates configuration of the alert to monitor usage on a specific [Billing Meter](https://docs.stripe.com/api/billing/meter).
defaultError response.
errorobjectrequired

Error handling

id must be a string no longer than 5000 characters and must identify the billing alert to activate. Each expand value must be a string no longer than 5000 characters.