Create sales invoice
BetaChanges data
Issues an invoice to your customer through Mollie, with a link to pay it.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Mollie connection the step signs in with. |
| Issue as | "draft" or "issued" or "paid" |
| Your reference for the recipientRequired | Your own customer number. Mollie uses it to recognise the same recipient again. |
| Recipient | Who the invoice is for. A business recipient carries other fields than a person. |
| Invoice lines | Description 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 details | Mollie needs these to send the invoice. |
| Payment details | Mollie needs these to book an invoice that is already paid. |
| Customer id | With a mandate id, Mollie collects the invoice by itself. |
| Mandate id | text |
| Note on the invoice | text |
| Discount | text |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `mollie`) |
status | "draft" or "issued" or "paid", by default "draft" |
recipientIdentifier | text |
recipient | text |
lines | text |
paymentTerm | "" or "7 days" or "14 days" or "30 days" or "45 days" or "60 days" or "90 days" or "120 days" |
emailDetails | textused when `status` is "issued" |
paymentDetails | textused when `status` is "paid" |
customerId | text |
mandateId | text |
memo | text |
discount | text |
Output
| Field | Type |
|---|---|
salesInvoiceIdInvoice id | string |
salesInvoiceInvoice | object |
status | string |
paymentUrlAddress for the customer to pay | string |
pdfUrlAddress of the PDF | string |
replayedMollie replayed an earlier attempt | boolean |
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
}