Batch query meiafield definition
GET https://{handle}.myshopline.com/admin/openapi/v20250601/metafield_definitions.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
.Query Parameters
- access_admin stringPer the definition of the field of acess permissions filtering . ( default definition of the field of the field of the PRIVATE corresponding to MERCHANT_READ_WRITE、MERCHANT_READ、PUBLIC_READ、null、 and the app . )Example:
MERCHANT_READ
- created_at_max stringShow definition of the field of yuan before date Example : 2021-04-25T16 : 16 : 47-04 : 00Example:
2021-04-25T16:16:47-04:00
- created_at_min stringShow definition of the field after the date Example : 2021-04-25T16 : 16 : 47-04 : 00Example:
2021-04-25T16:16:47-04:00
- definition_state stringDefinition status : CREATED , all , default CREATEDExample:
CREATED
- key stringDefine the field Example : key_123 by secret key filteringExample:
key_123
- limit integerQuery quantity limited to , default 50 , can not exceed 1000 Example : 10Example:
50
- namespace stringDefinition of Example : n_123 by name space filtering fieldExample:
n_123
- owner_resource string requiredFilter meta field definitions by specific owner types Example: products, customers, orders, pages, variants, collections articles, blogs, draft_orders, smart_collections locations, images, shopExample:
products
- page_info stringPaging parameters
- since_id longAfter specify id Example : 1Example:
1
- type stringDefine Example : single_line_text_field by data type filtering fieldExample:
single_line_text_field
- updated_at_max stringShow update before date field definition Example : 2021-04-25T16 : 16 : 47-04 : 00Example:
2021-04-25T16:16:47-04:00
- updated_at_min stringShow update before date field definition Example : 2021-04-25T16 : 16 : 47-04 : 00Example:
2021-04-25T16:16:47-04:00
Request Headers
- Content-Type requiredThe value of this field is fixed to
application/json; charset=utf-8
- Authorization string requiredThe 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
- 200
- 401
- 429
For more information about status codes, see Http status code.
Response Headers
link
Query jump pagetraceId
traceId
Response Body
dataobject
datametafield_definitionsobject[]
Metafield defines the paging listaccessobject
Return permissions defined in the field of the yuan .admin stringReturn permissions defined in the field of the yuan .Example:MERCHANT_READ
created_at stringReturn created time for the field definition .Example:2021-04-25T16:16:47-04:00
description stringReturn description of the field definition .Example:A list of ingredients used to make the product.
id longReturn the metafieldsDefinitions ID defined in the field of life , global unique identifierExample:33646782314
key stringReturn secret key defined in the field of the yuan .Example:key123
name stringReturn this field defines the name .Example:Subtitle
namespace stringReturn name space defined in the field of the yuan .Example:n_123
owner_resource stringReturn owner resources object name defined in the field of the yuan .Example:products
type stringReturn the data type that will be stored is defined in the field of the yuan .Example:single_line_text_field
updated_at stringReturn update time defined in the field .Example:2021-04-30T16:16:47-04:00
API Explorer
Debugger
Was this article helpful to you?