Metafields
Holds custom key–value data attached to Shopify resources, including namespace, key, value, and type.
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | Long | True |
A unique numeric identifier for the metafield. | |
| Namespace | String | False |
The namespace that groups related metafields together. Each app should use a unique namespace to prevent key conflicts with metafields from other apps. | |
| Key | String | False |
The name of the metafield that identifies what kind of information it stores within the namespace. | |
| Value | String | False |
The data or content stored in the metafield. The format of the value depends on the metafield's defined type. | |
| Type | String | False |
The data type of the metafield value, such as string, integer, boolean, json, or date. | |
| Description | String | False |
A human-readable explanation of the metafield's purpose or the kind of data it contains. | |
| OwnerId | Long | False |
The unique numeric identifier of the resource that this metafield is attached to, such as a product, customer, or order. | |
| OwnerResource | String | False |
The type of Shopify resource the metafield belongs to. The allowed values are shop, draft_order, page, article, order, customer, collection, blog. | |
| CreatedAt | Datetime | True |
The date and time (ISO 8601 format) when the metafield was created. | |
| UpdatedAt | Datetime | True |
The date and time (ISO 8601 format) when the metafield was last updated. | |
| AdminGraphqlApiId | String | True |
The GraphQL Admin API global identifier for the metafield, used for programmatic access. |