Metadata API
The Metadata API provides a seamless way to view additional object definitions (i.e., metadata).
The Metadata objects field will display unified object types as keys, and the corresponding values will be arrays of IDs associated with those objects.
For example:
{
"objects": {
"commerce_item": ["item1", "item2"],
"commerce_collection": ["collection1", "collection2"],
"commerce_item_variant": ["variant1", "variant2"]
}
}
The Metadata API enhances the commerce_metadata
object, which is being deprecated. The API is being released starting with commerce_item, commerce_collection, and commerce_item_variant with expanded support for other unified models coming in the future.
Are we missing anything? Let us know