OverviewProductsPlatformsAPI ReferenceResources
Commerce

List metaobject definitions

GEThttps://zernio.com/api/v1/commerce/metaobject-definitions

The custom content types defined on the store and their fields.

PlatformsShopify

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

accountIdstringRequired

Connected store SocialAccount id.

Responses

Success· the request worked

Errors· the request failed

GET/v1/commerce/metaobject-definitions
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.commerce.listCommerceMetaobjectDefinitions({  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "definitions": [    {      "id": "string",      "type": "string",      "name": "string",      "fields": [        {          "key": "string",          "name": "string",          "type": "string",          "required": true        }      ]    }  ]}
OpenAPI specification
Was this page helpful?