---
title: GenericFile - Customer API
description: >-
  The generic file resource lets you manage files in a merchant's store. Generic

  files include any file that doesn't fit into a designated type such as image
  or

  video. Example: PDF, JSON.
api_version: 2026-10
source_url:
  html: 'https://shopify.dev/docs/api/customer/latest/objects/GenericFile'
  md: 'https://shopify.dev/docs/api/customer/latest/objects/GenericFile.md'
api_name: customer
api_type: graphql
type: object
---

# Generic​File

object

Requires `customer_read_companies` access scope, `customer_read_customers` access scope, `customer_read_locations` access scope or `customer_read_orders` access scope.

The generic file resource lets you manage files in a merchant's store. Generic files include any file that doesn't fit into a designated type such as image or video. Example: PDF, JSON.

## Fields

* alt

  [String](https://shopify.dev/docs/api/customer/latest/scalars/String)

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

* id

  [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID)

  non-null

  A globally-unique ID.

* media​Content​Type

  [Media​Content​Type!](https://shopify.dev/docs/api/customer/latest/enums/MediaContentType)

  non-null

  The media content type.

* mime​Type

  [String](https://shopify.dev/docs/api/customer/latest/scalars/String)

  The MIME type of the file.

* original​File​Size

  [Int](https://shopify.dev/docs/api/customer/latest/scalars/Int)

  The size of the original file in bytes.

* preview​Image

  [Image](https://shopify.dev/docs/api/customer/latest/objects/Image)

  The preview image for the media.

* url

  [URL](https://shopify.dev/docs/api/customer/latest/scalars/URL)

  The URL of the file.

***

## Map

### Possible type in

* [Metafield​Reference](https://shopify.dev/docs/api/customer/latest/unions/MetafieldReference)

***

## Interfaces

* [Media](https://shopify.dev/docs/api/customer/latest/interfaces/Media)

  interface

***

## GenericFile Implements

### Implements

* [Media](https://shopify.dev/docs/api/customer/latest/interfaces/Media)
