In API version 2026-04, reading and writing checkout metafields from checkout / customer account UI extensions has been "removed." Extensions on older versions must be upgraded to 2026-04 and migrated.
in checkout / customer account UI extensions checkout metafields reading and writing. Not available in 2026-04.
cart metafields Replace with this. Use this for retaining data during checkout.
order metafields Replace with this. Use this for referencing data on post-purchase / account pages.
| Item | cart metafields | order metafields |
|---|---|---|
| Extension used | Checkout UI extensions | Customer Account UI extensions |
| Primary role | Holding and reading/writing data during checkout | Reading/writing data tied to the order |
| Relationship to legacy checkout metafields | Replacement in Checkout UI extensions | Replacement in Customer Account UI extensions |
| Official migration guide | "Migrate to cart metafields in checkout UI extensions" | "Migrate to order metafields in customer account UI extensions" |
A Checkout UI extension writes to cart metafields.
Based on the order metafield definition settings, the value is automatically copied to the order side.
Customer Account UI extensions and order data can treat it as an order metafield.
Identify all places in checkout / customer account UI extensions that read or write checkout metafields.
Rewrite Checkout UI extensions to use cart metafields, and Customer Account UI extensions to use order metafields.
After migrating, upgrade the extensions to 2026-04. This is mandatory if you are still on an older version.
Reading and writing checkout metafields was already removed in 2026-04. Putting it off in hopes of a grace period is not an option. Complete the migration before upgrading the version.
Checkout UI → cart metafields; Customer Account UI → order metafields. Note that the replacement for "checkout metafields" splits into two paths depending on the extension.
A new capability of order metafield definitions lets you automatically copy values from the cart to the order at order creation. This reduces the need to write your own hand-off code.
Two migration guides are provided, one for cart and one for order. Concrete API specs and code diffs are not included in this article, so refer to the guides.
Redesign with a clear split: data needed during checkout lives on the cart, and data that must persist after the order is placed lives on the order. For data needed in both places, the standard pattern is "write to the cart and auto-copy to the order at order creation."