Kontorion Billing API
string · requiredstringstringstringbooleanstringstringstringstring
string · requiredstringstringstringbooleanstringstringstringstring
Dunning is the automated process of recovering failed payments. When an invoice payment fails, the dunning policy defines a sequence of escalating actions - retry the payment, send reminder emails, and eventually cancel the subscription if payment isn't recovered.
How it works:
- An invoice payment fails
- The dunning policy's first step activates (e.g., retry after 3 days)
- If the retry fails, the next step activates (e.g., send a reminder email after 7 days)
- Steps escalate until payment succeeds or the final action triggers (e.g., cancel subscription after 30 days)
Dunning policies can be set at the organization level (default for all plans) or per-plan for different escalation paths.
Create or update the organization dunning policy
PUT
https://api.kontorion.eu/v1
/dunning-policy
Get a plan-level dunning policy
GET
https://api.kontorion.eu/v1
/plans/{planId}/dunning-policy
Returns the dunning policy override for a specific plan
path Parameters
planIdPlan UUID
Get a plan-level dunning policy › Responses
Wrapped in data envelope
created_atdeleted_atidis_activenameorganization_idplan_idobject[]
updated_atCreate or update a plan-level dunning policy
PUT
https://api.kontorion.eu/v1
/plans/{planId}/dunning-policy
Creates or updates a dunning policy override scoped to a specific plan
path Parameters
planIdPlan UUID
Create or update a plan-level dunning policy › Responses
Updated policy in data envelope
created_atdeleted_atidis_activenameorganization_idplan_idobject[]
updated_at