Download a Shopify invoice PDF
Input
store optionalThe store handle (e.g. 0qknc0-kx), as returned in list_invoices' store field. Optional: discovered from the signed-in admin when omitted, and ignored when invoiceUrl is given.
number optionalThe invoice number from admin.shopify.com/list_invoices. Required unless invoiceUrl is given.
invoiceUrl optionalThe row's invoiceUrl exactly as returned by admin.shopify.com/list_invoices. Preferred — both store and number are read from it.
Output
via requiredHow the file was obtained: the signed document link Shopify issues from the invoice page's PDF export, downloaded by the browser.
number requiredfilename requiredShopify's own filename for the invoice PDF (e.g. invoice_596948484_2.pdf).
url optionalOn a managed browser, a link to the PDF bytes (the file is not on the browser's machine); null otherwise.
path optionalWhere the PDF was saved on the machine running the browser; null on a managed browser.
