Force Dunning End

View as Markdown
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_idstringRequired
account_idstringRequired

Headers

X-Restate-Secret-Keystring or nullOptional
X-System-Reasonstring or nullOptional

Response

Successful Response
statusstring
reasonstring
subscription_cancelledbooleanOptionalDefaults to false
dunning_behaviorstring or nullOptional

Errors

422
Unprocessable Entity Error