Hello everyone,
I am currently generating invoices using the Shopify API and Python, as the invoicing process is quite individualized. At the moment, I upload the invoices to a web server and add the link to a Metafield. This link is then included in the shipping confirmation email for the invoice download.
However, I would prefer to upload the invoices directly into an appropriate Metafield in the order. I have tried several approaches, but I keep encountering errors stating that the files cannot be uploaded.
When I add text to Metafields using the Shopify API, everything works perfectly.
Does anyone have the correct code for this?
Thanks!
Best regards