Force Dunning End
Force dunning to end immediately (internal workflow-only endpoint).
Called by Restate when hard cap or timeout safeguards are triggered
to forcibly end dunning regardless of normal evaluation logic.
This endpoint:
1. Finds all active dunning states for the subscription
2. Transitions them to "ending" with reason from the safeguard
3. Applies the account's configured dunning behavior
4. Returns the result to Restate
This is an emergency endpoint - should only be triggered by safeguards,
not by normal dunning flow.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
subscription_id
account_id
Headers
X-Restate-Secret-Key
X-System-Reason
Response
Successful Response
status
reason
subscription_cancelled
dunning_behavior
Errors
422
Unprocessable Entity Error