Download invoice document
BetaReads data
Fetches a Moneybird invoice as a PDF, a UBL file or a packing slip.
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. |
| Invoice idRequired | text |
| Which document | "pdf" or "ubl" or "packing_slip" |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `moneybird`) |
administrationId | texta value from the vendor's own list |
salesInvoiceId | text |
variant | "pdf" or "ubl" or "packing_slip", by default "pdf" |
Output
| Field | Type |
|---|---|
nameFile name | string |
contentType | string |
base64File contents (base64) | string |
sizeSize in bytes | number |
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
}