Skip to content

The Metafield entity at YouCan.

Metafields allow storing custom key-value data on any resource (products, orders, customers, etc.).

Attribute NameTypeDescription
idstringIdentifier
namespacestringLogical grouping for the metafield (e.g. "reviews-app")
keystringKey within the namespace (e.g. "rating")
valuestringStored value
typestringValue type (e.g. "number", "string", "json") — corresponds to the value_type input parameter

Notes

  • When creating, the input parameter is named value_type; the response returns the same value under type.
  • The namespace + key combination is unique per resource. See the create endpoint for upsert behavior.