GET https://{handle}.myshopline.com/admin/openapi/v20240601/metafield_definition.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .
metafieldDefinitionQuery
Query Parameters
  • id string required
    The definition ID of the metafield.
    Example: 71351007083
Request Headers
  • Content-Type required
    The value of this field is fixed to application/json; charset=utf-8
  • Authorization string required
    The access token for the API. Please refer to App authorization to obtain the access token, and then put the obtained access token into the API request header in Bearer Token.
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Response
For more information about status codes, see Http status code.

Response Headers
  • traceId
    traceId
Response Body
  • definitionobject
    Metafield Definition
  • accessobject
    Access settings that apply to each metafield that belongs to the metafield definition.
  • admin string
    Admin access settings for metafields under this definition, supports: PRIVATE, MERCHANT_READ, MERCHANT_READ_WRITE
    Example: MERCHANT_READ
  • created_at string
    The creation time of the meta field definition.
    Example: 2023-05-31T15:18:49+08:00
  • description string
    A description of the metafield definition.
    Example: This is the description for the Product Care Guidelines metafield
  • id long
    The definition ID of the metafield.
    Example: 71351007083
  • key string
    A unique identifier for a metafield definition within its namespace.
    Example: product-guide2
  • name string
    Define human-readable metafield names.
    Example: Product Care Guide
  • namespace string
    A metafield defines a container for a set of metafields that will be related.
    Example: app--70303--seotest
  • owner_resource string
    The meta field defines the resource object type to attach to: products, customers, orders, pages, variants, collections articles, blogs, draft_orders, smart_collections locations, images, shop
    Example: products
  • type string
    The type of data that each metafield that belongs to the metafield definition will store. See the list of supported types.
    Example: multi_line_text_field
  • updated_at string
    The last update time of the meta field definition.
    Example: 2023-05-31T15:18:49+08:00
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20240601

ParamOptions

— query required
— header required

Language

curl --request GET \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20240601/metafield_definition.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json'
Examples
Success
Response
{
"definition": {
"created_at": "2023-05-31T15:18:49+08:00",
"description": "这是商品保养指南元字段的描述说明",
"id": 71387517083,
"key": "product-guide2",
"name": "商品保养指南",
"namespace": "test123",
"owner_resource": "products",
"type": "multi_line_text_field",
"updated_at": "2023-05-31T15:18:49+08:00"
}
}
Was this article helpful to you?

Error loading component.

Error loading component.