miro.com
Download a Miro invoice PDF
Input
pdfUrl requiredThe invoice's pdfUrl exactly as returned by miro.com/list_invoices (Miro's own billing payload supplies it). There is no way to derive this from an invoice id alone, so it is required.
id optionalThe invoice id from the list row. Optional, used only to name the file when Miro's own download carries no real name.
Output
path requiredPath on the device the PDF was saved to. Miro's PDFs go through the device download bridge rather than coming back as base64 — see the description.
filename requiredThe invoice's real filename, taken from the basename of the saved file. Neither the bridge's own filename field nor Miro's suggested name is usable: both are content-addressed hashes.
