Metafield Parent Resource
Anchor to Possible typesPossible types
- Article (Article)
- Blog (Blog)
- Cart (Cart)
- Collection (Collection)
- Company (Company)
- CompanyLocation (CompanyLocation)
- Customer (Customer)
- Location (Location)
- Market (Market)
- Order (Order)
- Page (Page)
- Product (Product)
- ProductVariant (ProductVariant)
- SellingPlan (SellingPlan)
- Shop (Shop)
- •OBJECT
A post that belongs to a
Blog. Each article includes content with optional HTML formatting, an excerpt for previews,information, and an associatedImage.Articles can be organized with tags and include
SEOmetadata. You can manage comments when the blog's comment policy enables them.- •OBJECT
A blog container for
Articleobjects. Stores can have multiple blogs, for example to organize content by topic or purpose.Each blog provides access to its articles, contributing
objects, andSEOinformation. You can retrieve articles individually by handle or as a paginated list.- •OBJECT
A cart represents the merchandise that a buyer intends to purchase, and the estimated cost associated with the cart, throughout a customer's session.
Use the
field to direct buyers to Shopify's web checkout to complete their purchase.Learn more about interacting with carts.
- •OBJECT
A group of products organized by a merchant to make their store easier to browse. Collections can help customers discover related products by category, season, promotion, or other criteria.
Query a collection's products with filtering options like availability, price range, vendor, and tags. Each collection includes
SEOinformation, an optionalImage, and supports custom data throughmetafields.- •OBJECT
A B2B organization that purchases from the shop. In the Storefront API, company information is accessed through the
object on, which provides the associated location and contact for the current purchasing context.You can store custom data using metafields.
- •OBJECT
A branch or office of a
Companywhere B2B customers can place orders. When a B2B customer selects a location after logging in, the Storefront API contextualizes product queries to return location-specific pricing and quantity rules.Access through the
object, which associates the location with the buyer'sCart.- •OBJECT
A customer account with the shop. Includes data such as contact information, addresses and marketing preferences for logged-in customers, so they don't have to provide these details at every checkout.
Access the customer through the
customerquery using a customer access token obtained from themutation.The object implements the
interface, enabling retrieval of custom data associated with the customer.- •OBJECT
A physical store location where product inventory is held and that supports in-store pickup. Provides the location's name, address, and geographic coordinates for proximity-based sorting. Use with
to show customers where ais available for pickup.Learn more about supporting local pickup on storefronts.
- •OBJECT
An audience of buyers that a merchant targets for sales. Audiences can include geographic regions, company locations, and retail locations. Markets enable localized shopping experiences with region-specific languages, currencies, and pricing.
Each market has a unique
handlefor identification and supports custom data throughmetafields. Learn more about building localized experiences with Shopify Markets.- •OBJECT
An order is a customer’s completed request to purchase one or more products from a shop. An order is created when a customer completes the checkout process, during which time they provides an email address, billing address and payment information.
- •OBJECT
A custom content page on a merchant's store. Pages display HTML-formatted content, such as "About Us", contact details, or store policies.
Each page has a unique
handlefor URL routing and includesSEOinformation for search engine optimization. Pages supportMetafieldattachments for storing additional custom data.- •OBJECT
Represents an item listed in a shop's catalog.
Products support multiple product variants, representing different versions of the same product, and can include various media types. Use the
orfields to help customers find the right variant based on their selections.Products can be organized into collections, associated with selling plans for subscriptions, and extended with custom data through metafields.
Learn more about working with products and collections.
- •OBJECT
A specific version of a product available for sale, differentiated by options like size or color. For example, a small blue t-shirt and a large blue t-shirt are separate variants of the same product. For more information, see the docs on Shopify's product model.
For products with quantity rules, variants enforce minimum, maximum, and increment constraints on purchases.
Variants also support subscriptions and pre-orders through selling plan allocations objects, bundle configurations through product variant components objects, and shop pay installments pricing for flexible payment options.
- •OBJECT
Represents deferred or recurring purchase options for products and product variants, such as subscriptions, pre-orders, or try-before-you-buy. Each selling plan belongs to a
and defines billing, pricing, inventory, and delivery policies.- •OBJECT
The central hub for store-wide settings and information accessible through the Storefront API. Provides the shop's name, description, and branding configuration including logos and colors through the
Brandobject.Access store policies such as privacy, refund, shipping, and terms of service via
, and the subscription policy via.expose accepted card brands, supported digital wallets, and enabled presentment currencies. The object also includes the primaryDomain, countries the shop ships to,, andoptions for customer accounts.
Anchor to Fields with this unionFields with this union
- •OBJECT
Custom metadata attached to a Shopify resource such as a
Product,Collection, orCustomer. Each metafield is identified by a namespace and key, and stores a value with an associated type.Values are always stored as strings, but the
typefield indicates how to interpret the data. When a metafield's type is a resource reference, use thereferenceorreferencesfields to retrieve the linked objects. Access metafields on any resource that implements theinterface.