FlowmageDocs

Download invoice document

BetaReads data

Fetches a Moneybird invoice as a PDF, a UBL file or a packing slip.

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
Which document"pdf" or "ubl" or "packing_slip"
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `moneybird`)
administrationIdtexta value from the vendor's own list
salesInvoiceIdtext
variant"pdf" or "ubl" or "packing_slip", by default "pdf"

Output

FieldType
nameFile namestring
contentTypestring
base64File contents (base64)string
sizeSize in bytesnumber
Sample output, and the expression for each field
  • base64"JVBERi0="
  • contentType"application/pdf"
  • name"invoice.pdf"
  • 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>",
    "salesInvoiceId": "<invoice id>",
    "variant": "pdf"
  },
  "label": "Download invoice document",
  "type": "moneybird.downloadSalesInvoicePdf",
  "version": 1
}