--- title: HasMetafields - Customer API description: The information about the metafields associated with the specified resource. api_version: 2026-04 api_name: customer type: interface api_type: graphql source_url: html: 'https://shopify.dev/docs/api/customer/latest/interfaces/HasMetafields' md: 'https://shopify.dev/docs/api/customer/latest/interfaces/HasMetafields.md' --- # Has​Metafields interface The information about the metafields associated with the specified resource. ## Fields * metafield [Metafield](https://shopify.dev/docs/api/customer/latest/objects/Metafield) [Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) A metafield found by namespace and key. * namespace [String!](https://shopify.dev/docs/api/customer/latest/scalars/String) required ### Arguments A container for a set of metafields. * key [String!](https://shopify.dev/docs/api/customer/latest/scalars/String) required The identifier for the metafield. *** * metafields [\[Metafield\]!](https://shopify.dev/docs/api/customer/latest/objects/Metafield) non-null[Pre-auth accessible](https://shopify.dev/docs/apps/build/customer-accounts/order-status-page#customer-account-api) The metafields associated with the resource matching the supplied list of namespaces and keys. * identifiers [\[Has​Metafields​Identifier!\]!](https://shopify.dev/docs/api/customer/latest/input-objects/HasMetafieldsIdentifier) required ### Arguments The list of metafields to retrieve by namespace and key. *** *** ##### Variables ```json { "metafield": { "namespace": "", "key": "" }, "metafields": [ { "identifiers": "" } ] } ``` ##### Schema ```graphql interface HasMetafields { metafield: Metafield metafields: [Metafield]! } ```