{
  "slug": "shopify-ui-extension-metafields-accept-owner-type-b4483ece6377",
  "title": "Shopify UI extension metafields accept owner_type",
  "tools": [
    "shopify"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-08T13:19:12.000Z",
  "announced_at": "2026-10-08T13:19:12.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When configuring metafields for a checkout or customer account UI extension, add `owner_type` to each declaration to identify the resource that owns it. On API version 2026-10 it is optional; Shopify's docs list `PRODUCTVARIANT` and `CUSTOMER` as supported values.",
    "examples": [
      "[[extensions.metafields]]\nnamespace = \"$app\"\nkey = \"energy-rating\"\nowner_type = \"PRODUCTVARIANT\"\n\n[[extensions.metafields]]\nnamespace = \"custom\"\nkey = \"age-verification-required\"\nowner_type = \"CUSTOMER\""
    ],
    "gotchas": [
      "Version: 4.9.0",
      "extensions.metafields.namespace (required): Metafield namespace.",
      "extensions.metafields.key (required): Metafield key.",
      "extensions.metafields.owner_type: Resource type that owns the metafield. Supported values include `PRODUCTVARIANT` and `CUSTOMER`.",
      "Prerequisite: `owner_type` is accepted from API version `2026-10`; it is optional in that version.",
      "The change applies to checkout and customer account UI extensions.",
      "`owner_type` is optional."
    ]
  },
  "why_it_matters": "Configure metafield declarations for a checkout or customer account UI extension with an owner type.",
  "sources": [
    "https://github.com/Shopify/cli/releases/tag/4.9.0",
    "https://github.com/Shopify/cli/pull/8534",
    "https://shopify.dev/docs/apps/build/checkout/metafields"
  ],
  "rank": 0.96017,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-ace6dac0a81fcc98-5:gate",
    "evidence_hash": "2be2cd26171dc505b293189ca2260f6b657c87e29250c8d3dad5dbd276d4532c"
  },
  "review": {
    "draft_hash": "922a41d6097eeaaa5fee8c14cbc2136eeaf72b96f171b6825db2d00ce31ed254",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-08T13:19:12.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.70 (>= 0.6 needed)."
  }
}
