FlowmageDocs

Create sales invoice

BetaChanges data

Draws up an invoice for a Moneybird contact, line by line.

Settings

SettingWhat it is
ConnectionRequiredThe Moneybird connection the step signs in with.
Administration idLeave empty to use the connection's administration. Pick another this token can reach, or type its id — the List administrations node gives you the ids.
Contact idRequiredThe Moneybird contact to invoice. The List contacts node gives you the id.
Your referencetext
Invoice datetext
Due datetext
Workflow idThe List workflows node gives you the id.
Document style idtext
Currencytext
Languagetext
Prices include VATtrue/false
Discount in percenttext
Payment conditionstext
LinesThe two ids come from the List VAT rates and List ledger accounts nodes. Typed literally — for lines built by an earlier node use the JSON box below.
Lines as JSONFor lines an earlier node built. Cannot be filled in beside the rows above.
Custom fieldsobject of text
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `moneybird`)
administrationIdtexta value from the vendor's own list
contactIdtext
referencetext
invoiceDatetext
dueDatetext
workflowIdtext
documentStyleIdtext
currencytext
languagetext
pricesAreInclTaxtrue/false, by default false
discounttext
paymentConditionstext
lineslist of {description: text, amount: text, price: text, taxRateId: text, ledgerAccountId: text}, by default []
linesJsontext
customFieldsobject of text, by default {}

Output

FieldType
salesInvoiceIdInvoice idstring
salesInvoiceobject
statestring
invoiceIdInvoice numberstring
totalPriceInclTaxTotal including VATstring
Sample output, and the expression for each field
  • invoiceId""
  • salesInvoice{}
  • salesInvoiceId"264861610882368066"
  • state"draft"
  • totalPriceInclTax"121.0"

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": {
    "administrationId": "",
    "connection": "<connection id>",
    "contactId": "<contact id>",
    "currency": "",
    "customFields": {},
    "discount": "",
    "documentStyleId": "",
    "dueDate": "",
    "invoiceDate": "",
    "language": "",
    "lines": [],
    "linesJson": "",
    "paymentConditions": "",
    "pricesAreInclTax": false,
    "reference": "",
    "workflowId": ""
  },
  "label": "Create sales invoice",
  "type": "moneybird.createSalesInvoice",
  "version": 1
}