Skip to content

Cancel the current dunning episode for a subscription

POST
/api/subscriptions/{id}/cancel-dunning

Writes off the unpaid billing cycle: the dunning episode is marked lost (exhausted) and the subscription resumes its normal schedule. Requires the subscription’s next dates to be valid (present and not in the past).

id
required
string

Dunning cancelled

object
success
required
boolean
message
required
string

Subscription is not in dunning or its dates are invalid

Example
{
"success": false,
"error": "Cannot cancel dunning: next billing date is in the past",
"errorCode": "INVALID_DATES"
}