Shopify file upload?

Hi everyone, is there a way to upload a PDF file to a Shopify Order Metafield? The PDF is not hosted within my Shopify store.

Although I am not familiar with the API setup but I tried looking at Metafield API of Shopify, and it doesn’t appear attachment / File Upload is supported.

Any recommendation would be much appreciated.
Thanks!

Welcome to the Make community!

You have to upload the file separately to Shopify first, then use a “file_reference” type that has a value to the ID of the Shopify file that looks something like this: gid://shopify/MediaImage/123

For more information about the “file_reference” type, see Metafield types

2 Likes