--- title: Media - Customer API description: Represents a media interface. api_version: 2026-01 api_name: customer type: interface api_type: graphql source_url: html: 'https://shopify.dev/docs/api/customer/latest/interfaces/Media' md: 'https://shopify.dev/docs/api/customer/latest/interfaces/Media.md' --- # Media interface Represents a media interface. ## Fields * alt [String](https://shopify.dev/docs/api/customer/latest/scalars/String) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/customer/latest/enums/MediaContentType) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The media content type. * preview​Image [Image](https://shopify.dev/docs/api/customer/latest/objects/Image) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The preview image for the media. *** ## Types implemented in * [Generic​File](https://shopify.dev/docs/api/customer/latest/objects/GenericFile) OBJECT 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. * alt [String](https://shopify.dev/docs/api/customer/latest/scalars/String) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A word or phrase to indicate the contents of a file. * id [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/customer/latest/enums/MediaContentType) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The media content type. * mime​Type [String](https://shopify.dev/docs/api/customer/latest/scalars/String) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The MIME type of the file. * original​File​Size [Int](https://shopify.dev/docs/api/customer/latest/scalars/Int) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The size of the original file in bytes. * preview​Image [Image](https://shopify.dev/docs/api/customer/latest/objects/Image) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The preview image for the media. * url [URL](https://shopify.dev/docs/api/customer/latest/scalars/URL) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The URL of the file. * [Media​Image](https://shopify.dev/docs/api/customer/latest/objects/MediaImage) OBJECT Represents a Shopify hosted image. * alt [String](https://shopify.dev/docs/api/customer/latest/scalars/String) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A globally-unique ID. * image [Image](https://shopify.dev/docs/api/customer/latest/objects/Image) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The image for the media. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/customer/latest/enums/MediaContentType) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The media content type. * preview​Image [Image](https://shopify.dev/docs/api/customer/latest/objects/Image) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The preview image for the media. * [Model3d](https://shopify.dev/docs/api/customer/latest/objects/Model3d) OBJECT Represents a Shopify hosted 3D model. * alt [String](https://shopify.dev/docs/api/customer/latest/scalars/String) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/customer/latest/enums/MediaContentType) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The media content type. * preview​Image [Image](https://shopify.dev/docs/api/customer/latest/objects/Image) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The preview image for the media. * sources [\[Model3d​Source!\]!](https://shopify.dev/docs/api/customer/latest/objects/Model3dSource) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The sources for a 3d model. * [Video](https://shopify.dev/docs/api/customer/latest/objects/Video) OBJECT Represents a Shopify hosted video. * alt [String](https://shopify.dev/docs/api/customer/latest/scalars/String) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A word or phrase to share the nature or contents of a media. * id [ID!](https://shopify.dev/docs/api/customer/latest/scalars/ID) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A globally-unique ID. * media​Content​Type [Media​Content​Type!](https://shopify.dev/docs/api/customer/latest/enums/MediaContentType) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The media content type. * preview​Image [Image](https://shopify.dev/docs/api/customer/latest/objects/Image) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The preview image for the media. * sources [\[Video​Source!\]!](https://shopify.dev/docs/api/customer/latest/objects/VideoSource) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The sources for a video. *** ##### Variables ```json { "alt": "", "id": "", "mediaContentType": "", "previewImage": "" } ``` ##### Schema ```graphql interface Media { alt: String id: ID! mediaContentType: MediaContentType! previewImage: Image } ```