print) and
how it travels (delivery). All of them are optional and all have defaults,
so a minimal create is already a valid letter.
Print options
Theprint object controls the printing itself.
Delivery classes
The top-leveldelivery field sets the postal class.
Not every delivery class is available for every destination. Price the exact
combination first with
POST /v1/letters/price — it confirms the combination
and returns what it costs. See Pricing.Set the options on a create
Print and delivery ride on the same create call:Payment slips (QR-bill, SEPA)
Many European invoices ship with a payment slip — a region-standard, scannable slip the recipient uses to pay. There are two ways to add one: have Dairo generate the slip from apayment object, or bring your own slip already
drawn in the PDF and declare it with the paymentSlip flag.
Match the scheme to the destination —
qr for Switzerland, sepaDe for
Germany, sepaAt for Austria. A slip only carries meaning in the region whose
standard it follows.
Generate the slip with a payment object
Pass a payment object — the scheme type, the payee as a creditor block,
and the amount — and Dairo renders a standards-compliant payment part
full-width at the bottom of the letter, then prints the sheet on the matching
stationery.
A generated
payment slip is only available when Dairo renders the letter —
pair it with a templateId, not pdfBase64 or file. Pairing payment with
an inline PDF fails with 400 (“Payment slips require a template”). For a PDF
that already draws its own slip, use the paymentSlip flag instead.payment block — a
sepaDe type, a EUR amount, and a German IBAN:
payment (German SEPA)
Bring your own slip with the paymentSlip flag
If your PDF already lays out the QR-bill or SEPA slip — say your invoicing
tool draws it exactly where you want — set paymentSlip to qr, sepaDe, or
sepaAt instead of passing a payment object. The flag generates nothing; it
declares the kind of slip your document already contains so the letter is
printed on the right stationery.
payment or paymentSlip, not both — payment makes Dairo draw
the slip, paymentSlip declares one you drew yourself. Omit both for an
ordinary letter.
Stationery on the returned letter
The returned letter reports its stationery inpaperTypes — standard (the
default), qr, sepa_de, or sepa_at — and echoes the chosen slip as
paymentSlip (qr, sepaDe, sepaAt, or null), whether Dairo generated
the slip or you supplied your own. A price request accepts the same
paperTypes tokens so a quote can mirror the letter you plan to send.
Next steps
- Send a letter — use these options in a full create call.
- Letter templates — the render path that generated payment slips require.
- Status & tracking — follow the letter once it is posted.