Attach file to purchase invoice
BetaChanges data
Adds the supplier's own document to a booked Moneybird bill.
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. |
| Purchase invoice idRequired | The bill the document belongs to. |
| File nameRequired | The name Moneybird stores, extension included. |
| File contentsRequired | Base64 of the file — paste {{ file("name").base64 }}. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `moneybird`) |
administrationId | texta value from the vendor's own list |
purchaseInvoiceId | text |
fileName | texta file name, listed in `requires.files` |
contentBase64 | textits `{{ }}` must give a string |
Output
| Field | Type |
|---|---|
purchaseInvoiceId | string |
fileName | string |
sizeSize in bytes | number |
attachedThe file was attached | boolean |
Sample output, and the expression for each field
- attachedtrue
- fileName"bill.pdf"
- purchaseInvoiceId"264861610882368068"
- size8
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>",
"contentBase64": "<file contents>",
"fileName": "<file name>",
"purchaseInvoiceId": "<purchase invoice id>"
},
"label": "Attach file to purchase invoice",
"type": "moneybird.uploadPurchaseInvoiceAttachment",
"version": 1
}