Create purchase invoice
BetaChanges data
Books a supplier bill in Moneybird, split over ledger accounts.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Moneybird connection the step signs in with. |
| Administration id | Leave 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 idRequired | The Moneybird contact the bill came from. |
| Bill number | text |
| Bill date | text |
| Due date | text |
| Currency | text |
| Prices include VAT | true/false |
| Lines | The 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 JSON | For lines an earlier node built. Cannot be filled in beside the rows above. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `moneybird`) |
administrationId | texta value from the vendor's own list |
contactId | text |
reference | text |
date | text |
dueDate | text |
currency | text |
pricesAreInclTax | true/false, by default false |
lines | list of {description: text, amount: text, price: text, taxRateId: text, ledgerAccountId: text}, by default [] |
linesJson | text |
Output
| Field | Type |
|---|---|
purchaseInvoiceId | string |
purchaseInvoice | object |
state | string |
entryNumber | string |
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
}