版本:202506
查询元字段定义列表
GET/openapi/2025-06/metafield_definition/:owner_resource
获取所有元字段定义的列表。
请求
Path参数
shop: 店铺product: 商品product_image: 商品图片product_variant: 商品款式order: 订单page: 自定义页面customer: 顾客collection: 商品专辑blog: 博客article: 文章app: 应用
owner_resource string必填
所属资源类型:
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
- Array [
shop: 店铺product: 商品product_image: 商品图片product_variant: 商品款式order: 订单page: 自定义页面customer: 顾客collection: 商品专辑blog: 博客article: 文章app: 应用date: 日期date_time: 日期和时间weight: 重量volume: 体积dimension: 外形尺寸integer: 整数number_decimal: 小数file_reference: 文件引用single_line_text_field: 单行文本multi_line_text_field: 多行文本json: JSONcolor: 颜色rating: 评分url: URLboolean: 布尔值(true 或 false)string: 字符串- ]
codestring
错误码
messagestring
错误信息
data object
definitions object[]
元字段定义列表
idstring
元字段定义 ID
keystring
元字段键名
namestring
元字段定义名称
namespacestring
命名空间
owner_resourcestring
所属资源类型:
typestring
元字段值类型:
descriptionstring
元字段定义描述
create_atstring
创建时间(ISO-8601 格式)
updated_atstring
最后更新时间(ISO-8601 格式)
{
"code": "string",
"message": "string",
"data": {
"definitions": [
{
"id": "string",
"key": "string",
"name": "string",
"namespace": "string",
"owner_resource": "string",
"type": "string",
"description": "string",
"create_at": "string",
"updated_at": "string"
}
]
}
}