Skip to main content
PUT
Update dunning settings

Authorizations

X-API-KEY
string
header
required

API Key Authentication.

Body

application/json

The dunning settings of the tenant: the reply-to address, the default dunning schedule, the logo and the primary color of the dunning e-mails, and when they go out.

replyTo
null | string<email>
required

The address that receives the replies to the dunning e-mails. When null, the replies go to the address of the from e-mail of the tenant, or to an address of Aira when the tenant has no from e-mail.

Example:

"financeiro@acme.com"

defaultDunningScheduleId
null | string<uuid>
required

The id of the default dunning schedule, which a customer follows when its creation leaves out the dunning schedule, or null for none. PUT /v1/dunning-schedules/settings refuses an archived dunning schedule, and while the default dunning schedule is archived, a customer whose creation leaves out the dunning schedule follows none.

logoUrl
null | string
required

The http or https URL of the logo that the dunning e-mails show, or null for the default logo. POST /v1/dunning-schedules/settings/logo uploads a logo and returns its URL.

Maximum string length: 2048
Pattern: ^$|^https?://[^\s]+$
Example:

"https://acme.com/logo.png"

primaryColor
null | string
required

The primary color of the dunning e-mails, as a hex code, or null for the default color.

Pattern: ^$|^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
Example:

"#123ABC"

dispatchWindow
enum<string>
required

When the dunning e-mails go out: business_hours sends them from Monday to Friday, from 09:00 to 18:00, Brasília time, and any_time sends them on any day, Saturdays and Sundays included.

Available options:
business_hours,
any_time

Response

The dunning settings of the tenant: the reply-to address, the default dunning schedule, the logo and the primary color of the dunning e-mails, and when they go out.

replyTo
null | string<email>
required

The address that receives the replies to the dunning e-mails. When null, the replies go to the address of the from e-mail of the tenant, or to an address of Aira when the tenant has no from e-mail.

Example:

"financeiro@acme.com"

defaultDunningScheduleId
null | string<uuid>
required

The id of the default dunning schedule, which a customer follows when its creation leaves out the dunning schedule, or null for none. PUT /v1/dunning-schedules/settings refuses an archived dunning schedule, and while the default dunning schedule is archived, a customer whose creation leaves out the dunning schedule follows none.

logoUrl
null | string
required

The http or https URL of the logo that the dunning e-mails show, or null for the default logo. POST /v1/dunning-schedules/settings/logo uploads a logo and returns its URL.

Maximum string length: 2048
Pattern: ^$|^https?://[^\s]+$
Example:

"https://acme.com/logo.png"

primaryColor
null | string
required

The primary color of the dunning e-mails, as a hex code, or null for the default color.

Pattern: ^$|^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$
Example:

"#123ABC"

dispatchWindow
enum<string>
required

When the dunning e-mails go out: business_hours sends them from Monday to Friday, from 09:00 to 18:00, Brasília time, and any_time sends them on any day, Saturdays and Sundays included.

Available options:
business_hours,
any_time
attachmentOptions
object
required

The files that the setup of the tenant produces, which are the only ones that the e-mail of a dunning step can attach.