Send email

Send an email with link to a public version of the credit note where it can be printed or downloaded as a pdf

Query parameters

NameDescription
guid globally unique identifier

Guid of the credit note to send

Required

organizationId string

Request model

Model of the email to send
NameDescription
Timestamp string

Optional timestamp of version. If given validate that you got the latest version. This can be used to ensure that the voucher has not been changed since you last fetched it. Defaults to latest version.

Sender string

Sender email. Defaults to organization email if left empty.

CcToSender boolean

Set to true, if copy should be send to sender. Defaults to false.

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.

Returns

200 (ok) if the emails are sent

NameDescription
Recipients Email Recipient[] Show model
NameDescription
Email string

Email of the recipient.

List of recipients.

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

Requests Formats

{
  "Timestamp": "00000000020A5EA8",
  "Sender": "awesome@dinero.dk",
  "CcToSender": true,
  "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
}

Response Formats

{
  "Recipients": [
    {
      "Email": "test@dinero.dk"
    },
    {
      "Email": "test@dinero.dk"
    }
  ]
}