Zone objects

Objects carry store data into templates. The field lists below are the fields the engine actually resolves.

This page is not hand-written: it is generated from the Zone engine's registry. Every name listed here actually works in the engine.

Summaries come straight from the source specification. Some summaries, syntax and examples are generated from MIT-licensed open specification data. Third-party licence notice

address

An address, such as a customer address or order shipping address.

FieldsTypeDescription
address1stringThe first line of the address.
address2stringThe second line of the address.
citystringThe city of the address.
companystringThe company of the address.
countrycountryThe country of the address.
country_codestringThe country of the address in ISO 3166-1 (alpha 2) format.
first_namestringThe first name of the address.
idnumberThe ID of the address.
last_namestringThe last name of the address.
namestringA combination of the first and last names of the address.
phonestringThe phone number of the address.
provincestringThe province of the address.
province_codestringThe province of the address in ISO 3166-2 (alpha 2) format.
streetstringA combination of the first and second lines of the address.
summarystringA summary of the address, including the following properties: - First and last name - First and second lines - City - Province - Country
urlstringThe relative URL for the address.
zipstringThe zip or postal code of the address.

all_country_option_tags

Creates an `<option>` tag for each country.

Returns: string

A single value; it has no fields.

all_products

All of the products on a store.

Returns: array<product>

A single value; it has no fields.

app

An app. This object is usually used to access app-specific information for use with theme app extensions.

FieldsTypeDescription
metafieldsThe metafields that are owned by the app.

article

An article, or blog post, in a blog.

FieldsTypeDescription
authorstringThe full name of the author of the article.
comment_post_urlstringThe relative URL where POST requests are sent when creating new comments.
commentsarray<comment>The published comments for the article.
comments_countnumberThe number of published comments for the article.
comments_enabled?booleanReturns `true` if comments are enabled. Returns `false` if not.
contentstringThe content of the article.
created_atstringA timestamp for when the article was created.
excerptstringThe excerpt of the article.
excerpt_or_contentstringReturns the article excerpt if it exists. Returns the article content if no excerpt exists.
handlestringThe handle of the article.
idstringThe ID of the article.
imageimageThe featured image for the article.
metafieldsuntypedThe metafields applied to the article.
moderated?booleanReturns `true` if the blog that the article belongs to is set to moderate comments. Returns `false` if not.
published_atstringA timestamp for when the article was published.
tagsarray<string>The tags applied to the article.
template_suffixstringThe name of the custom template assigned to the article.
titlestringThe title of the article.
updated_atstringA timestamp for when the article was updated.
urlstringThe relative URL of the article.
useruserThe user associated with the author of the article.

articles

All of the articles across the blogs in the store.

Returns: array<article>

A single value; it has no fields.

block

The content and settings of a section block.

FieldsTypeDescription
idstringThe ID of the block.
settingsuntypedThe settings of the block.
typestringThe type of the block.

blog

Information about a specific blog in the store.

FieldsTypeDescription
all_tagsarray<string>All of the tags on the articles in the blog.
articlesarray<article>The articles in the blog.
articles_countnumberThe total number of articles in the blog. This total doesn't include hidden articles.
comments_enabled?booleanReturns `true` if comments are enabled for the blog. Returns `false` if not.
handlestringThe handle of the blog.
idnumberThe ID of the blog.
metafieldsarray<metafield>The metafields applied to the blog.
moderated?booleanReturns `true` if the blog is set to moderate comments. Returns `false` if not.
next_articlearticleThe next (older) article in the blog.
previous_articlearticleThe previous (newer) article in the blog.
tagsarray<string>A list of all of the tags on all of the articles in the blog. Unlike `blog.all_tags`, this property only returns tags of articles that are in the filtered view.
template_suffixstringThe name of the custom template assigned to the blog.
titlestringThe title of the blog.
urlstringThe relative URL of the blog.

blogs

All of the blogs in the store.

Returns: array<blog>

A single value; it has no fields.

brand

The brand assets for the store.

FieldsTypeDescription
colorsThe brand's colors.
cover_imageimageThe square logo for the brand, resized to 32x32 px.
favicon_urlimageThe square logo for the brand, resized to 32x32 px.
logoimageThe default logo for the brand.
metafieldsThe social links for the brand.
short_descriptionstringA short description of the brand.
sloganstringThe slogan for the brand.
square_logoimageThe square logo for the brand.

brand_color

The colors defined as part of a store's brand assets.

Returns: string

A single value; it has no fields.

canonical_url

The canonical URL for the current page.

Returns: string

A single value; it has no fields.

cart

A customer’s cart.

FieldsTypeDescription
attributesuntypedAdditional attributes entered by the customer with the cart.
cart_level_discount_applicationsarray<discount_application>The cart-specific discount applications for the cart.
checkout_charge_amountnumberThe amount that the customer will be charged at checkout in the currency's subunit.
currencyThe currency of the cart.
discount_applicationsarray<discount_application>The discount applications for the cart.
discountsarray<discount>The discounts applied to the cart.
duties_includedbooleanReturns `true` if duties are included in the prices of products in the cart. Returns `false` if not.
empty?booleanReturns `true` if there are no items in the cart. Return's `false` if there are.
item_countnumberThe number of items in the cart.
itemsarray<line_item>The line items in the cart.
items_subtotal_pricenumberThe total price of all of the items in the cart in the currency's subunit, after any line item discounts. This doesn't include taxes (unless taxes are included in the prices), cart discounts, or shipping costs.
notestringAdditional information captured with the cart.
original_total_pricenumberThe total price of all of the items in the cart in the currency's subunit, before discounts have been applied.
requires_shippingbooleanReturns `true` if any of the products in the cart require shipping. Returns `false` if not.
taxes_includedbooleanReturns `true` if taxes are included in the prices of products in the cart. Returns `false` if not.
total_discountnumberThe total amount of all discounts (the amount saved) for the cart in the currency's subunit.
total_pricenumberThe total price of all of the items in the cart in the currency's subunit, after discounts have been applied.
total_weightnumberThe total weight of all of the items in the cart in grams.

checkout

A customer's checkout.

FieldsTypeDescription
applied_gift_cardsarray<gift_card>The gift cards applied to the checkout.
attributesuntypedAdditional attributes entered by the customer with the cart.
billing_addressaddressThe billing address entered at checkout.
buyer_accepts_marketingbooleanReturns `true` if the customer checks the email marketing subscription checkbox. Returns `false` if not.
cancelledbooleanReturns `true` if the checkout has been cancelled. Returns `false` if not.
cart_level_discount_applicationsarray<discount_application>The cart-specific discount applications for the checkout.
currencystringThe ISO code of the currency of the checkout.
customercustomerThe customer associated with the checkout. > Note: > The `customer` object is directly accessible globally when a customer is logged in to their account.
discountdiscountA discount applied to the checkout without being saved.
discount_applicationsarray<discount_application>The discount applications for the checkout.
discountsarray<discount>The discounts applied to the checkout.
discounts_amountarray<discount_application>The total amount of the discounts applied to the checkout in the currency's subunit.
discounts_savingsarray<discount_application>The total amount of the discounts applied to the checkout in the currency's subunit, as a negative value.
emailstringThe email associated with the checkout.
financial_statusstringThe financial status of the checkout.
fulfilled_atstringA timestamp for the fulfullment of the checkout.
fulfilled_line_itemsarray<line_item>The fulfilled line items from the checkout.
fulfillment_statusstringThe fulfillment status of the checkout.
gift_cards_amountnumberThe amount of the checkout price paid in gift cards.
idnumberThe ID of the checkout.
item_countnumberThe number of items in the checkout.
line_itemsarray<line_item>The line items of the checkout.
line_items_subtotal_pricenumberThe sum of the prices of all of the line items of the checkout in the currency's subunit, after any line item discounts. have been applied.
namenumberThe name of the checkout.
notestringAdditional information entered by the customer with the cart.
orderorderThe order created by the checkout.
order_idstringThe ID of the order created by the checkout.
order_namestringThe name of the order created by the checkout.
order_numberstringAn integer representation of the name of the order created by the checkout.
requires_shippingbooleanReturns `true` if any of the line items of the checkout require shipping. Returns `false` if not.
shipping_addressaddressThe shipping address of the checkout.
shipping_methodshipping_methodThe shipping method of the checkout.
shipping_pricenumberThe shipping price of the checkout in the currency's subunit.
tax_linesarray<tax_line>The tax lines for the checkout.
tax_pricenumberThe total tax amount of the checkout in the currency's subunit.
total_pricenumberThe total price of the checkout in the currency's subunit.
transactionsarray<transaction>The transactions of the checkout.
unavailable_line_itemsarray<line_item>The unavailable line items of the checkout.
unfulfilled_line_itemsarray<line_item>The unfulfilled line items of the checkout.

closest

A drop that holds resources of different types that are the closest to the current context

FieldsTypeDescription
articlearticleClosest article resource
blogblogClosest blog resource
collectioncollectionClosest collection resource
metaobjectmetaobjectClosest metaobject resources
pagepageClosest page resource
productproductClosest product resource

collection

A collection in a store.

FieldsTypeDescription
all_products_countnumberThe total number of products in a collection.
all_tagsarray<string>All of the tags applied to the products in the collection.
all_typesarray<string>All of the product types in a collection.
all_vendorsarray<string>All of the product vendors in a collection.
current_typestringThe product type on a product type collection page.
current_vendorstringThe vendor name on a vendor collection page.
default_sort_bystring | string | string | string | string | string | stringThe default sort order of the collection.
descriptionstringThe description of the collection.
featured_imageimageThe featured image for the collection.
filtersarray<filter>The storefront filters that have been set up on the collection.
handlestringThe handle of the collection.
idnumberThe ID of the collection.
imageimageThe image for the collection.
metafieldsarray<metafield>The metafields applied to the collection.
next_productproductThe next product in the collection. Returns `nil` if there's no next product.
previous_productproductThe previous product in the collection. Returns `nil` if there's no previous product.
productsarray<product>All of the products in the collection.
products_countnumberThe total number of products in the current view of the collection.
published_atstringA timestamp for when the collection was published.
sort_bystringThe sort order applied to the collection by the `sort_by` URL parameter.
sort_optionsarray<sort_option>The available sorting options for the collection.
tagsarray<string>The tags that are currently applied to the collection.
template_suffixstringThe name of the custom template assigned to the collection.
titlestringThe title of the collection.
urlstringThe relative URL of the collection.

collections

All of the collections on a store.

Returns: array<collection>

A single value; it has no fields.

color

A color from a `color` setting.

FieldsTypeDescription
alphanumberThe alpha component of the color, which is a decimal number between 0.0 and 1.0.
bluenumberThe blue component of the color, which is a number between 0 and 255.
chromanumberThe chroma component of the color, which is a decimal number between 0.0 and 0.5.
color_spacestringThe color space of the color. Returns 'srgb' or 'oklch'
greennumberThe green component of the color, which is a number between 0 and 255.
huenumberThe hue component of the color, which is a number between 0 and 360.
lightnessnumberThe lightness component of the color, which is a number between 0 and 100.
oklchstringThe lightness, chroma, and hue values of the color, represented as a space-separated string.
oklchastringThe lightness, chroma, hue and alpha values of the color, represented as a space-separated string, with a slash before the alpha channel.
rednumberThe red component of the color, which is a number between 0 and 255.
rgbstringThe red, green, and blue values of the color, represented as a space-separated string.
rgbastringThe red, green, blue, and alpha values of the color, represented as a space-separated string, with a slash before the alpha channel.
saturationnumberThe saturation component of the color, which is a number between 0 and 100.

color_scheme

A color_scheme from a `color_scheme` setting.

FieldsTypeDescription
idstringThe ID of the color_scheme
settingsuntypedThe settings of the color_scheme.

color_scheme_group

A color_scheme_group from a `color_scheme_group` setting.

A single value; it has no fields.

comment

An article comment.

FieldsTypeDescription
authorstringThe full name of the author of the comment.
contentstringThe content of the comment.
created_atstringA timestamp for when the comment was created.
emailstringThe email of he author of the comment.
idnumberThe ID of the comment.
statusstringThe status of the comment. Always returns `published`.
updated_atstringA timestamp for when the status of the comment was last updated.
urlstringThe relative URL of the article that the comment is associated with, with `comment.id` appended.

company

A company that a customer is purchasing for.

FieldsTypeDescription
available_locationsarray<company_location>The company locations that the current customer has access to, or can interact with.
available_locations_countnumberThe number of company locations associated with the customer's company.
external_idstringThe external ID of the company.
idnumberThe ID of the company.
metafieldsarray<metafield>The metafields applied to the company.
namestringThe name of the company.

company_address

The address of a company location.

FieldsTypeDescription
address1stringThe first line of the address.
address2stringThe second line of the address.
attentionstringThe attention line of the address.
citystringThe city of the address.
countrycountryThe country of the address.
country_codestringThe country of the address in ISO 3166-1 (alpha 2) format.
first_namestringThe first name of the address.
idnumberThe ID of the address.
last_namestringThe last name of the address.
provincestringThe province of the address.
province_codestringThe province of the address in ISO 3166-2 (alpha 2) format.
streetstringA combination of the first and second lines of the address.
zipstringThe zip or postal code of the address.

company_location

A location of the company that a customer is purchasing for.

FieldsTypeDescription
companycompanyThe company that the location is associated with.
current?booleanReturns `true` if the location is currently selected. Returns `false` if not.
external_idstringThe external ID of the location.
idnumberThe ID of the location.
metafieldsarray<metafield>The metafields applied to the company location.
namestringThe name of the location.
shipping_addresscompany_addressThe address of the location.
store_credit_accountstore_credit_accountThe store credit account associated with the company location.
tax_registration_idnumberThe tax ID of the location.
url_to_set_as_currentstringThe URL to set the location as the current location for the customer.

content_for_header

A single value; it has no fields.

content_for_index

Dynamically returns the content of sections to be rendered on the home page.

Returns: string

A single value; it has no fields.

content_for_layout

Dynamically returns content based on the current template.

Returns: string

A single value; it has no fields.

country

A country supported by the store's localization options.

FieldsTypeDescription
available_languagesarray<shop_locale>The languages that have been added to the market that this country belongs to.
continentstringThe continent that the country is in.
currencycurrencyThe currency used in the country.
iso_codestringThe ISO code of the country in ISO 3166-1 (alpha 2) format.
marketmarketThe market that includes this country.
namestringThe name of the country.
popular?booleanReturns `true` if the country is popular for this shop. Otherwise, returns `false`. This can be useful for sorting countries in a country selector.
unit_systemstring | stringThe unit system of the country.

country_option_tags

Returns: string

A single value; it has no fields.

currency

Information about a currency, like the ISO code and symbol.

FieldsTypeDescription
iso_codestringThe ISO code of the currency.
namestringThe name of the currency.
symbolstringThe symbol of the currency.

current_page

The current page number.

Returns: number

A single value; it has no fields.

current_tags

The currently applied tags.

Returns: array<string>

A single value; it has no fields.

customer

A customer of the store.

FieldsTypeDescription
accepts_marketingbooleanReturns `true` if the customer accepts marketing. Returns `false` if not.
addressesarray<address>All of the addresses associated with the customer.
addresses_countnumberThe number of addresses associated with the customer.
b2b?booleanReturns `true` if the customer is a B2B customer. Returns `false` if not.
company_available_locationsarray<company_location>The company locations that the customer has access to, or can interact with.
company_available_locations_countnumberThe number of company locations associated with the customer.
current_companycompanyThe company that the customer is purchasing for.
current_locationcompany_locationThe currently selected company location.
default_addressaddressThe default address of the customer.
emailstringThe email of the customer.
first_namestringThe first name of the customer.
has_accountbooleanReturns `true` if the email associated with the customer is tied to a customer account. Returns `false` if not.
has_avatar?booleanReturns `true` if an avatar is associated with a customer. Returns `false` if not.
idnumberThe ID of the customer.
last_namestringThe last name of the customer.
last_orderorderThe last order placed by the customer, not including test orders.
namestringThe full name of the customer.
ordersarray<order>All of the orders placed by the customer.
orders_countnumberThe total number of orders that the customer has placed.
payment_methodsarray<customer_payment_method>The customer's saved payment methods.
phonestringThe phone number of the customer.
store_credit_accountstore_credit_accountThe store credit account associated with the customer.
tagsarray<string>The tags associated with the customer.
tax_exemptbooleanReturns `true` if the customer is exempt from taxes. Returns `false` if not.
total_spentnumberThe total amount that the customer has spent on all orders in the currency's subunit.

customer_payment_method

A customer's saved payment method.

FieldsTypeDescription
payment_instrument_typestringThe instrument type of the payment method (e.g credit_card).
tokenstringThe identifier for the payment method.

discountDeprecated

A discount applied to a cart, line item, or order.

FieldsTypeDescription
amountnumberThe amount of the discount in the currency's subunit.
codestringThe customer-facing name of the discount.
savingsnumberThe amount of the discount as a negative value, in the currency's subunit.
titlestringThe customer-facing name of the discount.
total_amountnumberThe amount of the discount in the currency's subunit.
total_savingsnumberThe amount of the discount as a negative value, in the currency's subunit.
typestring | string | stringThe type of the discount.

discount_allocation

Information about how a discount affects an item.

FieldsTypeDescription
amountnumberThe amount that the item is discounted by in the currency's subunit.
discount_applicationdiscount_applicationThe discount application that applies the discount to the item.

discount_application

Information about the intent of a discount.

FieldsTypeDescription
target_selectionstring | string | stringThe selection method for line items or shipping lines to be discounted.
target_typestring | stringThe type of item that the discount applies to.
titlestringThe customer-facing name of the discount.
total_allocated_amountnumberThe total amount of the discount in the currency's subunit.
typestring | string | string | stringThe type of the discount.
valuenumberThe value of the discount.
value_typestring | stringThe value type of the discount.

external_video

Information about an external video from YouTube or Vimeo.

FieldsTypeDescription
altstringThe alt text of the external video.
aspect_rationumberThe aspect ratio of the video as a decimal.
external_idstringThe ID of the video from its external source.
hoststring | stringThe service that hosts the video.
idnumberThe ID of the external video.
media_typestringThe media type of the external video. Always returns `external_video`.
positionnumberThe position of the external video in the `product.media` array.
preview_imageimageA preview image of the media.

filter

A storefront filter.

FieldsTypeDescription
active_valuesarray<filter_value>The values of the filter that are currently active. The array can have values only for `boolean` and `list` type filters.
false_valuefilter_valueThe `false` filter value. Returns a value for `boolean` type filters if the unfiltered view has at least one result with the `false` filter value. Otherwise, it returns `nil`.
inactive_valuesarray<filter_value>The values of the filter that are currently inactive.
labelstringThe customer-facing label for the filter.
max_valuefilter_valueThe highest filter value. Returns a value only for `price_range` type filters. Returns `nil` for other types.
min_valuefilter_valueThe lowest filter value. Returns a value only for `price_range` type filters. Returns `nil` for other types.
operatorstring | stringThe logical operator used by the filter. Returns a value only for `boolean` and `list` type filters. Returns `nil` for other types.
param_namestringThe URL parameter for the filter. For example, `filter.v.option.color`.
presentationstring | string | stringDescribes how to present the filter values. Returns a value only for `list` type filters. Returns `nil` for other types.
range_maxnumberThe highest product price within the collection or search results. Returns a value only for `price_range` type filters. Returns `nil` for other types.
true_valuefilter_valueThe `true` filter value. Returns a value for `boolean` type filters if the unfiltered view has at least one result with the `true` filter value. Otherwise, it returns `nil`.
typestring | string | stringThe type of the filter.
url_to_removestringThe current page URL with the URL parameter related to the filter removed.
valuesarray<filter_value>The values of the filter. The array can have values only for `boolean` and `list` type filters.

filter_value

A specific value of a filter.

FieldsTypeDescription
activebooleanReturns `true` if the value is currently active. Returns `false` if not. Can only return `true` for filters of type `boolean` or `list`.
countnumberThe number of results related to the filter value. Returns a value only for `boolean` and `list` type filters. Returns `nil` for `price_range` type filters.
displayfilter_value_displayThe visual representation of the filter value.
imageimageThe visual representation of the filter value when an image is used.
labelstringThe customer-facing label for the filter value. For example, `Red` or `Rouge`. Returns a value only for `boolean` and `list` type filters. Returns `nil` for `price_range` type filters.
param_namestringThe URL parameter for the parent filter of the filter value.
swatchswatchThe visual representation of the filter value when a swatch is used.
url_to_addstringThe current page URL with the filter value parameter added.
url_to_removestringThe current page URL with the filter value parameter removed.
valuestringThe value for the URL parameter. The `value` is paired with the `param_name` property.

filter_value_displayDeprecated

The visual representation of a filter value.

FieldsTypeDescription
typestring | stringThe type of visual representation.
valueuntypedThe visual representation.

focal_point

The focal point for an image.

FieldsTypeDescription
xnumberThe horizontal position of the focal point, as a percent of the image width. Returns `50` if no focal point is set.
ynumberThe vertical position of the focal point, as a percent of the image height. Returns `50` if no focal point is set.

font

A font from a `font_picker` setting.

FieldsTypeDescription
baseline_rationumberThe baseline ratio of the font as a decimal.
fallback_familiesstringThe fallback families of the font.
familystringThe family name of the font.
stylestringThe style of the font.
system?booleanReturns `true` if the font is a system font. Returns `false` if not.
variantsarray<font>The variants in the family of the font.
weightnumberThe weight of the font.

forloop

Information about a parent `for` loop.

FieldsTypeDescription
firstbooleanReturns `true` if the current iteration is the first. Returns `false` if not.
indexnumberThe 1-based index of the current iteration.
index0numberThe 0-based index of the current iteration.
lastbooleanReturns `true` if the current iteration is the last. Returns `false` if not.
lengthnumberThe total number of iterations in the loop.
parentloopforloopThe parent `forloop` object.
rindexnumberThe 1-based index of the current iteration, in reverse order.
rindex0numberThe 0-based index of the current iteration, in reverse order.

form

Information about a form created by a `form` tag.

FieldsTypeDescription
address1stringThe first address line associated with the address.
address2stringThe second address line associated with the address.
authorstringThe name of the author of the article comment.
bodystringThe content of the contact submission or article comment.
citystringThe city associated with the address.
companystringThe company associated with the address.
countrystringThe country associated with the address.
emailstringThe email associated with the form.
errorsform_errorsAny errors from the form.
first_namestringThe first name associated with the customer or address.
idstringThe ID of the form.
last_namestringThe last name associated with the customer or address.
messagestringThe personalized message intended for the recipient.
namestringThe nickname of the gift card recipient.
password_neededbooleanReturns `true`.
phonestringThe phone number associated with the address.
posted_successfully?booleanReturns `true` if the form was submitted successfully. Returns `false` if there were errors.
provincestringThe province associated with the address.
set_as_default_checkboxstringRenders an HTML checkbox that can submit the address as the customer's default address.
zipstringThe zip or postal code associated with the address.

form_errors

The error category strings for errors from a form created by a `form` tag.

Returns: array<string>

FieldsTypeDescription
messagesarray<string>The translated error messages for each value in the `form_errors` array.
translated_fieldsarray<string>The translated names for each value in the `form_errors` array.

fulfillment

An order fulfillment, which includes information like the line items being fulfilled and shipment tracking.

FieldsTypeDescription
created_atstringA timestamp for when the fulfillment was created.
fulfillment_line_itemsarray<line_item>The line items in the fulfillment.
item_countnumberThe number of items in the fulfillment.
tracking_companystringThe name of the fulfillment service.
tracking_numberstringThe fulfillment's tracking number.
tracking_numbersarray<string>An array of the fulfillment's tracking numbers.
tracking_urlstringThe URL for the fulfillment's tracking number.

generic_file

A file from a `file_reference` type metafield that is neither an image or video.

FieldsTypeDescription
altstringThe alt text of the media.
idnumberThe ID of the file.
media_typestringThe media type of the model. Always returns `generic_file`.
positionnumberThe position of the media in the `product.media` array.
preview_imageimageA preview image for the file.
urlstringThe CDN URL for the file.

gift_card

A gift card that's been issued to a customer or a recipient.

FieldsTypeDescription
balancenumberThe remaining balance of the gift card in the currency's subunit.
codestringThe code used to redeem the gift card.
currencystringThe ISO code of the currency that the gift card was issued in.
customercustomerThe customer associated with the gift card.
enabledbooleanReturns `true` if the gift card is enabled. Returns `false` if not.
expiredbooleanReturns `true` if the gift card is expired. Returns `false` if not.
expires_onstringA timestamp for when the gift card expires.
initial_valuenumberThe initial balance of the gift card in the currency's subunit.
last_four_charactersstringThe last 4 characters of the code used to redeem the gift card.
messagestringThe personalized message intended for the recipient.
pass_urlstringThe URL to download the gift card as an Apple Wallet Pass.
productproductThe product associated with the gift card.
propertiesarray<untyped>The line item properties assigned to the gift card.
qr_identifierstringA string used to generate a QR code for the gift card.
recipientrecipientThe recipient associated with the gift card.
send_onstringThe scheduled date on which the gift card will be sent to the recipient.
template_suffixstringThe name of the custom template assigned to the gift card.
urlstring
variantvariantThe variant associated with the gift card.

group

A group of rules for the `robots.txt` file.

FieldsTypeDescription
rulesarray<rule>The rules in the group.
sitemapsitemapThe sitemap for the group.
user_agentuser_agentThe user agent for the group.

handle

The handle of the resource associated with the current template.

Returns: string

A single value; it has no fields.

image

An image, such as a product or collection image.

Returns: array<image>

FieldsTypeDescription
altstringThe alt text of the image.
aspect_rationumberThe aspect ratio of the image as a decimal.
attached_to_variant?booleanReturns `true` if the image is associated with a variant. Returns `false` if not.
heightnumberThe height of the image in pixels.
idnumberThe ID of the image.
media_typestringThe media type of the image. Always returns `image`.
positionnumberThe position of the image in the `product.images` or `product.media` array.
presentationimage_presentationThe presentation settings for the image.
preview_imageimageA preview image for the image.
product_idnumberThe ID of the product that the image is associated with.
srcstringThe relative URL of the image.
variantsarray<variant>The product variants that the image is associated with.
widthnumberThe width of the image in pixels.

image_presentation

The presentation settings for an image.

FieldsTypeDescription
focal_pointfocal_pointThe focal point for the image.

images

All of the images that have been uploaded to a store.

Returns: array<image>

A single value; it has no fields.

instructions

The instructions for a nested cart line item.

FieldsTypeDescription
can_removebooleanWhether the nested cart line item can be removed.
can_update_quantitybooleanWhether the nested cart line item quantity can be updated.

line_item

A line in a cart, checkout, or order. Each line item represents a product variant.

FieldsTypeDescription
discount_allocationsarray<discount_allocation>The discount allocations that apply to the line item.
discountsarray<discount>The discounts applied to the line item.
error_messagestringAn informational error message about the status of the line item in the buyer's chosen language.
final_line_pricenumberThe combined price, in the currency's subunit, of all of the items in the line item. This includes any line-level discounts.
final_pricenumberThe price of the line item in the currency's subunit. This includes any line-level discounts.
fulfillmentfulfillmentThe fulfillment of the line item.
fulfillment_servicestringThe fulfillment service for the vartiant associated with the line item. If there's no fulfillment service, then `manual` is returned.
gift_cardbooleanReturns `true` if the product associated with the line item is a gift card. Returns `false` if not.
gramsnumberThe weight of the line item in the store's default weight unit.
idnumberThe ID of the line item.
imageimageThe image of the line item.
instructionsinstructionsInstructions define behaviours and operations that can be performed on the nested cart line.
item_componentsarray<line_item>The components of a line item.
keystringThe key of the line item.
line_level_discount_allocationsarray<discount_allocation>The discount allocations that apply directly to the line item.
line_level_total_discountnumberThe total amount of any discounts applied to the line item in the currency's subunit.
line_pricenumber
messagestringInformation about the discounts that have affected the line item.
options_with_valuesarray<untyped>The name and value pairs for each option of the variant associated with the line item.
original_line_pricenumberThe combined price of all of the items in a line item in the currency's subunit, before any discounts have been applied.
original_pricenumberThe price of the line item in the currency's subunit, before discounts have been applied.
parent_relationshipparent_relationshipThe parent relationship for a nested line item.
pricenumber
productproductThe product associated with the line item. May be a regular product or a remote product.
product_idnumberThe ID of the line item's product.
propertiesarray<untyped>The properties of the line item.
quantitynumberThe quantity of the line item.
requires_shippingbooleanReturns `true` if the variant associated with the line item requires shipping. Returns `false` if not.
selling_plan_allocationselling_plan_allocationThe selling plan allocation of the line item. If the line item doesn't have a selling plan allocation, then `nil` is returned.
skustringThe sku of the variant associated with the line item.
successfully_fulfilled_quantitynumberThe number of items from the line item that have been successfully fulfilled.
tax_linesarray<tax_line>The tax lines for the line item.
taxablebooleanReturns `true` if taxes should be charged on the line item. Returns `false` if not.
titlestringThe title of the line item. The title is a combination of `line_item.product.title` and `line_item.variant.title`, separated by a hyphen.
total_discountnumber
unit_pricenumberThe unit price of the line item in the currency's subunit.
unit_price_measurementunit_price_measurementThe unit price measurement of the line item.
urlstringThe relative URL of the variant associated with the line item.
url_to_removestringA URL to remove the line item from the cart.
variantvariantThe variant associated with the line item.
variant_idnumberThe ID of the line item's variant.
vendorstringThe vendor of the variant associated with the line item.

linklists

All of the menus in a store.

Returns: array<linklist>

A single value; it has no fields.

localization

Information about the countries and languages that are available on a store.

FieldsTypeDescription
available_countriesarray<country>The countries that are available on the store.
available_languagesarray<shop_locale>The languages that are available on the store.
countrycountryThe currently selected country on the storefront.
languageshop_localeThe currently selected language on the storefront.
marketmarketThe currently selected market on the storefront.

location

A store location.

FieldsTypeDescription
addressaddressThe location's address.
idnumberThe location's ID.
latitudenumberThe latitude of the location's address.
longitudenumberThe longitude of the location's address.
metafieldsuntypedThe metafields applied to the location.
namestringThe location's name.

market

A group of one or more regions of the world that a merchant is targeting for sales.

FieldsTypeDescription
handlestringThe handle of the market.
idstringThe ID of the market.
metafieldsarray<metafield>The metafields applied to the market.

measurement

A measurement from one of the following metafield types: - `dimension` - `volume` - `weight`

FieldsTypeDescription
typestring | string | stringThe measurement type.
unitstringThe measurement unit.
valuenumberThe measurement value.

media

An abstract media object that can represent the following object types: - `image` - `model` - `video` - `external_video`

FieldsTypeDescription
altstringThe alt text of the media.
idnumberThe ID of the media.
media_typestring | string | string | stringThe media type.
positionnumberThe position of the media in the `product.media` array.
preview_imageimageA preview image of the media.

metafield

A metafield attached to a parent object.

FieldsTypeDescription
list?booleanReturns `true` if the metafield is a list type. Returns `false` if not.
typestring | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | stringThe type of the metafield.
valueuntypedThe value of the metafield.

metaobject

A metaobject entry, which includes the values for a set of fields. The set is defined by the parent `metaobject_definition`.

FieldsTypeDescription
systemmetaobject_systemBasic information about the metaobject. These properties are grouped under the `system` object to avoid collisions between system property names and user-defined metaobject fields.

metaobject_definition

A `metaobject_definition` defines the structure of a metaobject type for the store, which consists of a merchant-defined set of field definitions.

FieldsTypeDescription
valuesarray<metaobject>The metaobjects that follow the definition.
values_countnumberThe total number of entries for the metaobject definition.

metaobject_system

Basic information about a `metaobject`. These properties are grouped under the `system` object to avoid collisions between system property names and user-defined metaobject fields.

FieldsTypeDescription
handlestringThe unique handle of the metaobject.
idnumberThe ID of the metaobject.
typestringThe type of the metaobject definition.
urlstringThe relative URL of the metaobject.

metaobjects

All of the metaobjects of the store.

A single value; it has no fields.

model

A 3D model uploaded as product media.

FieldsTypeDescription
altstringThe alt text of the model.
idnumberThe ID of the model.
media_typestringThe media type of the model. Always returns `model`.
positionnumberThe position of the model in the `product.media` array.
preview_imageimageA preview image for the model.
sourcesarray<model_source>The source files for the model.

model_source

A model source file.

FieldsTypeDescription
formatstringThe format of the model source file.
mime_typestringThe MIME type of the model source file.
urlstringThe CDN URL of the model source file.

money

A money value, in the the customer's local (presentment) currency.

FieldsTypeDescription
currencycurrencyThe customer's local (presentment) currency.

order

An order.

FieldsTypeDescription
attributesuntypedThe attributes on the order.
billing_addressaddressThe billing address of the order.
cancel_reasonstring | string | string | string | string | stringThe reason that the order was cancelled.
cancel_reason_labelstringThe localized version of the cancellation reason for the order.
cancelledbooleanReturns `true` if the order was cancelled. Returns `false` if not.
cancelled_atstringA timestamp for when the order was cancelled.
cart_level_discount_applicationsarray<discount_application>The discount applications that apply at the order level.
confirmation_numberstringA randomly generated alpha-numeric identifier for the order that may be shown to the customer instead of the sequential order name. For example, "XPAV284CT", "R50KELTJP" or "35PKUN0UJ". This value isn't guaranteed to be unique.
created_atstringA timestamp for when the order was created.
customercustomerThe customer that placed the order.
customer_order_urlstringThe URL for the new order details page.
customer_urlstringThe URL for the customer to view the order in their account.
discount_applicationsarray<discount_application>All of the discount applications for the order and its line items.
discountsdiscountThe discounts on the order.
emailstringThe email that's associated with the order.
financial_statusstring | string | string | string | string | string | string | string | stringThe order's financial status.
financial_status_labelThe localized version of the financial status of the order.
fulfillment_statusstringThe fulfillment status of the order.
fulfillment_status_labelstring | string | string | string | stringThe localized version of the fulfillment status of the order.
idnumberThe ID of the order.
item_countnumberThe number of items in the order.
line_itemsarray<line_item>The line items in the order.
line_items_subtotal_pricenumberThe sum of the prices of all of the line items in the order in the currency's subunit, after any line item discounts have been applied.
metafieldsuntypedThe metafields applied to the order.
namestringThe name of the order.
notestringThe note on the order.
order_numbernumberThe integer representation of the order name.
order_status_urlstringThe URL for the **Order status** page for the order.
phonestringThe phone number associated with the order.
pickup_in_store?booleanReturns `true` if the order is a store pickup order.
shipping_addressaddressThe shipping address of the order.
shipping_methodsarray<shipping_method>The shipping methods for the order.
shipping_pricenumberThe shipping price of the order in the currency's subunit.
subtotal_line_itemsarray<line_item>The non-tip line items in the order.
subtotal_pricenumberThe sum of the prices of the subtotal line items in the currency's subunit, after any line item or cart discounts have been applied.
tagsarray<string>The tags on the order.
tax_linesarray<tax_line>The tax lines on the order.
tax_pricenumberThe total amount of taxes applied to the order in the currency's subunit.
total_discountsnumberThe total amount of all discounts applied to the order in the currency's subunit.
total_dutiesnumberThe sum of all duties applied to the line items in the order in the currency's subunit.
total_net_amountnumberThe net amount of the order in the currency's subunit.
total_pricenumberThe total price of the order in the currency's subunit.
total_refunded_amountnumberThe total amount that's been refunded from the order in the currency's subunit.
transactionsarray<transaction>The transactions of the order.

page

A page on a store.

FieldsTypeDescription
authorstringThe author of the page.
contentstringThe content of the page.
handlestringThe handle of the page.
idnumberThe ID of the page.
metafieldsuntypedThe metafields applied to the page.
published_atstringA timestamp for when the page was published.
template_suffixstringThe name of the custom template assigned to the page.
titlestringThe title of the page.
urlstringThe relative URL of the page.

page_description

The meta description of the current page.

Returns: string

A single value; it has no fields.

page_image

An image to be shown in search engine listings and social media previews for the current page.

Returns: image

A single value; it has no fields.

page_title

The page title of the current page.

Returns: string

A single value; it has no fields.

pages

All of the pages on a store.

Returns: array<page>

A single value; it has no fields.

paginate

Information about the pagination inside a set of `paginate` tags.

FieldsTypeDescription
current_offsetnumberThe total number of items on pages previous to the current page.
current_pagenumberThe page number of the current page.
itemsnumberThe total number of items to be paginated.
nextpartThe pagination part to go to the next page.
page_paramstringThe URL parameter denoting the pagination.
page_sizenumberThe number of items displayed per page.
pagesnumberThe total number of pages.
partsarray<part>The pagination parts.
previouspartThe pagination part to go to the previous page.

parent_relationship

Information about the parent relationship for a nested cart line item.

FieldsTypeDescription
parentline_itemThe parent line item for the nested cart line item.

part

A part in the navigation for pagination.

FieldsTypeDescription
is_linkbooleanReturns `true` if the part is a link. Returns `false` if not.
titlestringThe page number associated with the part.
urlstringThe URL of the part.

pending_payment_instruction_input

Header-value pairs that make up the list of payment information specific to the payment method. This information can be be used by the customer to complete the transaction offline.

FieldsTypeDescription
headerstringThe header of the payment instruction. These are payment method-specific. Example: "Entity" and "Reference" for Multibanco
valuestringContains the corresponding values to the headers of the payment instruction.

policy

A store policy, such as a privacy or return policy.

FieldsTypeDescription
bodystringThe content of the policy.
idstringThe ID of the policy.
titlestringThe title of the policy.
urlstringThe relative URL of the policy.

predictive_search_resources

Contains arrays of objects for each resource type that can be returned by a predictive search query.

FieldsTypeDescription
articlesarray<article>The articles associated with the query.
collectionsarray<collection>The collections associated with the query.
pagesarray<page>The pages associated with the query.
productsarray<product>The products associated with the query.

product

A product in the store.

FieldsTypeDescription
availablebooleanReturns `true` if at least one of the variants of the product is available. Returns `false` if not.
categorytaxonomy_categoryThe taxonomy category for the product
collectionsarray<collection>The collections that the product belongs to.
compare_at_pricenumberThe lowest **compare at** price of any variants of the product in the currency's subunit.
compare_at_price_maxnumberThe highest **compare at** price of any variants of the product in the currency's subunit.
compare_at_price_minnumberThe lowest **compare at** price of any variants of the product in the currency's subunit. This is the same as `product.compare_at_price`.
compare_at_price_variesbooleanReturns `true` if the variant **compare at** prices of the product vary. Returns `false` if not.
contentstringThe description of the product.
created_atstringA timestamp for when the product was created.
descriptionstringThe description of the product.
featured_imageimageThe first (featured) image attached to the product.
featured_mediamediaThe first (featured) media attached to the product.
first_available_variantvariantThe first available variant of the product.
gift_card?booleanReturns `true` if the product is a gift card. Returns `false` if not.
handlestringThe handle of the product.
has_only_default_variantbooleanReturns `true` if the product doesn't have any options. Returns `false` if not.
idnumberThe ID of the product.
imagesarray<image>The images attached to the product.
mediaarray<media>The media attached to the product, sorted by the date it was added to the product.
metafieldsuntypedThe metafields applied to the product.
optionsarray<string>The option names of the product.
options_by_nameuntypedAllows you to access a specific product option by its name.
options_with_valuesarray<product_option>The options on the product.
pricenumberThe lowest price of any variants of the product in the currency's subunit.
price_maxnumberThe highest price of any variants of the product in the currency's subunit.
price_minnumberThe lowest price of any variants of the product in the currency's subunit.
price_variesbooleanReturns `true` if the product's variant prices vary. Returns `false` if not.
published_atstringA timestamp for when the product was published.
quantity_price_breaks_configured?booleanReturns `true` if the product has at least one variant with quantity price breaks in the current customer context. Returns `false` if not.
requires_selling_planbooleanReturns `true` if all of the variants of the product require a selling plan. Returns `false` if not.
selected_or_first_available_selling_plan_allocationselling_plan_allocationThe currently selected, or first available, selling plan allocation.
selected_or_first_available_variantvariantThe currently selected or first available variant of the product.
selected_selling_planselling_planThe currently selected selling plan.
selected_selling_plan_allocationselling_plan_allocationThe currently selected selling plan allocation for the currently selected variant.
selected_variantvariantThe currently selected variant of the product.
selling_plan_groupsarray<selling_plan_group>The selling plan groups that the variants of the product are included in.
tagsarray<string>The tags of the product.
template_suffixstringThe name of the custom template of the product.
titlestringThe title of the product.
typestringThe type of the product.
urlstringThe relative URL of the product.
variantsarray<variant>The variants of the product.
variants_countnumberThe total number of variants for the product.
vendorstringThe vendor of the product.

product_option

A product option, such as size or color.

FieldsTypeDescription
namestringThe name of the product option.
positionnumberThe 1-based index of the product option in the `product.options_with_values` array.
selected_valuestringThe currently selected product option value.
valuesarray<product_option_value>The possible values for the product option.

product_option_value

A product option value, such as "red" for the option "color".

FieldsTypeDescription
availablebooleanWhether or not the option value is available.
idnumberThe ID of the product option value.
namestringThe name of the product option value.
product_urlstringReturns a URL if the option value may be associated with another product, nil otherwise.
selectedbooleanWhether or not the option value is selected.
swatchswatchReturns a swatch drop for the product option value. If there is no saved `color` or `image` content for the swatch, then the return value is `nil`.
variantvariantThe variant associated with this option value combined with the other currently selected option values, if one exists.

quantity_price_break

The per-unit price of a variant when purchasing the minimum quantity or more.

FieldsTypeDescription
minimum_quantitynumberThe minimum quantity required to qualify for the price break.
pricenumberThe price for the quantity price break once the minimum quantity is met.

quantity_rule

A variant order quantity rule.

FieldsTypeDescription
incrementnumberThe number the order quantity can be incremented by. The default value is `1`.
maxnumberThe maximum order quantity.
minnumberThe minimum order quantity. The default value is `1`.

rating

Information for a `rating` type metafield.

FieldsTypeDescription
ratingnumberThe rating value.
scale_maxnumberThe maximum value of the rating scale.
scale_minnumberThe minimum value of the rating scale.

recipient

A recipient that is associated with a gift card.

FieldsTypeDescription
emailstringThe email of the recipient.
namestringThe full name of the recipient.
nicknamestringThe nickname of the recipient.

recommendations

Product recommendations for a specific product based on sales data, product descriptions, and collection relationships.

FieldsTypeDescription
intentstringThe recommendation intent.
performed?booleanReturns `true` when being referenced inside a section that's been rendered using the Product Recommendations API and the Section Rendering API. Returns `false` if not.
productsarray<product>The recommended products.
products_countnumberThe number of recommended products.

remote_details

Information about the remote source from which the object came from.

Returns: RemoteDetailsDrop

FieldsTypeDescription
shopremote_shopInformation about the store that the remote object came from.
typestringProvides context on how the remote object was surfaced. Currently the only supported value is "seller", but this may be expanded in the future.

remote_product

A product that comes from a remote source, inheriting all product functionality and also providing additional context about the remote source.

Returns: RemoteProductDrop

FieldsTypeDescription
availablebooleanReturns `true` if at least one of the variants of the product is available. Returns `false` if not.
categorytaxonomy_categoryThe taxonomy category for the product
compare_at_pricenumberThe lowest **compare at** price of any variants of the product in the currency's subunit.
compare_at_price_maxnumberThe highest **compare at** price of any variants of the product in the currency's subunit.
compare_at_price_minnumberThe lowest **compare at** price of any variants of the product in the currency's subunit. This is the same as `product.compare_at_price`.
compare_at_price_variesbooleanReturns `true` if the variant **compare at** prices of the product vary. Returns `false` if not.
contentstringThe description of the product.
created_atstringA timestamp for when the product was created.
descriptionstringThe description of the product.
featured_imageimageThe first (featured) image attached to the product.
featured_mediamediaThe first (featured) media attached to the product.
first_available_variantvariantThe first available variant of the product.
gift_card?booleanReturns `true` if the product is a gift card. Returns `false` if not.
has_only_default_variantbooleanReturns `true` if the product doesn't have any options. Returns `false` if not.
idnumberThe ID of the product.
imagesarray<image>The images attached to the product.
mediaarray<media>The media attached to the product, sorted by the date it was added to the product.
metafieldsuntypedThe metafields applied to the product.
optionsarray<string>The option names of the product.
options_by_nameuntypedAllows you to access a specific product option by its name.
options_with_valuesarray<product_option>The options on the product.
pricenumberThe lowest price of any variants of the product in the currency's subunit.
price_maxnumberThe highest price of any variants of the product in the currency's subunit.
price_minnumberThe lowest price of any variants of the product in the currency's subunit.
price_variesbooleanReturns `true` if the product's variant prices vary. Returns `false` if not.
published_atstringA timestamp for when the product was published.
quantity_price_breaks_configured?booleanReturns `true` if the product has at least one variant with quantity price breaks in the current customer context. Returns `false` if not.
remote_detailsremote_detailsInformation about the remote source from which the remote product came from.
requires_selling_planbooleanReturns `true` if all of the variants of the product require a selling plan. Returns `false` if not.
selected_or_first_available_selling_plan_allocationselling_plan_allocationThe currently selected, or first available, selling plan allocation.
selected_or_first_available_variantvariantThe currently selected or first available variant of the product.
selected_selling_planselling_planThe currently selected selling plan.
selected_selling_plan_allocationselling_plan_allocationThe currently selected selling plan allocation for the currently selected variant.
selected_variantvariantThe currently selected variant of the product.
selling_plan_groupsarray<selling_plan_group>The selling plan groups that the variants of the product are included in.
template_suffixstringThe name of the custom template assigned to the product.
titlestringThe title of the product.
typestringThe type of the product.
urlstringThe relative URL of the product.
variantsarray<variant>The variants of the product.
variants_countnumberThe total number of variants for the product.
vendorstringThe vendor of the product.

remote_shop

Information about a remote store.

Returns: RemoteShopDrop

FieldsTypeDescription
brandbrandThe brand assets for the remote store.
namestringThe name of the remote store.
policiesarray<policy>The shipping and refund policies for the remote store.
refund_policypolicyThe refund policy for the remote store.
shipping_policypolicyThe shipping policy for the remote store.

request

Information about the current URL and the associated page.

FieldsTypeDescription
design_modebooleanReturns `true` if the request is being made from within the theme editor. Returns `false` if not.
hoststringThe domain that the request is hosted on.
localeshop_localeThe locale of the request.
originstringThe protocol and host of the request.
page_typestring | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | stringThe type of page being requested.
pathstringThe path of the request.
visual_preview_modebooleanReturns `true` if the request is being made from within the theme editor's visual section preview. Returns `false` if not.

robots

The default rule groups for the `robots.txt` file.

FieldsTypeDescription
default_groupsarray<group>The rule groups.

routes

Allows you to generate standard URLs for the storefront.

FieldsTypeDescription
account_addresses_urlstringThe account addresses page URL. Redirects to customer accounts when enabled.
account_login_urlstringThe account login page URL. Redirects to customer accounts when enabled.
account_logout_urlstringThe URL to log a customer out of their account. Redirects to customer accounts when enabled.
account_profile_urlstringThe URL for the customer accounts profile page.
account_recover_urlstringThe password recovery page URL. Redirects to customer accounts when enabled.
account_register_urlstringThe account registration page URL.
account_urlstringThe account page URL. Redirects to customer accounts when enabled.
all_products_collection_urlstringThe all-products collection page URL.
cart_add_urlstringThe URL for the `/cart/add` Cart API endpoint.
cart_change_urlstringThe URL for the `/cart/change` Cart API endpoint.
cart_clear_urlstringThe URL for the `/cart/clear` Cart API endpoint.
cart_update_urlstringThe URL for the `/cart/update` Cart API endpoint.
cart_urlstringThe cart page URL.
collections_urlstringThe collection list page URL.
predictive_search_urlstringThe Predictive Search API URL.
product_recommendations_urlstringThe Product Recommendations API URL.
root_urlstringThe index (home page) URL.
search_urlstringThe search page URL.
storefront_login_urlstringCustomer accounts login page. Redirects to the storefront page the customer was on before visiting the login page.

rule

A rule for the `robots.txt` file, which tells crawlers which pages can, or can't, be accessed.

FieldsTypeDescription
directivestringThe directive of the rule.
valuestringThe value of the rule.

section

The properties and settings of a section.

FieldsTypeDescription
blocksarray<block>The blocks of the section.
idstringThe ID of the section.
indexnumberThe 1-based index of the current section within its location.
index0numberThe 0-based index of the current section within its location.
locationstringThe scope or context of the section (template, section group, or global).
settingsuntypedThe settings of the section.

self

The current Liquid scope.

Returns: untyped

A single value; it has no fields.

selling_plan

Information about the intent of how a specific selling plan affects a line item.

FieldsTypeDescription
checkout_chargeselling_plan_checkout_chargeThe checkout charge of the selling plan.
descriptionstringThe description of the selling plan.
group_idstringThe ID of the `selling_plan_group` that the selling plan belongs to.
idnumberThe ID of the selling plan.
namestringThe name of the selling plan.
optionsarray<selling_plan_option>The selling plan options.
price_adjustmentsarray<selling_plan_price_adjustment>The selling plan price adjustments.
recurring_deliveriesbooleanReturns `true` if the selling plan includes multiple deliveries. Returns `false` if not.
selectedbooleanReturns `true` if the selling plan is currently selected. Returns `false` if not.

selling_plan_allocation

Information about how a specific selling plan affects a line item.

FieldsTypeDescription
checkout_charge_amountnumberThe amount that the customer will be charged at checkout in the currency's subunit.
compare_at_pricenumberThe **compare at** price of the selling plan allocation in the currency's subunit.
per_delivery_pricenumberThe price for each delivery in the selling plan in the currency's subunit.
pricenumberThe price of the selling plan allocation in the currency's subunit.
price_adjustmentsarray<selling_plan_allocation_price_adjustment>The selling plan allocation price adjustments.
remaining_balance_charge_amountnumberThe remaining amount for the customer to pay, in the currency's subunit.
selling_planselling_planThe selling plan that created the allocation.
selling_plan_group_idstringThe ID of the `selling_plan_group` that the selling plan of the allocation belongs to.
unit_pricenumberThe unit price of the variant associated with the selling plan, in the currency's subunit.

selling_plan_allocation_price_adjustment

The resulting price from the intent of the associated `selling_plan_price_adjustment`.

FieldsTypeDescription
positionnumberThe 1-based index of the price adjustment in the `selling_plan_allocation.price_adjustments` array.
pricenumberThe price that will be charged for the price adjustment's lifetime, in the currency's subunit.

selling_plan_checkout_charge

Information about how a specific selling plan affects the amount that a customer needs to pay for a line item at checkout.

FieldsTypeDescription
valuenumberThe value of the checkout charge.
value_typestring | stringThe value type of the checkout charge.

selling_plan_group

Information about a specific group of selling plans that include any of a product's variants.

FieldsTypeDescription
app_idstringAn optional string provided by an app to identify selling plan groups created by that app.
idnumberThe ID of the selling plan group.
namestringThe name of the selling plan group.
optionsarray<selling_plan_group_option>The selling plan group options.
selling_plan_selectedbooleanReturns `true` if the currently selected selling plan is part of the selling plan group. Returns `false` if not.
selling_plansarray<selling_plan>The selling plans in the group.

selling_plan_group_option

Information about a specific option in a selling plan group.

FieldsTypeDescription
namestringThe name of the option.
positionnumberThe 1-based index of the option in the `selling_plan_group.options` array.
selected_valuestringThe option value of the currently selected selling plan.
valuesarray<string>The values of the option.

selling_plan_option

Information about a selling plan's value for a specific `selling_plan_group_option`.

FieldsTypeDescription
namestringThe name of the associated `selling_plan_group_option`.
positionnumberThe 1-based index of the selling plan option in the associated `selling_plan_group.options` array.
valuestringThe value of the selling plan option.

selling_plan_price_adjustment

Information about how a selling plan changes the price of a variant for a given period of time.

FieldsTypeDescription
order_countnumberThe number of orders that the price adjustment applies to.
positionnumberThe 1-based index of the price adjustment in the `selling_plan.price_adjustments` array.
valuenumberThe value of the price adjustment as a decimal.
value_typestring | string | stringThe type of price adjustment.

settings

Allows you to access all of the theme's settings from the `settings_schema.json` file.

shipping_method

Information about the shipping method for an order.

FieldsTypeDescription
discount_allocationsarray<discount_allocation>The discount allocations that apply to the shipping method.
handlestringThe handle of the shipping method.
idstringThe ID of the shipping method.
original_pricenumberThe price of the shipping method in the currency's subunit, before discounts have been applied.
pricenumberThe price of the shipping method in the currency's subunit, after discounts have been applied.
price_with_discountsnumberThe price of the shipping method in the currency's subunit, after discounts have been applied, including order level discounts.
tax_linesarray<tax_line>The tax lines for the shipping method.
titlestringThe title of the shipping method.

shop

Information about the store, such as the store address, the total number of products, and various settings.

FieldsTypeDescription
accepts_gift_cardsbooleanReturns `true` if the store accepts gift cards. Returns `false` if not.
addressaddressThe address of the store.
brandbrandThe brand assets for the store.
collections_countnumberThe number of collections in the store.
currencystringThe currency of the store.
customer_accounts_enabledbooleanReturns `true` if the store shows a login link. Returns `false` if not.
customer_accounts_optionalbooleanReturns `true` if customer accounts are optional to complete checkout. Returns `false` if not.
descriptionstringThe description of the store.
domainstringThe primary domain of the store.
emailstringThe sender email of the store.
enabled_currenciesarray<currency>The currencies that the store accepts.
enabled_localesarray<shop_locale> | array<shop_locale>The locales (languages) that are published on the store.
enabled_payment_typesarray<string>The accepted payment types on the store.
idstringThe ID of the store.
localeshop_localeThe currently active locale (language).
metafieldsThe metafields applied to the store.
metaobjectsAll of the metaobjects of the store.
money_formatcurrencyThe money format of the store.
money_with_currency_formatcurrencyThe money format of the store with the currency included.
namestringThe name of the store.
password_messagestringThe password page message of the store.
permanent_domainstring
phonestringThe phone number of the store.
policiesarray<policy>The policies for the store.
privacy_policypolicyThe privacy policy for the store.
products_countnumberThe number of products in the store.
published_localesarray<shop_locale>The locales (languages) that are published on the store.
refund_policypolicyThe refund policy for the store.
search_typesarray<string>The resource types searched for by default when no `type` parameter is specified.
secure_urlstringThe full URL of the store, with an `https` protocol.
shipping_policypolicyThe shipping policy for the store.
subscription_policypolicyThe subscription policy for the store.
taxes_includedbooleanReturns `true` if prices include taxes. Returns `false` if not.
terms_of_servicepolicyThe terms of service for the store.
typesarray<string>All of the product types in the store.
urlstringThe full URL of the store.
vendorsarray<string>All of the product vendors for the store.

shop_locale

A language in a store.

FieldsTypeDescription
endonym_namestringThe name of the locale in the locale itself.
iso_codestringThe ISO code of the locale in IETF language tag format.
namestringThe name of the locale in the store's primary locale.
primarybooleanReturns `true` if the locale is the store's primary locale. Returns `false` if not.
root_urlstringThe relative root URL of the locale.

sitemap

The sitemap for a specific group in the `robots.txt` file.

FieldsTypeDescription
directivestringReturns `Sitemap`.
valuestringThe URL that the sitemap is hosted at.

sort_option

A sort option for a collection or search results page.

FieldsTypeDescription
namestringThe customer-facing name of the sort option.
valuestringThe value of the sort option.

store_availability

A variant's inventory information for a physical store location.

FieldsTypeDescription
availablebooleanReturns `true` if the variant has available inventory at the location. Returns `false` if not.
locationlocationThe location that the variant is stocked at.
pick_up_enabledbooleanReturns `true` if the location has pickup enabled. Returns `false` if not.
pick_up_timestringThe amount of time that it takes for pickup orders to be ready at the location.

store_credit_account

A store credit account owned by a customer.

FieldsTypeDescription
balancemoneyThe balance of the store credit account in the currency's subunit.

swatch

Color and image for visual representation. Available for product option values and filter values.

FieldsTypeDescription
colorcolorThe swatch color.
imageimageThe swatch image.

tablerowloop

Information about a parent `tablerow` loop.

FieldsTypeDescription
colnumberThe 1-based index of the current column.
col0numberThe 0-based index of the current column.
col_firstbooleanReturns `true` if the current column is the first in the row. Returns `false` if not.
col_lastbooleanReturns `true` if the current column is the last in the row. Returns `false` if not.
firstbooleanReturns `true` if the current iteration is the first. Returns `false` if not.
indexnumberThe 1-based index of the current iteration.
index0numberThe 0-based index of the current iteration.
lastbooleanReturns `true` if the current iteration is the last. Returns `false` if not.
lengthnumberThe total number of iterations in the loop.
rindexnumberThe 1-based index of the current iteration, in reverse order.
rindex0numberThe 0-based index of the current iteration, in reverse order.
rownumberThe 1-based index of current row.

tax_line

Information about a tax line of a checkout or order.

FieldsTypeDescription
pricenumberThe tax amount in the currency's subunit.
ratenumberThe decimal value of the tax rate.
rate_percentagenumberThe decimal value of the tax rate, as a percentage.
titlestringThe title of the tax.

taxonomy_category

The taxonomy category for a product

FieldsTypeDescription
ancestorsarray<taxonomy_category>All parent nodes of the current taxonomy category.
gidstring
idstringThe public node ID for the category
namestringThe localized category name

template

Information about the current template.

FieldsTypeDescription
directorystringThe name of the template's parent directory.
namestring | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | string | stringThe name of the template's type.
suffixstringThe custom name of an alternate template.

themeDeprecated

Information about the current theme.

FieldsTypeDescription
idnumberThe ID of the theme.
namestringThe name of the theme.
rolestring | string | string | stringThe role of the theme.

transaction

A transaction associated with a checkout or order.

FieldsTypeDescription
amountnumberThe amount of the transaction in the currency's subunit.
buyer_pending_payment_instructionsarray<pending_payment_instruction_input>
buyer_pending_payment_noticestringA notice that contains instructions for the customer on how to complete their payment. The messages are specific to the payment method used.
created_atstringA timestamp of when the transaction was created.
gatewaystringThe handleized name of the payment provider used for the transaction.
gateway_display_namestringThe name of the payment provider used for the transaction.
idnumberThe ID of the transaction.
kindstring | string | string | string | stringThe type of transaction.
namestringThe name of the transaction.
payment_detailstransaction_payment_detailsThe transaction payment details.
receiptstringInformation from the payment provider about the payment receipt.
show_buyer_pending_payment_instructions?booleanWhether the transaction is pending, and whether additional customer info is required to process the payment.
statusstring | string | string | stringThe status of the transaction.
status_labelstringThe status of the transaction, translated based on the current locale.

transaction_payment_details

Information about the payment methods used for a transaction.

FieldsTypeDescription
credit_card_companystringThe name of the company that issued the credit card used for the transaction.
credit_card_last_four_digitsstringThe last four digits of the credit card number of the credit card used for the transaction.
credit_card_numberstringThe credit card number of the credit card used for the transaction.
gift_cardgift_cardThe gift card used for the transaction.

unit_price_measurement

Information about how units of a product variant are measured. It's used to calculate unit prices.

FieldsTypeDescription
measured_typestring | string | string | string | stringThe type of unit measurement.
quantity_unitstringThe unit of measurement used to measure the `quantity_value`.
quantity_valuenumberThe quantity of the unit.
reference_unitstringThe unit of measurement used to measure the `reference_value`.
reference_valuenumberThe quantity of the unit for the base unit price.

user

The author of a blog article.

FieldsTypeDescription
account_ownerbooleanReturns `true` if the author is the account owner of the store. Returns `false` if not.
biostringThe bio associated with the author's account.
emailstringThe email associated with the author's account.
first_namestringThe first name associated with the author's account.
homepagestringThe URL for the personal website associated with the author's account.
imageimageThe image associated with the author's account.
last_namestringThe last name associated with the author's account.
namestringThe first and last name associated with the author's account.

user_agent

The user-agent, which is the name of the crawler, for a specific group in the `robots.txt` file.

FieldsTypeDescription
directivestringReturns `User-agent`.
valuestringThe name of the user-agent.

variant

A product variant.

FieldsTypeDescription
availablebooleanReturns `true` if the variant is available. Returns `false` if not.
barcodestringThe barcode of the variant.
compare_at_pricenumberThe **compare at** price of the variant in the currency's subunit.
featured_imageimageThe image attached to the variant.
featured_mediamediaThe first media object attached to the variant.
idnumberThe ID of the variant.
imageimageThe image attached to the variant.
incomingbooleanReturns `true` if the variant has incoming inventory. Returns `false` if not.
inventory_managementstringThe inventory management service of the variant.
inventory_policystring | stringWhether the variant should continue to be sold when it's out of stock.
inventory_quantitynumberThe inventory quantity of the variant.
matchedbooleanReturns `true` if the variant has been matched by a storefront filter or no filters are applied. Returns `false` if it hasn't.
metafieldsuntypedThe metafields applied to the variant.
next_incoming_datestringThe arrival date for the next incoming inventory of the variant.
option1stringThe value of the variant for the first product option.
option2stringThe value of the variant for the second product option.
option3stringThe value of the variant for the third product option.
optionsproduct_option_valueThe values of the variant for each product option.
pricenumberThe price of the variant in the currency's subunit.
productproductThe parent product of the variant.
quantity_price_breaksarray<quantity_price_break>Returns `quantity_price_break` objects for the variant in the current customer context.
quantity_price_breaks_configured?booleanReturns `true` if the variant has any quantity price breaks available in the current customer context. Returns `false` if it doesn't.
quantity_rulequantity_ruleThe quantity rule for the variant.
requires_selling_planbooleanReturns `true` if the variant's product is set to require a `selling_plan` when being added to the cart. Returns `false` if not.
requires_shippingbooleanReturns `true` if the variant requires shipping. Returns `false` if it doesn't.
selectedbooleanReturns `true` if the variant is currently selected. Returns `false` if it's not.
selected_selling_plan_allocationselling_plan_allocationThe selected `selling_plan_allocation`.
selling_plan_allocationsarray<selling_plan_allocation>The `selling_plan_allocation` objects for the variant.
skustringThe SKU of the variant.
store_availabilitiesarray<store_availability>The store availabilities for the variant.
taxablebooleanReturns `true` if taxes should be charged on the variant. Returns `false` if not.
titlestringA concatenation of each variant option, separated by a `/`.
unit_pricenumberThe unit price of the variant in the currency's subunit.
unit_price_measurementunit_price_measurementThe unit price measurement of the variant.
urlstringThe URL of the variant.
weightnumberThe weight of the variant in grams.
weight_in_unitnumberThe weight of the variant in the unit specified by `variant.weight_unit`.
weight_unitstringThe unit for the weight of the variant.

video

Information about a video uploaded as product media or a `file_reference` metafield.

FieldsTypeDescription
altstringThe alt text of the video.
aspect_rationumberThe aspect ratio of the video as a decimal.
durationnumberThe duration of the video in milliseconds.
idnumberThe ID of the video.
media_typestringThe media type of the model. Always returns `video`.
positionnumberThe position of the video in the `product.media` array.
preview_imageimageA preview image for the video.
sourcesarray<video_source>The source files for the video.

video_source

Information about the source files for a video.

FieldsTypeDescription
formatstring | string | stringThe format of the video source file.
heightnumberThe height of the video source file.
mime_typestringThe MIME type of the video source file.
urlstringThe CDN URL of the video source file.
widthnumberThe width of the video source file.