FlowmageDocs

Update sales invoice

BetaChanges data

Changes a Moneybird invoice that is still a draft.

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.
Invoice idRequiredtext
Your referenceLeave a field empty to keep what Moneybird has.
Invoice datetext
Due datetext
Currencytext
Payment conditionstext
Replace the lines withLeave empty to keep the lines the invoice has.
Replace the lines with JSONCannot be filled in beside the rows above.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `moneybird`)
administrationIdtexta value from the vendor's own list
salesInvoiceIdtext
referencetext
invoiceDatetext
dueDatetext
currencytext
paymentConditionstext
lineslist of {description: text, amount: text, price: text, taxRateId: text, ledgerAccountId: text}, by default []
linesJsontext

Output

FieldType
salesInvoiceIdInvoice idstring
salesInvoiceobject
statestring
Sample output, and the expression for each field
  • salesInvoice{}
  • salesInvoiceId"264861610882368066"
  • state"draft"

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>",
    "currency": "",
    "dueDate": "",
    "invoiceDate": "",
    "lines": [],
    "linesJson": "",
    "paymentConditions": "",
    "reference": "",
    "salesInvoiceId": "<invoice id>"
  },
  "label": "Update sales invoice",
  "type": "moneybird.updateSalesInvoice",
  "version": 1
}