跳到主要内容
版本:202201

查询元字段 列表

GET 

/openapi/2022-01/:resource/:resource_id/metafields

请求

Path参数

    resource string必填

    The type of resource that the metafield is attached to. Available resources: shop, product, product_image, product_variant, order, page, customer, collection, blog, article.

    resource_id string必填

    The unique ID of the resource that the metafield is attached to.

Query参数

    namespace string

    A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name.

    key string

    The key of the metafield.

    type string

    The type of data that the metafield stores in the value field.

    limit string

    Limit per page

    since_id string

    Show metafields created after the specified ID.

    create_at_min string

    Show metafields created after date, ISO-8601 format, for example: 2022-12-02T09:46:30Z

    create_at_max string

    Show metafields created before date, ISO-8601 format, for example: 2022-12-02T09:46:30Z

    update_at_min string

    Show metafields last updated after date, ISO-8601 format, for example: 2022-12-02T09:46:30Z

    update_at_max string

    Show metafields last updated before date, ISO-8601 format, for example: 2022-12-02T09:46:30Z

响应

200

数据结构
    metafields object[]
  • Array [
  • idstring
    示例: 374050809094090794
    store_idinteger
    默认值: 0
    示例: 633130
    created_atstring
    示例: 2024-04-28T06:50:19Z
    updated_atstring
    示例: 2024-04-28T06:50:19Z
    owner_resourcestring
    示例: product
    owner_idstring
    示例: a1a88be0-a1d4-47e4-a2f2-ba6e131cf447
    namespacestring
    示例: shirt
    keystring
    示例: weight
    typestring
    示例: weight
    valueinteger
    默认值: 0
    示例: 10
    descriptionstring
    示例: weight
    definition_idstring
    示例: 0
  • ]
  • last_idstring
    示例: 374087540346466346
    totalinteger
    默认值: 0
    示例: 2
    remaininteger
    默认值: 0
    示例: 0
    pageinteger
    默认值: 0
    示例: 1
    total_pageinteger
    默认值: 0
    示例: 1
    have_nextboolean
    默认值: true
    示例: false