Get email template

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

Query parameters

NameDescription
guid globally unique identifier

Guid of the credit note to send

Required

organizationId string

Returns

Returns the email template

NameDescription
Sender string

Sender email. Defaults to organization email if left empty.

Receiver string

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'

Subject string

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

Message string

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.

AddVoucherAsPdfAttachment boolean

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

v1/{organizationId}/sales/creditnotes/{guid}/email/template

Response Formats

{
  "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
}