Skip to content
Help Center

Metafield data types

Each metafield type supports specific data formats. Choose the type that best fits your use case and how you want to display or manage data in your store.

Metafield types are grouped into the following categories:

  • Text
  • Numbers
  • Date and time
  • Measurement
  • Reference
  • Other

Text fields

Data typeDescriptionExample
Single-line textSupports plain text in one line. Can be limited to predefined values.Add short notes or product tags.
Multi-line textSupports longer text with optional character limits and regex validation.Add shipping notes or return policies.

Number fields

Data typeDescriptionExample
IntegerWhole numbers onlyPage count, inventory stock
DecimalSupports decimals and whole numbersProduct weight in carats, rating values

Date and time fields

Data typeDescriptionExample
DateISO 8601 format (yyyy-mm-dd)Product expiration date, customer birthday
e.g., 2025-05-28
Date & timeISO 8601 format + UTC timestampProduct launch time, campaign start
e.g., 2022-01-01T12:30:00

Measurement fields (Metric and Imperial)

Data typeDescriptionExample
WeightAccepts decimals or whole numbers in units like kg, g, lb, or ozRaw material weight, e.g., 500g
DimensionAccepts decimals or whole numbers in mm, cm, m, inch, etc.Product height, e.g., 80cm
VolumeAccepts values in ml, l, , us_qt, and other unitsCup capacity, e.g., 350ml or 1 us_qt
Data typeDescriptionExample
CustomerReference a customer in your storeLink a field to a specific customer (e.g., sales rep)
ProductReference another product (for related or bundled items)Set a “Frequently Bought Together” product
VariantReference a specific product variant (e.g., color or size)Link to other products with matching styles
CollectionLink to one or more product collectionsCreate “Complete the Look” sections
FileReference files from your media library (see Media requirements)Upload instructions, certificates, PDFs

Other field types

Data typeDescriptionExample
ColorAccepts RGB values in #RRGGBB formatSet primary color, e.g., #FF9900
MoneyDecimal value with store currency codeCost price or wholesale price, e.g., $10.50
URLAccepts http:// or https://, can be limited by domainLink to brand site or product video
True / FalseBoolean value (toggle or checkbox)Enable engraving: true

TIP

  • Each data type supports different input controls, validations, and frontend behaviors.
  • Choose the type based on your data format, user needs, and storefront display requirements.