---
title: HasMetafields - Customer API
description: The information about the metafields associated with the specified resource.
api_version: 2026-07
source_url:
  html: 'https://shopify.dev/docs/api/customer/latest/interfaces/HasMetafields'
  md: 'https://shopify.dev/docs/api/customer/latest/interfaces/HasMetafields.md'
api_name: customer
api_type: graphql
type: interface
---

# 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)

  A metafield found by namespace and key.

  * key

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

    required

    ### Arguments

    The identifier for the metafield.

  * namespace

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

    required

    A container for a set of metafields.

  ***

* metafields

  [\[Metafield\]!](https://shopify.dev/docs/api/customer/latest/objects/Metafield)

  non-null

  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": {
		"key": "",
		"namespace": ""
	},
	"metafields": [
		{
			"identifiers": ""
		}
	]
}
```

##### Schema

```graphql
interface HasMetafields {
  metafield: Metafield
  metafields: [Metafield]!
}
```
