List Metafield Definitions

Retrieve a list of all metafield definitions.

The Get Metafields List API allows developers to retrieve a list of all metafield definitions for a specific owner resource.

This API is particularly useful for:

  1. Fetching metadata schema definitions for products, orders, or customers.
  2. Managing custom field configurations in bulk.

Request Parameters

Public Request Parameters

📘

Path Parameters

Parameter

Type

Required

Description

Example

owner_resource

string

Yes

Type of resource the metafield definition belongs to. Valid values:
shop, product, product_image, product_variant,
order, page, customer, collection, blog, article

"product"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"Status code of the response
messagestringDescriptive message of the response
data.definitionsarray[object][{...}]Array of metafield definition objects
data.definitions.idstring"mfd_12345"Unique identifier of the metafield definition
data.definitions.keystring"custom_size"Key identifier for the metafield
data.definitions.namestring"Product Size"Human-readable name of the metafield
data.definitions.namespacestring"custom"Namespace for grouping metafields
data.definitions.owner_resourcestring"products"Resource type this definition applies to
data.definitions.typestring"string"Data type of the metafield (e.g., string, integer)
data.definitions.descriptionstring"Stores product dimensions"Detailed explanation of the metafield
data.definitions.created_atstring"2025-01-01T00:00:00Z"Timestamp of creation (ISO 8601)
data.definitions.updated_atstring"2025-01-02T12:00:00Z"Timestamp of last update (ISO 8601)

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!