Cancel the current dunning episode for a subscription
POST /api/subscriptions/{id}/cancel-dunning
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).
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Responses
Section titled “ Responses ”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"}