Skip to main content
POST
/
v1
/
billing
/
dunning
/
policies
Create dunning policy
curl --request POST \
  --url https://api.example.com/v1/billing/dunning/policies \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "retryIntervalsDays": [
    123
  ],
  "finalAction": "<string>",
  "isDefault": true
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.paybridgenp.com/llms.txt

Use this file to discover all available pages before exploring further.

Request

name
string
required
Human-readable name, e.g. "Standard 3-strike".
retryIntervalsDays
integer[]
required
Days since the invoice went overdue at which each reminder is sent. e.g. [1, 3, 7] sends reminders at +1 day, +3 days, +7 days. Min 1 item, max 10.
finalAction
string
default:"cancel"
Action to apply when all retries are exhausted. One of cancel, pause, mark_uncollectible.
isDefault
boolean
default:"false"
Set this policy as the merchant default. Only one policy can be default at a time - setting a new default automatically unsets the previous one.

Response

Returns the created DunningPolicy object.

DunningPolicy object

FieldTypeDescription
idstringPolicy id.
namestringPolicy name.
retryIntervalsDaysinteger[]Retry offsets in days.
finalActionstringcancel | pause | mark_uncollectible
isDefaultbooleanWhether this is the merchant default.
activebooleanWhether this policy is active.
createdAtstringISO 8601 timestamp.