Metafield
object
Metafield information.
Fields
The namespace of the metafield, used to group metafields. A metafield can be uniquely identified by its
Only letters, numbers, hyphens, and underscores are supported.
Minimum length: 2
Maximum length: 50
key and namespace.Only letters, numbers, hyphens, and underscores are supported.
Minimum length: 2
Maximum length: 50
The ID of the metafiled.
The data types available for the metafield feature. Valid values are:
single_line_text_field: A single-line text fieldlist.single_line_text_field: Multiple single-line text fieldsmulti_line_text_field: Multi-line text fieldcolor: A single colorlist.color: Multiple colorsdate: A single datelist.date: Multiple datesdate_time: A single date and time. Format: ISO 8601.list.date_time: Multiple dates and times. Format: ISO 8601.url: A single URLlist.url: Multiple URLsfile_reference: A single file. Support a PDF or image file within 10 MB. Supported image formats: JPEG, PNG, and GIF.list.file_reference: Multiple files. Support PDF or image files and each file must be within 10 MB. Supported image formats: JPEG, PNG, and GIF.json: JSONweight: A single weight with a unitlist.weight: Multiple weights with unitsvolume: A single volume with a unitlist.volume: Multiple volumes with unitsdimension: A single size with a unitlist.dimension: Multiple sizes with unitsnumber_integer: A single integerlist.number_integer: Multiple integersnumber_decimal: A single decimallist.number_decimal: Multiple decimalsrating: A single ratinglist.rating: Multiple ratingspage_reference: A single pagelist.page_reference: Multiple pagesproduct_reference: A single productlist.product_reference: Multiple productsvariant_reference: A single product variantlist.variant_reference: Multiple product variantscollection_reference: A single product collectionlist.collection_reference: Multiple product collectionscustomer_reference: A single customerlist.customer_reference: Multiple customersorder_reference: A single orderlist.order_reference: Multiple ordersboolean: Boolean type, valid values aretrueandfalse.money: Amount with a currency
For more information about metafields, refer to Guide to Using Metafields Feature.
Data stored in the metafield.
Regardless of how you define the type of the metafield, SHOPLINE will store it in string format. The maximum length of the converted string is 500000.
Regardless of how you define the type of the metafield, SHOPLINE will store it in string format. The maximum length of the converted string is 500000.
A unique identifier for a metafield definition within its
Minimum length: 3
Maximum length: 30
namespace. Only letters, numbers, hyphens, and underscores are supported.Minimum length: 3
Maximum length: 30
Description of the metafield.
The resource referenced by the metafield.
A list of resources referenced by the metafield.
Was this article helpful to you?