<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/delivery-options-in-shopify-functions-input-now-expose-their-metafields-chwn7zxbm" -->

---
title: Delivery options in Shopify Functions input now expose...
description: Shopify Functions can now read metafields attached to delivery options in the cart via a new metafield(namespace, key) field, starting with API version...
canonical: https://daily.dev/posts/delivery-options-in-shopify-functions-input-now-expose-their-metafields-chwn7zxbm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Delivery options in Shopify Functions input now expose their metafields | daily.dev
og:description: Shopify Functions can now read metafields attached to delivery options in the cart via a new metafield(namespace, key) field, starting with API version...
og:url: https://daily.dev/posts/delivery-options-in-shopify-functions-input-now-expose-their-metafields-chwn7zxbm
og:image: https://api.daily.dev/og/posts/cHWN7ZXbM.png
og:image:alt: Delivery options in Shopify Functions input now expose their metafields
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Delivery options in Shopify Functions input now expose their metafields

**[Shopify Developer changelog](https://daily.dev/sources/shopifychangelog)** · 2 min read · 0 upvotes · 0 comments

## Summary

Shopify Functions can now read metafields attached to delivery options in the cart via a new metafield(namespace, key) field, starting with API version 2026-10. This lets a Delivery Customization Function read structured data written by a delivery option generator function, avoiding the previous workaround of packing data into an option's title or handle. Metafields follow existing ownership rules (app-reserved namespaces or shared unprefixed namespaces) and are not persisted after checkout. No action is required for existing functions, which continue to work unchanged; developers who want the new field must update their input queries on API version 2026-10.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shopify.dev/changelog/delivery-options-in-shopify-functions-input-now-expose-their-metafields>

## Questions this post answers

### How do I read a metafield on a delivery option in a Shopify Delivery Customization Function?

Call metafield(namespace: String, key: String!) on the deliveryOptions field in the Functions cart graph, available starting API version 2026-10. The returned Metafield exposes value and type. Access follows standard metafield ownership rules: a function can read its own app-reserved namespace and any unprefixed shared namespace, while a namespace reserved by another app resolves to null.

_Track Shopify Functions API changes like this one to keep delivery customization logic working correctly on daily.dev._

### Are metafields on Shopify delivery options persisted after checkout?

No, metafields attached to a delivery option are not persisted after checkout. A delivery option generator function or shipping carrier service response attaches them when the option is generated, and they exist only for that specific checkout session, so they cannot be relied on for post-checkout data storage.

_Developers building checkout extensions can follow ecosystem changes like this on daily.dev before they hit production._

### Do I need to update my existing Shopify Functions code after the delivery option metafield change in API version 2026-10?

No action is required; existing functions keep working unchanged on every released API version, including the legacy Order Discounts and Product Discounts APIs where the field is present in the schema but always returns empty. Updating input queries to request metafield is only needed if you want to use the new capability.

_daily.dev helps developers confirm whether a platform update actually demands a code change._

## Similar posts on daily.dev

- [Tax summary webhook and calculation requests now include customer and company metafields](https://daily.dev/posts/tax-summary-webhook-and-calculation-requests-now-include-customer-and-company-metafields-is4y1crfh) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Reduced metafield value sizes](https://daily.dev/posts/reduced-metafield-value-sizes-i7i45lclr) · Shopify Developer changelog · 1 upvotes · 1 comments
- [Define and set metafields on inventory transfers in the GraphQL Admin API](https://daily.dev/posts/define-and-set-metafields-on-inventory-transfers-in-the-graphql-admin-api-hvgcmhokt) · Shopify Developer changelog · 0 upvotes · 0 comments
- [New APIs to read and write shipping options in delivery profile](https://daily.dev/posts/new-apis-to-read-and-write-shipping-options-in-delivery-profile-a5y6j79zh) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Manage Orders, Fulfill Shipments And Organize Products With Shopify](https://daily.dev/posts/manage-orders-fulfill-shipments-and-organize-products-with-shopify-5y5tc9jhy) · API Evangelist · 0 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#ecommerce](https://daily.dev/tags/ecommerce), [#graphql](https://daily.dev/tags/graphql), [#shopify](https://daily.dev/tags/shopify)

[View this post on daily.dev](https://daily.dev/posts/delivery-options-in-shopify-functions-input-now-expose-their-metafields-chwn7zxbm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Delivery options in Shopify Functions input now expose their metafields","url":"https://daily.dev/posts/delivery-options-in-shopify-functions-input-now-expose-their-metafields-chwn7zxbm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/delivery-options-in-shopify-functions-input-now-expose-their-metafields-chwn7zxbm"},"datePublished":"2026-09-15T14:05:54.828Z","dateModified":"2026-10-29T02:14:50.831Z","description":"Shopify Functions can now read metafields attached to delivery options in the cart via a new metafield(namespace, key) field, starting with API version...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Shopify Developer changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Shopify Developer changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/aefcb5d2c1ca4b45b5d2256b9e2a9cc3","url":"https://daily.dev/sources/shopifychangelog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/delivery-options-in-shopify-functions-input-now-expose-their-metafields-chwn7zxbm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,ecommerce,graphql,shopify","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Shopify Developer changelog","item":"https://daily.dev/sources/shopifychangelog"},{"@type":"ListItem","position":3,"name":"Delivery options in Shopify Functions input now expose their metafields"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/delivery-options-in-shopify-functions-input-now-expose-their-metafields-chwn7zxbm#faq","mainEntity":[{"@type":"Question","name":"How do I read a metafield on a delivery option in a Shopify Delivery Customization Function?","acceptedAnswer":{"@type":"Answer","text":"Call metafield(namespace: String, key: String!) on the deliveryOptions field in the Functions cart graph, available starting API version 2026-10. The returned Metafield exposes value and type. Access follows standard metafield ownership rules: a function can read its own app-reserved namespace and any unprefixed shared namespace, while a namespace reserved by another app resolves to null. Track Shopify Functions API changes like this one to keep delivery customization logic working correctly on daily.dev."}},{"@type":"Question","name":"Are metafields on Shopify delivery options persisted after checkout?","acceptedAnswer":{"@type":"Answer","text":"No, metafields attached to a delivery option are not persisted after checkout. A delivery option generator function or shipping carrier service response attaches them when the option is generated, and they exist only for that specific checkout session, so they cannot be relied on for post-checkout data storage. Developers building checkout extensions can follow ecosystem changes like this on daily.dev before they hit production."}},{"@type":"Question","name":"Do I need to update my existing Shopify Functions code after the delivery option metafield change in API version 2026-10?","acceptedAnswer":{"@type":"Answer","text":"No action is required; existing functions keep working unchanged on every released API version, including the legacy Order Discounts and Product Discounts APIs where the field is present in the schema but always returns empty. Updating input queries to request metafield is only needed if you want to use the new capability. daily.dev helps developers confirm whether a platform update actually demands a code change."}}]}
```

