FlowmageDocs

Create purchase invoice

BetaChanges data

Books a supplier bill in Moneybird, split over ledger accounts.

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.
Supplier contact idRequiredThe Moneybird contact the bill came from.
Bill numbertext
Bill datetext
Due datetext
Currencytext
Prices include VATtrue/false
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.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `moneybird`)
administrationIdtexta value from the vendor's own list
contactIdtext
referencetext
datetext
dueDatetext
currencytext
pricesAreInclTaxtrue/false, by default false
lineslist of {description: text, amount: text, price: text, taxRateId: text, ledgerAccountId: text}, by default []
linesJsontext

Output

FieldType
purchaseInvoiceIdstring
purchaseInvoiceobject
statestring
entryNumberstring
Sample output, and the expression for each field
  • entryNumber"1"
  • purchaseInvoice{}
  • purchaseInvoiceId"264861610882368068"
  • state"new"

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": "<supplier contact id>",
    "currency": "",
    "date": "",
    "dueDate": "",
    "lines": [],
    "linesJson": "",
    "pricesAreInclTax": false,
    "reference": ""
  },
  "label": "Create purchase invoice",
  "type": "moneybird.createPurchaseInvoice",
  "version": 1
}