Skip to main content
POST
Email customers whose charge failed

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json

Who to tell, and which day's failure the mail is about.

tokens
string[]
required

Subscription tokens. Duplicates are collapsed before the batch runs, and the deduplicated count is what the maximum is applied to.

Required array length: 1 - 500 elements
Example:
renewal_date
string<date>
required

The renewal date being worked, as YYYY-MM-DD. A subscription with no failed charge on this date is skipped, so the caller cannot tell a customer about a failure they did not have.

resend
boolean
default:false

Whether to tell customers who have already been told, either by the dunning pipeline or by an earlier operator batch. Defaults to false, so a caller that omits it cannot mail anyone twice.

When true, only the already_noticed and already_emailed skips are waived. Every other skip still applies: a subscription with no failed charge on the date, a customer with no address, and a company with the mail switched off are passed over either way.

Example:

false

Response

Every token answered as sent, skipped, or failed

One entry per token sent, across three lists.

sent_tokens
string[]
required

Customers whose mail was queued and recorded.

skipped_tokens
object[]
required

Customers passed over, each carrying why.

failed_tokens
object[]
required

Tokens that resolved to no subscription of the caller's.

meta
object | null
required