Skip to main content
object

Requires unauthenticated_read_product_listings access scope.

Any file that doesn't fit into a designated type like image or video. For example, a PDF or JSON document. Use this object to manage files in a merchant's store.

Generic files are commonly referenced through file reference metafields and returned as part of the MetafieldReference union.

Includes the file's URL, MIME type, size in bytes, and an optional preview image.

•String

A word or phrase to indicate the contents of a file.

•ID!
non-null

A globally-unique ID.

•String

The MIME type of the file.

•Int

The size of the original file in bytes.

•Image

The preview image for the file.

•URL

The URL of the file.


Was this section helpful?

•interface

Was this section helpful?