API Metafield
From Spiffy Stores Knowledge Base
The Spiffy Stores API Metafield object allows you to attach metadata to a number of your Store's objects.
In this context, metadata represents any sort of data that can be represented by a key/value structure and can be associated with one of the following types of store objects.
- Product
- Variation
- Page
- Blog
- Standard Collection
- Super Collection
- Customer
- Order
A Metafield has the following properties:
- Namespace
- Key
- Value
- Value Type (integer or string)
- Description (Optional)
The Namespace allows you to group a number of related keys together.
Within a Namespace, there will be one or more unique Keys.
Each Key within the Namespace will have a Value which may be either an integer or string value.
Finally, for documentation purposes, an optional Description may also be added when the Metafield is created.