Jupiter ERP
Account API

CreateDunningRequest

Request to create a dunning (draft). Contact and address are taken from the invoice. Either invoice_id or dunning_id is required; dunning_id creates the next dunning level from an existing dunning (and closes the source).

CreateDunningRequest (object)

Request to create a dunning (draft). Contact and address are taken from the invoice. Either invoice_id or dunning_id is required; dunning_id creates the next dunning level from an existing dunning (and closes the source).

FieldTypeDescription
currency_codestringCurrency code (e.g. EUR); otherwise from invoice or account
datestring (date)Dunning date (YYYY-MM-DD); default is today
due_datestring (date)Due date (YYYY-MM-DD); otherwise from configuration
dunning_fee_amountintegerDunning fee in cents; if omitted, taken from document configuration (levels 0–3)
dunning_idintegerCreate next dunning from this dunning (invoice and level+1 taken from it; source dunning and other open dunnings for same invoice are closed)
dunning_levelinteger0 = payment reminder, 1+ = dunning level; if omitted, next level is determined automatically
exchange_ratestringOptional exchange rate to EUR (foreign units per 1 EUR, ECB convention). When omitted, it is prefilled from the daily ECB rate for the document date.
invoice_id*integerInvoice this dunning is for (required; when creating from dunning, use source dunning's invoice_id)
print_background_idintegerLetterhead/print background template
print_layout_idintegerPrint layout
print_optionsobject
FieldTypeDescription
show_contact_numberbooleanShow contact number
show_folding_marksbooleanShow folding marks
show_footerbooleanShow footer
show_headerbooleanShow header
show_item_pricesbooleanShow item prices
show_item_quantitiesbooleanShow item quantities
show_item_skubooleanShow item SKU
show_item_tax_ratebooleanShow item tax rate
show_item_totalsbooleanShow item totals
show_logobooleanShow logo
show_logo_textbooleanShow logo text
show_page_numbersbooleanShow page numbers
show_signature_fieldbooleanShow signature field
show_termsbooleanShow terms
show_totalsbooleanShow totals
service_object_idsinteger[]

array

Elements

integer

subjectstringSubject line; otherwise from text templates
text_bottomstringFooter text (HTML)
text_topstringHeader text (HTML)
Example (JSON)
{
  "invoice_id": 0,
  "dunning_id": 0,
  "dunning_level": 0,
  "dunning_fee_amount": 0,
  "date": "2026-01-15",
  "due_date": "2026-01-15"
}
Schema CreateDunningRequest · Jupiter ERP