FlowmageDocs

Attach file to purchase invoice

BetaChanges data

Adds the supplier's own document to a booked Moneybird bill.

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.
Purchase invoice idRequiredThe bill the document belongs to.
File nameRequiredThe name Moneybird stores, extension included.
File contentsRequiredBase64 of the file — paste {{ file("name").base64 }}.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `moneybird`)
administrationIdtexta value from the vendor's own list
purchaseInvoiceIdtext
fileNametexta file name, listed in `requires.files`
contentBase64textits `{{ }}` must give a string

Output

FieldType
purchaseInvoiceIdstring
fileNamestring
sizeSize in bytesnumber
attachedThe file was attachedboolean
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
}