GET v1/{organizationId}/invoices/{guid}/email/template

Get the email template for the email with link to a public version of the invoice where it can be printed or downloaded as pdf.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
guid

Guid of the invoice to send

globally unique identifier

Required

organizationId

string

None.

Body Parameters

Response Information

Resource Description

Returns the email template

MailoutTemplateReadModel
NameDescriptionType
Sender

Sender email. Defaults to organization email if left empty.

string
Receiver

Receiver email. Defaults to contact email if left empty. If left empty, the contact needs to have an email, otherwise it will cause a bad request. For multiple receivers a comma separated list is also allowed. Fx 'customer@dinero.dk,extrareceiver@dinero.dk'

string
Subject

The subject of the email. Defaults to '{Type} {Number}' (according to the selected invoice language). Fx 'Invoice 3', 'Credit note 4' or 'Offer 12'.

string
Message

Body of the email. If set, then it must contain the tag: [link-to-pdf], so that a link to the pdf can be included. If left empty, defaults to template created in dinero.

string
AddVoucherAsPdfAttachment

Defaults to invoice settings (Fakturaindstillinger > Standard udsendelses-indstillinger). If true, the voucher will be attached to the email as pdf.

boolean
Sample:
{
  "Sender": "awesome@dinero.dk",
  "Receiver": "customer@dinero.dk",
  "Subject": "Email subject.",
  "Message": "Here is my awesome personal text. Be sure to include a link tag! Link to PDF: [link-to-pdf]",
  "AddVoucherAsPdfAttachment": true
}