FlowmageDocs

Create sales invoice

BetaChanges data

Issues an invoice to your customer through Mollie, with a link to pay it.

Settings

SettingWhat it is
ConnectionRequiredThe Mollie connection the step signs in with.
Issue as"draft" or "issued" or "paid"
Your reference for the recipientRequiredYour own customer number. Mollie uses it to recognise the same recipient again.
RecipientWho the invoice is for. A business recipient carries other fields than a person.
Invoice linesDescription at most 100 characters, quantity at least 1, and a VAT rate per line.
Payment term"" or "7 days" or "14 days" or "30 days" or "45 days" or "60 days" or "90 days" or "120 days"
E-mail detailsMollie needs these to send the invoice.
Payment detailsMollie needs these to book an invoice that is already paid.
Customer idWith a mandate id, Mollie collects the invoice by itself.
Mandate idtext
Note on the invoicetext
Discounttext
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `mollie`)
status"draft" or "issued" or "paid", by default "draft"
recipientIdentifiertext
recipienttext
linestext
paymentTerm"" or "7 days" or "14 days" or "30 days" or "45 days" or "60 days" or "90 days" or "120 days"
emailDetailstextused when `status` is "issued"
paymentDetailstextused when `status` is "paid"
customerIdtext
mandateIdtext
memotext
discounttext

Output

FieldType
salesInvoiceIdInvoice idstring
salesInvoiceInvoiceobject
statusstring
paymentUrlAddress for the customer to paystring
pdfUrlAddress of the PDFstring
replayedMollie replayed an earlier attemptboolean
Sample output, and the expression for each field
  • paymentUrl"https://payment-links.mollie.com/payment/pl_4Y0eZ"
  • pdfUrl"https://www.mollie.com/invoice.pdf"
  • replayedfalse
  • salesInvoice{}
  • salesInvoiceId"invoice_4Y0eZ"
  • status"issued"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "customerId": "",
    "discount": "",
    "emailDetails": "",
    "lines": "",
    "mandateId": "",
    "memo": "",
    "paymentDetails": "",
    "paymentTerm": "",
    "recipient": "",
    "recipientIdentifier": "<your reference for the recipient>",
    "status": "draft"
  },
  "label": "Create sales invoice",
  "type": "mollie.createSalesInvoice",
  "version": 1
}