Custom content (metaobjects) lets a store define its own content types, such as Designer, Size chart or Ingredient, keep entries of each type in one place, and link an entry from any product, collection, page or other item through a custom data field of type metaobject_reference (or list.metaobject_reference). Store Admin calls it Custom content. Reads require read_metaobjects; writes require write_metaobjects.
A type (metaobject_definition) has a handle, a name and an ordered list of 1 to 40 fields; each field has a key and any metafield type, and can be required, translatable (text types) or searchable. Its display field, a single line text field, names each entry in lists and pickers. An entry (metaobject) has a handle unique in its type, a status (draft or active; drafts never reach the storefront or feeds), its field values, SEO and an optional social_image_id, an uploaded image of the Media library (setting one also requires read_files) shown when the entry page is shared. Without it the entry page shows the image in the type's social_image_field_key field (a file_reference field), then the store's share image, then its logo. Deleting the file from Media clears social_image_id and sends metaobjects/update. Field values use the same form and rules as metafield values of the same type, see Metafield definitions. References to products, variants, files, pages, blog posts, collections and other entries are checked when saved, a metaobject reference must name an entry of the type its field points to, and a list of entry references holds at most 50 entries. With expand=references reads resolve metaobject reference fields to their entries, 3 levels deep.
The plan sets how many types a store can have and how many entries it can keep across all types; read them and the fixed limits from /metaobject_definitions/limits. Deleting an entry removes it from every custom data value and entry field that references it; when any does, the first delete request returns CONFIRMATION_REQUIRED with the count. A type can only be deleted once it has no entries and no custom data definition or other type points to it. A changed entry handle is kept as one of the entry's last 20 old handles. Change many entries at once with the bulk operation (publish, unpublish or delete every entry matching a filter, in the background) or Bulk upsert entries (100 per request), and move whole types through CSV with the metaobjects import and export types.
Endpoints#
Custom content limits
Read custom content limits and usage.
Returns the plan allowance (max_definitions, max_entries across every type) and usage counters, and the fixed limits: fields per type, value size per entry, list reference size, reference depth, bulk size, text lengths and page sizes.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List custom content types
List the store's custom content types.
Returns every type with its fields, entry_count, active_entry_count, owner (merchant, theme or app), owner_ref (the app's id or the theme's name) and owner_name (the app's name), sorted by name. An app-owned type's handle is app--{app handle}--{type handle}; its fields are locked to the merchant. app_access (private: only the owning app; shared), merchant_access (hidden, read or read_write) and storefront_visible are an app type's access settings: an app sees only its own private types and no type whose merchant_access is hidden unless it owns it, and a merchant token never sees hidden types. requested_address and address_conflict name a web page address the app or theme declared that the store could not give (the type then has no web pages until the merchant picks one). search matches name and handle. storefront_url / storefront_path address the type's list page (/{address}); null when the type has no web pages. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.
Query parameters
| Name | Type | Description |
|---|---|---|
search
|
string |
Matches name and handle. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get a custom content type
Read one type with its fields.
Use the type id, its handle, or $app:{handle} for one of your app's own types. An app reads and writes the entries of its own custom content types (declared in its configuration) without read_metaobjects/write_metaobjects, and names them $app:{handle}; the types of the merchant and other apps need the scope. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.
Path parameters
| Name | Type | Description |
|---|---|---|
definitionId
required
|
string |
Type id, its handle, or |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404METAOBJECT_DEFINITION_NOT_FOUNDThe type does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Create a custom content type
Create a type with its fields.
Fires metaobject_definitions/create. Refused with METAOBJECT_DEFINITION_LIMIT when the store has as many types as its plan allows. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
name
required
|
string |
At most 255 characters. |
handle
|
string |
Lowercase letters, numbers, hyphens and underscores, starting with a letter, at most 64 characters. Generated from the name when omitted on create. |
description
|
string |
At most 1000 characters. |
status
|
string |
active (default) or draft. |
display_field_key
|
string |
Key of a single line text field used as each entry's name in lists and pickers. |
fields
required
|
array<object> |
The complete ordered field list, 1 to 40 fields. On update a field left out is removed together with its values and translations. |
has_web_pages
|
boolean |
Each active entry gets its own storefront page at /{address}/{entry handle}, and the type a list page at /{address}, in the sitemap with the store's language and country addresses. Turning it off removes the pages (no redirects). |
address
|
string |
The pages' first path segment: lowercase letters, numbers and single hyphens, at most 64 characters. Made from the handle when web pages are turned on without one. Refused when it is a system route (cart, account, …), one of the store's permalink prefixes, or another type's address in any language. Changing it redirects every entry page and the list page from the old address. |
address_translations
|
object |
The complete set of addresses in other languages, language code → address; a language left out uses address. Same rules as address. |
schema_kind
|
string |
The schema.org structured data entry pages carry: person, place, faq_page or none (default). |
social_image_field_key
|
string |
Key of a file field (type file_reference) whose image an entry page shows when shared, for entries without their own |
validate_only
|
boolean |
Check the change and report redirect_conflicts without saving it. |
revision
|
string |
The type's updated_at you edited from; a type changed since is refused with METAOBJECT_DEFINITION_CONFLICT. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400METAOBJECT_DEFINITION_NAME_REQUIREDname is empty.
-
400METAOBJECT_DEFINITION_HANDLE_INVALIDhandle has another shape.
-
409METAOBJECT_DEFINITION_HANDLE_DUPLICATEAnother type uses the handle.
-
400METAOBJECT_FIELDS_REQUIREDfields is empty.
-
400METAOBJECT_FIELDS_TOO_MANYMore than 40 fields.
-
400METAOBJECT_FIELD_KEY_INVALIDA field key has another shape; details.field_index names the field.
-
400METAOBJECT_FIELD_KEY_DUPLICATETwo fields share a key; details.field_index names the second.
-
400METAOBJECT_FIELD_TYPE_INVALIDA field type is not a metafield type.
-
400METAOBJECT_FIELD_TYPE_CHANGEDA field's type changed while the type has entries.
-
400METAOBJECT_FIELD_TRANSLATABLE_UNSUPPORTEDtranslatable on a field that is not text.
-
400METAOBJECT_FIELD_SEARCHABLE_UNSUPPORTEDsearchable on a field that is not text or a select.
-
400METAOBJECT_DISPLAY_FIELD_INVALIDdisplay_field_key is not a single line text field of the type.
-
400METAOBJECT_SOCIAL_IMAGE_FIELD_INVALIDsocial_image_field_key is not a file field (file_reference) of the type, or
fieldsremoves the field it names. -
400METAFIELD_DEFINITION_METAOBJECT_TYPE_REQUIREDA metaobject_reference field has no validation_rules.metaobject_definition_id.
-
400METAFIELD_DEFINITION_METAOBJECT_TYPE_MISSINGA metaobject_reference field points to a type that does not exist.
-
400METAFIELD_DEFINITION_METAOBJECT_TYPE_LOCKEDA reference field's target type changed while the type has entries.
-
403METAOBJECT_DEFINITION_LOCKEDThe type is managed by a theme or app; its fields cannot change.
-
409METAOBJECT_DEFINITION_CONFLICTThe type changed since
revision. -
400METAOBJECT_FIELD_KEY_RESERVEDA field key is one an entry's own facts use (id, handle, type, url, display_name, seo, updated_at).
-
400METAOBJECT_ADDRESS_REQUIREDaddress is empty.
-
400METAOBJECT_ADDRESS_INVALIDaddress (or a translation) has another shape.
-
400METAOBJECT_ADDRESS_RESERVEDaddress is a system route of the storefront.
-
409METAOBJECT_ADDRESS_PERMALINK_CLASHaddress is one of the store's permalink prefixes.
-
409METAOBJECT_ADDRESS_TYPE_CLASHAnother type uses the address in some language.
-
400METAOBJECT_ADDRESS_LOCALE_INVALIDaddress_translations names a language the store has not enabled.
-
400METAOBJECT_SCHEMA_KIND_INVALIDschema_kind is not person, place, faq_page or none.
-
403METAOBJECT_DEFINITION_LIMITThe store has as many types as its plan allows.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update a custom content type
Change a type's name, handle, description, status, display field, social image field or fields.
Omitted properties stay unchanged. fields, when sent, is the complete list. Changing the display field updates every entry's display name. Turning has_web_pages on, or changing address or address_translations, answers redirect_conflicts when the store's own URL redirects start with the new address ({items: the first 20 as {id, path, target, locale}, total}): they would send shoppers away from the new pages, so show them and let the merchant remove them. Changing the address of a type with web pages adds platform-owned redirects from the old address (entry pages and the list page), listed in URL redirects and announced with redirects/create. When fields leaves out fields that entries hold values in, the first request returns CONFIRMATION_REQUIRED with details.warnings naming each field and how many entries lose its value; repeat with confirmed and the returned confirmation_token to remove the fields with their values and translations. Fires metaobject_definitions/update with changed_fields. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.
Path parameters
| Name | Type | Description |
|---|---|---|
definitionId
required
|
string |
Type id, its handle, or |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
name
|
string |
At most 255 characters. |
handle
|
string |
Lowercase letters, numbers, hyphens and underscores, starting with a letter, at most 64 characters. Generated from the name when omitted on create. |
description
|
string |
At most 1000 characters. |
status
|
string |
active (default) or draft. |
display_field_key
|
string |
Key of a single line text field used as each entry's name in lists and pickers. |
fields
|
array<object> |
The complete ordered field list, 1 to 40 fields. On update a field left out is removed together with its values and translations. |
has_web_pages
|
boolean |
Each active entry gets its own storefront page at /{address}/{entry handle}, and the type a list page at /{address}, in the sitemap with the store's language and country addresses. Turning it off removes the pages (no redirects). |
address
|
string |
The pages' first path segment: lowercase letters, numbers and single hyphens, at most 64 characters. Made from the handle when web pages are turned on without one. Refused when it is a system route (cart, account, …), one of the store's permalink prefixes, or another type's address in any language. Changing it redirects every entry page and the list page from the old address. |
address_translations
|
object |
The complete set of addresses in other languages, language code → address; a language left out uses address. Same rules as address. |
schema_kind
|
string |
The schema.org structured data entry pages carry: person, place, faq_page or none (default). |
social_image_field_key
|
string |
Key of a file field (type file_reference) whose image an entry page shows when shared, for entries without their own |
validate_only
|
boolean |
Check the change and report redirect_conflicts without saving it. |
revision
|
string |
The type's updated_at you edited from; a type changed since is refused with METAOBJECT_DEFINITION_CONFLICT. |
confirmed
|
boolean |
Set true when repeating a request that returned CONFIRMATION_REQUIRED. |
confirmation_token
|
string |
Token returned by the first request. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404METAOBJECT_DEFINITION_NOT_FOUNDThe type does not exist in this store.
-
400METAOBJECT_DEFINITION_NAME_REQUIREDname is empty.
-
400METAOBJECT_DEFINITION_HANDLE_INVALIDhandle has another shape.
-
409METAOBJECT_DEFINITION_HANDLE_DUPLICATEAnother type uses the handle.
-
400METAOBJECT_FIELDS_REQUIREDfields is empty.
-
400METAOBJECT_FIELDS_TOO_MANYMore than 40 fields.
-
400METAOBJECT_FIELD_KEY_INVALIDA field key has another shape; details.field_index names the field.
-
400METAOBJECT_FIELD_KEY_DUPLICATETwo fields share a key; details.field_index names the second.
-
400METAOBJECT_FIELD_TYPE_INVALIDA field type is not a metafield type.
-
400METAOBJECT_FIELD_TYPE_CHANGEDA field's type changed while the type has entries.
-
400METAOBJECT_FIELD_TRANSLATABLE_UNSUPPORTEDtranslatable on a field that is not text.
-
400METAOBJECT_FIELD_SEARCHABLE_UNSUPPORTEDsearchable on a field that is not text or a select.
-
400METAOBJECT_DISPLAY_FIELD_INVALIDdisplay_field_key is not a single line text field of the type.
-
400METAOBJECT_SOCIAL_IMAGE_FIELD_INVALIDsocial_image_field_key is not a file field (file_reference) of the type, or
fieldsremoves the field it names. -
400METAFIELD_DEFINITION_METAOBJECT_TYPE_REQUIREDA metaobject_reference field has no validation_rules.metaobject_definition_id.
-
400METAFIELD_DEFINITION_METAOBJECT_TYPE_MISSINGA metaobject_reference field points to a type that does not exist.
-
400METAFIELD_DEFINITION_METAOBJECT_TYPE_LOCKEDA reference field's target type changed while the type has entries.
-
403METAOBJECT_DEFINITION_LOCKEDThe type is managed by a theme or app; its fields cannot change.
-
409METAOBJECT_DEFINITION_CONFLICTThe type changed since
revision. -
400METAOBJECT_FIELD_KEY_RESERVEDA field key is one an entry's own facts use (id, handle, type, url, display_name, seo, updated_at).
-
400METAOBJECT_ADDRESS_REQUIREDaddress is empty.
-
400METAOBJECT_ADDRESS_INVALIDaddress (or a translation) has another shape.
-
400METAOBJECT_ADDRESS_RESERVEDaddress is a system route of the storefront.
-
409METAOBJECT_ADDRESS_PERMALINK_CLASHaddress is one of the store's permalink prefixes.
-
409METAOBJECT_ADDRESS_TYPE_CLASHAnother type uses the address in some language.
-
400METAOBJECT_ADDRESS_LOCALE_INVALIDaddress_translations names a language the store has not enabled.
-
400METAOBJECT_SCHEMA_KIND_INVALIDschema_kind is not person, place, faq_page or none.
-
409CONFIRMATION_REQUIREDRemoved fields hold values in entries; details.warnings names each field and how many entries lose it. Repeat with
confirmed: trueand the token. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Delete a custom content type
Delete a type that has no entries.
Delete its entries first (Change matching entries with action delete). Refused while custom data definitions or other types' fields point to it; details.references names them. When menus link to the type's list page, or storefront theme sections or blocks pick entries of the type (their metaobject settings name it with metaobject_type), the first request returns CONFIRMATION_REQUIRED with details.warnings naming each menu and how many items are removed or become labels (a linking item with child items stays as a label so its children are kept) and each storefront place whose setting goes empty; repeat with confirmed and the returned confirmation_token. Those menu items are removed in the same change, and each changed menu fires menus/update. Fires metaobject_definitions/delete.
Path parameters
| Name | Type | Description |
|---|---|---|
definitionId
required
|
string |
Type id, its handle, or |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
confirmed
|
boolean |
Set true when repeating a request that returned CONFIRMATION_REQUIRED. |
confirmation_token
|
string |
Token returned by the first request. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404METAOBJECT_DEFINITION_NOT_FOUNDThe type does not exist in this store.
-
409METAOBJECT_DEFINITION_HAS_ENTRIESThe type still has entries.
-
409METAOBJECT_DEFINITION_REFERENCEDCustom data definitions or other types point to the type; details.references names them.
-
409CONFIRMATION_REQUIREDMenus link to the type's list page or theme settings pick its entries; details.warnings lists the menu items that are removed or become labels and the theme places that go empty. Repeat with
confirmed: trueand the token. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List entries
List one type's entries.
Cursor pagination: pass next_cursor back as cursor while has_more is true. An app reads and writes the entries of its own custom content types (declared in its configuration) without read_metaobjects/write_metaobjects, and names them $app:{handle}; the types of the merchant and other apps need the scope. total counts the matching entries: exact from counters, or with search or references_metaobject counted up to 10,000; past that total is 10,000 and total_capped is true. Each entry carries display_name (its display field value, or its handle) and storefront_url / storefront_path, its page address (null for a draft or when the type has no web pages). storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.
Query parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Type id, handle, or |
status
|
string |
active or draft.
Allowed values
activedraft |
search
|
string |
Matches the display field and the handle, at most 255 characters. |
sort_by
|
string |
updated_at (default), created_at, name (the display field) or handle.
Allowed values
updated_atcreated_atnamehandle |
sort_direction
|
string |
asc or desc; desc for dates and asc for name and handle by default.
Allowed values
ascdesc |
limit
|
integer |
Page size, at most 100 (default 25). |
cursor
|
string |
next_cursor of the previous page. |
expand
|
string |
Allowed values
references |
references_metaobject
|
uuid |
Entry id: only entries of the type one of whose metaobject reference fields names that entry. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404METAOBJECT_DEFINITION_NOT_FOUNDThe type does not exist in this store.
-
400INVALID_INPUTstatus, sort, limit or cursor is invalid; details.field names it.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get an entry
Read one entry.
With expand=references, metaobject reference fields are resolved into references. storefront_url is the entry page's canonical URL on the primary domain and storefront_path its path (/{address}/{handle}); both are null while the entry is a draft or when its type has no web pages. Use Preview an entry to show a draft. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.
Path parameters
| Name | Type | Description |
|---|---|---|
metaobjectId
required
|
uuid |
Entry id. |
Query parameters
| Name | Type | Description |
|---|---|---|
expand
|
string |
Allowed values
references |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404METAOBJECT_ENTRY_NOT_FOUNDThe entry does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Preview an entry
Get a short-lived storefront preview link for an entry.
Returns url, the entry's page address with a signed content_preview parameter that shows the entry as it is saved now, draft or active, with the theme's metaobject__{type handle} (else metaobject) template or the platform layout, and expires_at. The link works for 2 hours, and anyone who has it can open the preview in that time; share it only with people who may see the unpublished entry. A draft entry stays 404 at its address without the link. Refused with METAOBJECT_WEB_PAGES_OFF when the entry's type has no web pages.
Path parameters
| Name | Type | Description |
|---|---|---|
metaobjectId
required
|
uuid |
Entry id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404METAOBJECT_ENTRY_NOT_FOUNDThe entry does not exist in this store.
-
409METAOBJECT_WEB_PAGES_OFFThe entry's type has no web pages.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get where an entry is used
List custom data values and entries that reference an entry.
used_on has one group per owner_type (product, variant, customer, collection, category, page, blog_post, blog_category, vendor, brand, store) whose custom data references the entry, and one per entry type (owner_type metaobject, type_id, type_name) whose fields do. count is the exact number of owners, up to 10000; past that it is 10000 with count_capped true. items are the first 10 owners, each with owner_id, label and the custom data definition or type name; a variant also has product_id, its product. view_all names the list that shows every owner: resource and its query parameter param=value (products: references_metaobject, or variant_references_metaobject for variants; collections, pages, blog posts and entries: references_metaobject); groups without a list have none. Values on orders are not included.
Path parameters
| Name | Type | Description |
|---|---|---|
metaobjectId
required
|
uuid |
Entry id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404METAOBJECT_ENTRY_NOT_FOUNDThe entry does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Create an entry
Create one entry of a type.
Fires metaobjects/create. Values are validated as metafield values of the field types; references must exist in the store, and a metaobject reference must name an entry of the type the field points to. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Type id, handle, or |
handle
|
string |
Lowercase letters, numbers and hyphens, at most 255 characters, unique in the type. Generated from the display field (or the type handle) when omitted on create. A changed handle is kept as one of the entry's last 20 old handles. |
status
|
string |
draft (default) or active. Draft entries never reach the storefront or feeds. |
fields
|
object |
Field key → value, each in the form of the metafield value of the field's type (lists as JSON arrays in a string). An empty string or null removes a value; on update keys not sent are kept. The values of one entry take at most 64 KB; a list of entry references holds at most 50 entries. |
seo_title
|
string |
At most 70 characters. |
seo_description
|
string |
At most 160 characters. |
social_image_id
|
uuid |
Image shown when the entry page is shared: the id of an uploaded image in this store's Media library. A non-empty value requires |
revision
|
string |
The entry's updated_at you edited from; an entry changed since is refused with METAOBJECT_ENTRY_CONFLICT. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call. A non-empty
social_image_idrequiresread_filesin addition towrite_metaobjects. -
404METAOBJECT_ENTRY_NOT_FOUNDThe entry does not exist in this store.
-
400METAFIELD_VALUE_TOO_LONGThe value exceeds its size limit: the definition's max_value_length, or the platform value size limit for the type.
-
400METAFIELD_VALUE_STRING_TOO_LONGA string or multi_line_text value, or the readable text of a rich_text value, exceeds the definition's max_value_length or its platform limit.
-
400METAFIELD_VALUE_TEXT_CONTROL_CHARSA multi_line_text value contains a control character other than a line break or tab.
-
400METAFIELD_VALUE_COLOR_INVALIDA color value is not # followed by six hex digits.
-
400METAFIELD_LIST_COLOR_INVALIDAn item of a list.color value is not # followed by six hex digits; the message names the item.
-
400METAFIELD_VALUE_CONTENT_REFERENCE_INVALIDA page_reference, blog_post_reference or collection_reference value, or an item of one of their lists, is not a UUID.
-
400METAFIELD_LIST_CONTENT_REFERENCES_INVALIDA list.page_reference, list.blog_post_reference or list.collection_reference value is not a JSON array of strings.
-
400METAFIELD_VALUE_TOO_SHORTA string value is shorter than the definition's min_length rule.
-
400METAFIELD_VALUE_PATTERN_MISMATCHA string value does not match the definition's pattern rule.
-
400METAFIELD_LIST_ITEM_TOO_SHORTAn item of a list.string value is shorter than the definition's min_length rule; the message names the item.
-
400METAFIELD_LIST_ITEM_PATTERN_MISMATCHAn item of a list.string value does not match the definition's pattern rule; the message names the item.
-
400METAFIELD_VALUE_INTEGER_INVALIDAn integer value is not a whole number in the 64-bit range.
-
400METAFIELD_VALUE_INTEGER_TOO_LONGAn integer value has more digits than the definition or the platform integer limit allows.
-
400METAFIELD_VALUE_DECIMAL_INVALIDA decimal value is not a finite decimal number.
-
400METAFIELD_VALUE_DECIMAL_TOO_LONGA decimal value, written out in full, is longer than the definition or the platform decimal limit allows.
-
400METAFIELD_VALUE_BELOW_MINAn integer or decimal value is below the definition's min rule.
-
400METAFIELD_VALUE_ABOVE_MAXAn integer or decimal value is above the definition's max rule.
-
400METAFIELD_VALUE_BOOLEAN_INVALIDA boolean value is not true or false.
-
400METAFIELD_VALUE_DATE_INVALIDA date value is not a calendar date in YYYY-MM-DD form.
-
400METAFIELD_VALUE_DATETIME_INVALIDA datetime value is not YYYY-MM-DDTHH:mm, YYYY-MM-DDTHH:mm:ss or an RFC 3339 timestamp.
-
400METAFIELD_VALUE_JSON_INVALIDA json value is not valid JSON.
-
400METAFIELD_VALUE_JSON_UNSAFE_LINKA json value contains a link whose scheme is not http, https, mailto or tel.
-
400METAFIELD_VALUE_URL_INVALIDA url value, or an item of a list.url value, is not an absolute URL with a host.
-
400METAFIELD_VALUE_URL_SCHEMEA url value, or an item of a list.url value, does not use http or https.
-
400METAFIELD_VALUE_URL_TOO_LONGA url value, or an item of a list.url value, exceeds the definition's max_value_length or the platform URL limit.
-
400METAFIELD_VALUE_NOT_IN_CHOICESA single_select value is not one of the definition's choice keys.
-
400METAFIELD_LIST_CHOICE_INVALIDAn item of a list.single_select value is not one of the definition's choice keys; the message names the item.
-
400METAFIELD_LIST_STRINGS_INVALIDA list.string, list.single_select or list.color value is not a JSON array of strings.
-
400METAFIELD_LIST_URLS_INVALIDA list.url value is not a JSON array of strings.
-
400METAFIELD_LIST_FILES_INVALIDA list.file_reference value is not a JSON array of strings.
-
400METAFIELD_LIST_IDS_INVALIDA list.product_reference or list.variant_reference value is not a JSON array of integers.
-
400METAFIELD_LIST_EMPTYA list value other than list.string is an empty array. Send null or an empty string to remove the value instead.
-
400METAFIELD_LIST_TOO_MANYA list value has more items than the definition's max_list_items or the platform list limit for the type.
-
400METAFIELD_LIST_ITEM_EMPTYAn item of a list.string value is empty or only whitespace; the message names the item.
-
400METAFIELD_LIST_ITEM_TOO_LONGAn item of a list.string value exceeds the definition's max_value_length or the platform string limit; the message names the item.
-
400METAFIELD_VALUE_FILE_UUID_INVALIDA file_reference value, or an item of a list.file_reference value, is not a file UUID.
-
400METAFIELD_VALUE_ID_INVALIDA product_reference or variant_reference value is not an integer ID.
-
400METAFIELD_VALUE_ID_POSITIVEA product_reference or variant_reference value is not a positive integer.
-
400METAFIELD_VALUE_ID_TOO_LONGA product_reference or variant_reference value exceeds the platform reference ID limit.
-
400METAFIELD_LIST_ITEMS_POSITIVEAn item of a list.product_reference or list.variant_reference value is not a positive integer.
-
400METAFIELD_REFERENCE_PRODUCT_MISSINGA product reference names a product that does not exist in this store.
-
400METAFIELD_REFERENCE_VARIANT_MISSINGA variant reference names a variant that does not exist in this store.
-
400METAFIELD_REFERENCE_PRODUCTS_MISSINGA list.product_reference value names a product that does not exist in this store.
-
400METAFIELD_REFERENCE_VARIANTS_MISSINGA list.variant_reference value names a variant that does not exist in this store.
-
400METAFIELD_REFERENCE_PAGE_MISSINGA page reference names a page that does not exist in this store.
-
400METAFIELD_REFERENCE_PAGES_MISSINGA list.page_reference value names a page that does not exist in this store.
-
400METAFIELD_REFERENCE_BLOG_POST_MISSINGA blog post reference names a blog post that does not exist in this store.
-
400METAFIELD_REFERENCE_BLOG_POSTS_MISSINGA list.blog_post_reference value names a blog post that does not exist in this store.
-
400METAFIELD_REFERENCE_COLLECTION_MISSINGA collection reference names a collection that does not exist in this store.
-
400METAFIELD_REFERENCE_COLLECTIONS_MISSINGA list.collection_reference value names a collection that does not exist in this store.
-
400METAFIELD_VALUE_METAOBJECT_REFERENCE_INVALIDA metaobject_reference value, or an item of its list, is not a UUID; details.item_index names the item.
-
400METAFIELD_LIST_METAOBJECT_REFERENCES_INVALIDA list.metaobject_reference value is not a JSON array of strings.
-
400METAFIELD_REFERENCE_METAOBJECT_MISSINGA metaobject reference names a custom content entry that does not exist in this store.
-
400METAFIELD_REFERENCE_METAOBJECTS_MISSINGA list.metaobject_reference value names an entry that does not exist in this store.
-
400METAFIELD_REFERENCE_METAOBJECT_WRONG_TYPEA metaobject reference names an entry of another custom content type than the definition is pinned to.
-
404NOT_FOUNDA file reference names a file that does not exist in this store.
-
400INVALID_INPUTA file reference names a file that is not an uploaded file.
-
404METAOBJECT_DEFINITION_NOT_FOUNDThe type does not exist in this store.
-
403METAOBJECT_ENTRY_LIMITThe store has as many entries as its plan allows.
-
400METAOBJECT_ENTRY_FIELD_UNKNOWNfields names a key the type does not have; details.field names it.
-
400METAOBJECT_ENTRY_FIELD_REQUIREDA required field has no value; details.field_key names it.
-
400METAOBJECT_ENTRY_VALUES_TOO_LARGEThe values take more than 64 KB.
-
400METAOBJECT_ENTRY_HANDLE_INVALIDhandle has another shape.
-
409METAOBJECT_ENTRY_HANDLE_DUPLICATEAnother entry of the type uses the handle.
-
400METAOBJECT_ENTRY_STATUS_INVALIDstatus is not active or draft.
-
409METAOBJECT_ENTRY_CONFLICTThe entry changed since
revision. -
400FILE_REF_INVALID_IDsocial_image_idis not a valid file id. -
404FILE_REF_NOT_FOUNDsocial_image_iddoes not reference a file in this store. -
400FILE_REF_NOT_IMAGEsocial_image_idis not an image. -
400FILE_REF_MEDIA_LIBRARY_ONLYsocial_image_idis a site asset; choose an image from the Media library. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update an entry
Change an entry's fields, handle, status, SEO or social image.
Omitted properties stay unchanged; fields merges. Fires metaobjects/update with changed_fields. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.
Path parameters
| Name | Type | Description |
|---|---|---|
metaobjectId
required
|
uuid |
Entry id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
handle
|
string |
Lowercase letters, numbers and hyphens, at most 255 characters, unique in the type. Generated from the display field (or the type handle) when omitted on create. A changed handle is kept as one of the entry's last 20 old handles. |
status
|
string |
draft (default) or active. Draft entries never reach the storefront or feeds. |
fields
|
object |
Field key → value, each in the form of the metafield value of the field's type (lists as JSON arrays in a string). An empty string or null removes a value; on update keys not sent are kept. The values of one entry take at most 64 KB; a list of entry references holds at most 50 entries. |
seo_title
|
string |
At most 70 characters. |
seo_description
|
string |
At most 160 characters. |
social_image_id
|
uuid |
Image shown when the entry page is shared: the id of an uploaded image in this store's Media library. A non-empty value requires |
revision
|
string |
The entry's updated_at you edited from; an entry changed since is refused with METAOBJECT_ENTRY_CONFLICT. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call. A non-empty
social_image_idrequiresread_filesin addition towrite_metaobjects. -
404METAOBJECT_ENTRY_NOT_FOUNDThe entry does not exist in this store.
-
400METAFIELD_VALUE_TOO_LONGThe value exceeds its size limit: the definition's max_value_length, or the platform value size limit for the type.
-
400METAFIELD_VALUE_STRING_TOO_LONGA string or multi_line_text value, or the readable text of a rich_text value, exceeds the definition's max_value_length or its platform limit.
-
400METAFIELD_VALUE_TEXT_CONTROL_CHARSA multi_line_text value contains a control character other than a line break or tab.
-
400METAFIELD_VALUE_COLOR_INVALIDA color value is not # followed by six hex digits.
-
400METAFIELD_LIST_COLOR_INVALIDAn item of a list.color value is not # followed by six hex digits; the message names the item.
-
400METAFIELD_VALUE_CONTENT_REFERENCE_INVALIDA page_reference, blog_post_reference or collection_reference value, or an item of one of their lists, is not a UUID.
-
400METAFIELD_LIST_CONTENT_REFERENCES_INVALIDA list.page_reference, list.blog_post_reference or list.collection_reference value is not a JSON array of strings.
-
400METAFIELD_VALUE_TOO_SHORTA string value is shorter than the definition's min_length rule.
-
400METAFIELD_VALUE_PATTERN_MISMATCHA string value does not match the definition's pattern rule.
-
400METAFIELD_LIST_ITEM_TOO_SHORTAn item of a list.string value is shorter than the definition's min_length rule; the message names the item.
-
400METAFIELD_LIST_ITEM_PATTERN_MISMATCHAn item of a list.string value does not match the definition's pattern rule; the message names the item.
-
400METAFIELD_VALUE_INTEGER_INVALIDAn integer value is not a whole number in the 64-bit range.
-
400METAFIELD_VALUE_INTEGER_TOO_LONGAn integer value has more digits than the definition or the platform integer limit allows.
-
400METAFIELD_VALUE_DECIMAL_INVALIDA decimal value is not a finite decimal number.
-
400METAFIELD_VALUE_DECIMAL_TOO_LONGA decimal value, written out in full, is longer than the definition or the platform decimal limit allows.
-
400METAFIELD_VALUE_BELOW_MINAn integer or decimal value is below the definition's min rule.
-
400METAFIELD_VALUE_ABOVE_MAXAn integer or decimal value is above the definition's max rule.
-
400METAFIELD_VALUE_BOOLEAN_INVALIDA boolean value is not true or false.
-
400METAFIELD_VALUE_DATE_INVALIDA date value is not a calendar date in YYYY-MM-DD form.
-
400METAFIELD_VALUE_DATETIME_INVALIDA datetime value is not YYYY-MM-DDTHH:mm, YYYY-MM-DDTHH:mm:ss or an RFC 3339 timestamp.
-
400METAFIELD_VALUE_JSON_INVALIDA json value is not valid JSON.
-
400METAFIELD_VALUE_JSON_UNSAFE_LINKA json value contains a link whose scheme is not http, https, mailto or tel.
-
400METAFIELD_VALUE_URL_INVALIDA url value, or an item of a list.url value, is not an absolute URL with a host.
-
400METAFIELD_VALUE_URL_SCHEMEA url value, or an item of a list.url value, does not use http or https.
-
400METAFIELD_VALUE_URL_TOO_LONGA url value, or an item of a list.url value, exceeds the definition's max_value_length or the platform URL limit.
-
400METAFIELD_VALUE_NOT_IN_CHOICESA single_select value is not one of the definition's choice keys.
-
400METAFIELD_LIST_CHOICE_INVALIDAn item of a list.single_select value is not one of the definition's choice keys; the message names the item.
-
400METAFIELD_LIST_STRINGS_INVALIDA list.string, list.single_select or list.color value is not a JSON array of strings.
-
400METAFIELD_LIST_URLS_INVALIDA list.url value is not a JSON array of strings.
-
400METAFIELD_LIST_FILES_INVALIDA list.file_reference value is not a JSON array of strings.
-
400METAFIELD_LIST_IDS_INVALIDA list.product_reference or list.variant_reference value is not a JSON array of integers.
-
400METAFIELD_LIST_EMPTYA list value other than list.string is an empty array. Send null or an empty string to remove the value instead.
-
400METAFIELD_LIST_TOO_MANYA list value has more items than the definition's max_list_items or the platform list limit for the type.
-
400METAFIELD_LIST_ITEM_EMPTYAn item of a list.string value is empty or only whitespace; the message names the item.
-
400METAFIELD_LIST_ITEM_TOO_LONGAn item of a list.string value exceeds the definition's max_value_length or the platform string limit; the message names the item.
-
400METAFIELD_VALUE_FILE_UUID_INVALIDA file_reference value, or an item of a list.file_reference value, is not a file UUID.
-
400METAFIELD_VALUE_ID_INVALIDA product_reference or variant_reference value is not an integer ID.
-
400METAFIELD_VALUE_ID_POSITIVEA product_reference or variant_reference value is not a positive integer.
-
400METAFIELD_VALUE_ID_TOO_LONGA product_reference or variant_reference value exceeds the platform reference ID limit.
-
400METAFIELD_LIST_ITEMS_POSITIVEAn item of a list.product_reference or list.variant_reference value is not a positive integer.
-
400METAFIELD_REFERENCE_PRODUCT_MISSINGA product reference names a product that does not exist in this store.
-
400METAFIELD_REFERENCE_VARIANT_MISSINGA variant reference names a variant that does not exist in this store.
-
400METAFIELD_REFERENCE_PRODUCTS_MISSINGA list.product_reference value names a product that does not exist in this store.
-
400METAFIELD_REFERENCE_VARIANTS_MISSINGA list.variant_reference value names a variant that does not exist in this store.
-
400METAFIELD_REFERENCE_PAGE_MISSINGA page reference names a page that does not exist in this store.
-
400METAFIELD_REFERENCE_PAGES_MISSINGA list.page_reference value names a page that does not exist in this store.
-
400METAFIELD_REFERENCE_BLOG_POST_MISSINGA blog post reference names a blog post that does not exist in this store.
-
400METAFIELD_REFERENCE_BLOG_POSTS_MISSINGA list.blog_post_reference value names a blog post that does not exist in this store.
-
400METAFIELD_REFERENCE_COLLECTION_MISSINGA collection reference names a collection that does not exist in this store.
-
400METAFIELD_REFERENCE_COLLECTIONS_MISSINGA list.collection_reference value names a collection that does not exist in this store.
-
400METAFIELD_VALUE_METAOBJECT_REFERENCE_INVALIDA metaobject_reference value, or an item of its list, is not a UUID; details.item_index names the item.
-
400METAFIELD_LIST_METAOBJECT_REFERENCES_INVALIDA list.metaobject_reference value is not a JSON array of strings.
-
400METAFIELD_REFERENCE_METAOBJECT_MISSINGA metaobject reference names a custom content entry that does not exist in this store.
-
400METAFIELD_REFERENCE_METAOBJECTS_MISSINGA list.metaobject_reference value names an entry that does not exist in this store.
-
400METAFIELD_REFERENCE_METAOBJECT_WRONG_TYPEA metaobject reference names an entry of another custom content type than the definition is pinned to.
-
404NOT_FOUNDA file reference names a file that does not exist in this store.
-
400INVALID_INPUTA file reference names a file that is not an uploaded file.
-
404METAOBJECT_DEFINITION_NOT_FOUNDThe type does not exist in this store.
-
403METAOBJECT_ENTRY_LIMITThe store has as many entries as its plan allows.
-
400METAOBJECT_ENTRY_FIELD_UNKNOWNfields names a key the type does not have; details.field names it.
-
400METAOBJECT_ENTRY_FIELD_REQUIREDA required field has no value; details.field_key names it.
-
400METAOBJECT_ENTRY_VALUES_TOO_LARGEThe values take more than 64 KB.
-
400METAOBJECT_ENTRY_HANDLE_INVALIDhandle has another shape.
-
409METAOBJECT_ENTRY_HANDLE_DUPLICATEAnother entry of the type uses the handle.
-
400METAOBJECT_ENTRY_STATUS_INVALIDstatus is not active or draft.
-
409METAOBJECT_ENTRY_CONFLICTThe entry changed since
revision. -
400FILE_REF_INVALID_IDsocial_image_idis not a valid file id. -
404FILE_REF_NOT_FOUNDsocial_image_iddoes not reference a file in this store. -
400FILE_REF_NOT_IMAGEsocial_image_idis not an image. -
400FILE_REF_MEDIA_LIBRARY_ONLYsocial_image_idis a site asset; choose an image from the Media library. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Bulk upsert entries
Create or update up to 100 entries of one type.
Rows are applied one by one in one request: results reports each row by index with the saved entry and created, or its error (code, message, details). A refused row does not stop the others; its error is one of the errors of Create an entry and Update an entry (for example METAOBJECT_ENTRY_FIELD_REQUIRED, METAOBJECT_ENTRY_HANDLE_INVALID or METAOBJECT_ENTRY_LIMIT), reported in results rather than as the HTTP status, and saved and failed count the rows. The errors listed here refuse the whole request. Fires metaobjects/create or metaobjects/update per saved row. storefront_url is the canonical absolute URL on the store's primary domain. storefront_path is the domain-independent baseline route; join it to the storefront address you are targeting. Hosted storefront responses apply translated slugs and locale/country prefixes.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
type
required
|
string |
Type id, handle, or |
entries
required
|
array<object> |
At most 100 entries of the type, matched by handle: an entry with a handle the type has is updated, the others created. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call. A row sets a non-empty
social_image_idand the token lacksread_files. -
400STORE_API_INVALID_REQUEST_BODYThe body is not valid JSON or not a JSON object.
-
404METAOBJECT_DEFINITION_NOT_FOUNDThe type does not exist in this store.
-
400METAOBJECT_BULK_TOO_MANYMore than 100 entries.
-
400METAOBJECT_BULK_EMPTYentries is empty.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Delete an entry
Delete one entry.
When custom data values or other entries reference it, menus link to it, or storefront theme settings pick it, the first request returns CONFIRMATION_REQUIRED with details.warnings counting the references, naming each menu with how many items are removed or become labels (a linking item with child items stays as a label so its children are kept) and each storefront place whose setting loses it (the theme then shows nothing there); repeat with confirmed and the returned confirmation_token. The references and menu links are removed in the same change; each changed menu fires menus/update. Fires metaobjects/delete.
Path parameters
| Name | Type | Description |
|---|---|---|
metaobjectId
required
|
uuid |
Entry id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
confirmed
|
boolean |
Set true when repeating a request that returned CONFIRMATION_REQUIRED. |
confirmation_token
|
string |
Token returned by the first request. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404METAOBJECT_ENTRY_NOT_FOUNDThe entry does not exist in this store.
-
409CONFIRMATION_REQUIREDReferences, menu links or theme settings are affected; details.warnings lists them. Repeat with
confirmed: trueand the token. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get a theme's sample entries
Read the sample entries of the custom content types a theme declares.
A theme's config/metaobjects.json can carry sample entries for the types it declares. They show in the theme editor preview while a type has no entries, and are never written to the store until added with Add a theme's sample entries. types lists each type handle with its sample_entries ({handle, fields}).
Path parameters
| Name | Type | Description |
|---|---|---|
themeId
required
|
uuid |
A theme of the store. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404METAOBJECT_THEME_NOT_FOUNDThe theme does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Add a theme's sample entries
Add the sample entries of a theme's custom content types to the store.
Writes every sample entry of the types the theme declares as an active entry, in one change; a sample whose handle its type already has is skipped (skipped names it as type/handle). Counts toward the plan's entry allowance. Fires metaobjects/create for each added entry.
Path parameters
| Name | Type | Description |
|---|---|---|
themeId
required
|
uuid |
A theme of the store. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404METAOBJECT_THEME_NOT_FOUNDThe theme does not exist in this store.
-
409METAOBJECT_SAMPLE_ENTRIES_NONEThe theme declares no sample entries.
-
403METAOBJECT_ENTRY_LIMITThe entries would exceed the plan's entry allowance.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Change matching entries
Queue a change to every entry that matches a filter.
Selects every entry matching filter when the request is made (at most 100000) and applies action to them in the background, in steps of 100 entries. Actions: update_status publishes or unpublishes them; delete deletes them, removing references to them from custom data values and other entries, and the menu items that link to them (an item with child items becomes a label); theme settings that pick them show nothing. Returns HTTP 202 with the operation; poll Get entry bulk operation until its status is no longer queued. When the delete action removes references or menu links, or storefront theme settings pick the entries, the first request returns CONFIRMATION_REQUIRED with details.warnings counting the references, naming each menu with how many items are removed or become labels, and each storefront place whose setting loses them. The token covers exactly the entries selected at that moment: if the selection changes before you repeat, the request asks again. Entries created or changed to match after the request are not included. A store runs one entry bulk operation at a time. Reusing operation_id with the same action, filter and params returns the existing operation; a different request returns 409.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
operation_id
required
|
uuid |
A new UUID for this operation. Reuse it only to repeat the same request after an interrupted one. |
action
required
|
string |
One of
Allowed values
update_statusdelete |
filter
required
|
object |
The entries to change, as the list filters them: |
params
|
object |
What the action sets. |
confirmed
|
boolean |
Set true when repeating a request that returned |
confirmation_token
|
string |
Token returned by the first request. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400STORE_API_INVALID_REQUEST_BODYThe body is not valid JSON or not a JSON object.
-
400CONTENT_BULK_OPERATION_INVALIDoperation_id is not a valid nonzero UUID, or action is not one this list supports.
-
400INVALID_INPUTfilter or params has a field the action does not take.
-
400CONTENT_BULK_OPERATION_NO_MATCHNo entry matches the filter.
-
400CONTENT_BULK_OPERATION_TOO_MANYMore than 100000 entries match the filter.
-
409CONTENT_BULK_OPERATION_ACTIVEAnother entry bulk operation is still running in this store.
-
409CONTENT_BULK_OPERATION_CONFLICTThis operation_id was already used with a different action, filter or params.
-
409CONFIRMATION_REQUIREDThe action needs confirmation; the details list what it affects. Repeat the request with
confirmed: trueand the returned confirmation token. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get entry bulk operation
Read a bulk operation's progress and results.
Use the operation UUID returned when queueing it, or current for the store's running operation (or, when none runs, its newest finished one not yet acknowledged). status is queued (running), completed, cancelled or failed. processed rises from 0 to total as the operation works through the entries it selected; succeeded and failed split it (entries the action leaves as they were count as succeeded). failures lists each entry the action could not change with its code and reason (NOT_FOUND when it was already gone); the first 500 are kept, failed counts them all. summary is the operation's state in the caller's language. A failed operation keeps what it had already done; error says why it stopped. Operations remain available for 30 days after they finish. current returns operation: null when there is nothing to show.
Path parameters
| Name | Type | Description |
|---|---|---|
operationId
required
|
uuid |
Operation UUID, or |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404CONTENT_BULK_OPERATION_NOT_FOUNDThe operation does not exist in this store, has expired, or is still running when acknowledging.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Cancel entry bulk operation
Stop a running bulk operation.
Stops the operation; the step in progress is rolled back. Entries already changed stay changed; the others are left as they were. Returns the operation with status cancelled.
Path parameters
| Name | Type | Description |
|---|---|---|
operationId
required
|
uuid |
Operation UUID. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404CONTENT_BULK_OPERATION_NOT_FOUNDThe operation does not exist in this store, has expired, or is still running when acknowledging.
-
409CONTENT_BULK_OPERATION_NOT_RUNNINGThe operation has already finished.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Acknowledge entry bulk operation
Mark a finished bulk operation as seen.
After presenting a finished result, acknowledge its UUID so current no longer returns it. It stays readable by UUID for 30 days. Repeating it is safe. A running operation cannot be acknowledged.
Path parameters
| Name | Type | Description |
|---|---|---|
operationId
required
|
uuid |
Operation UUID. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
404CONTENT_BULK_OPERATION_NOT_FOUNDThe operation does not exist in this store, has expired, or is still running when acknowledging.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Webhook events#
Subscribe to custom content events to mirror types and entries as they are created, changed and deleted.
Custom content type created
Fired when a custom content type is created. The payload carries the type with its fields.
Payload fields
| Field | Type | Description |
|---|---|---|
metaobject_definition |
object |
Always present |
metaobject_definition.id |
string |
Always present |
metaobject_definition.handle |
string |
Always present |
metaobject_definition.name |
string |
Always present |
metaobject_definition.description |
string | null |
Always present
The type's description, or null when it has none. Always present. |
metaobject_definition.owner |
string |
Always present
Who manages the type: merchant, theme or app. |
metaobject_definition.owner_ref |
string | null |
Always present |
metaobject_definition.owner_name |
string | null |
Always present |
metaobject_definition.app_access |
string |
Always present |
metaobject_definition.merchant_access |
string |
Always present |
metaobject_definition.storefront_visible |
boolean |
Always present |
metaobject_definition.requested_address |
string | null |
Always present |
metaobject_definition.address_conflict |
string | null |
Always present |
metaobject_definition.status |
string |
Always present |
metaobject_definition.display_field_key |
string | null |
Always present
The key of the single line text field used as each entry's name in lists and pickers, or null when the type has none. Always present. |
metaobject_definition.has_web_pages |
boolean |
Always present
Whether each active entry has its own storefront page at /{address}/{entry handle}, and the type a list page at /{address}. |
metaobject_definition.address |
string | null |
Always present
The first path segment of the type's pages, or null when web pages were never turned on. Always present. |
metaobject_definition.address_translations |
object |
Always present
The address in other languages, keyed by language code; a language that is not listed uses address. Always present, empty when there are none. |
metaobject_definition.schema_kind |
string |
Always present
The schema.org kind entry pages describe in their structured data: person, place, faq_page or none. |
metaobject_definition.social_image_field_key |
string | null |
Always present
The key of the file field whose image an entry page shows when shared, used when the entry has no social_image_id; null when the type has none. Always present. |
metaobject_definition.fields |
array |
Always present |
metaobject_definition.fields[*].key |
string |
Always present |
metaobject_definition.fields[*].name |
string |
Always present |
metaobject_definition.fields[*].description |
string | null |
Always present |
metaobject_definition.fields[*].type |
string |
Always present |
metaobject_definition.fields[*].required |
boolean |
Always present |
metaobject_definition.fields[*].validation_rules |
string | null |
Always present |
metaobject_definition.fields[*].translatable |
boolean |
Always present |
metaobject_definition.fields[*].searchable |
boolean |
Always present |
metaobject_definition.entry_count |
integer |
Always present |
metaobject_definition.created_at |
string |
Always present |
metaobject_definition.updated_at |
string |
Always present |
Custom content type updated
Fired when a custom content type's name, handle, description, status, display field, fields, web pages (has_web_pages), address, structured data (schema_kind) or social image field (social_image_field_key) change. changed_fields names what changed.
Payload fields
| Field | Type | Description |
|---|---|---|
metaobject_definition |
object |
Always present |
metaobject_definition.id |
string |
Always present |
metaobject_definition.handle |
string |
Always present |
metaobject_definition.name |
string |
Always present |
metaobject_definition.description |
string | null |
Always present
The type's description, or null when it has none. Always present. |
metaobject_definition.owner |
string |
Always present
Who manages the type: merchant, theme or app. |
metaobject_definition.owner_ref |
string | null |
Always present |
metaobject_definition.owner_name |
string | null |
Always present |
metaobject_definition.app_access |
string |
Always present |
metaobject_definition.merchant_access |
string |
Always present |
metaobject_definition.storefront_visible |
boolean |
Always present |
metaobject_definition.requested_address |
string | null |
Always present |
metaobject_definition.address_conflict |
string | null |
Always present |
metaobject_definition.status |
string |
Always present |
metaobject_definition.display_field_key |
string | null |
Always present
The key of the single line text field used as each entry's name in lists and pickers, or null when the type has none. Always present. |
metaobject_definition.has_web_pages |
boolean |
Always present
Whether each active entry has its own storefront page at /{address}/{entry handle}, and the type a list page at /{address}. |
metaobject_definition.address |
string | null |
Always present
The first path segment of the type's pages, or null when web pages were never turned on. Always present. |
metaobject_definition.address_translations |
object |
Always present
The address in other languages, keyed by language code; a language that is not listed uses address. Always present, empty when there are none. |
metaobject_definition.schema_kind |
string |
Always present
The schema.org kind entry pages describe in their structured data: person, place, faq_page or none. |
metaobject_definition.social_image_field_key |
string | null |
Always present
The key of the file field whose image an entry page shows when shared, used when the entry has no social_image_id; null when the type has none. Always present. |
metaobject_definition.fields |
array |
Always present |
metaobject_definition.fields[*].key |
string |
Always present |
metaobject_definition.fields[*].name |
string |
Always present |
metaobject_definition.fields[*].description |
string | null |
Always present |
metaobject_definition.fields[*].type |
string |
Always present |
metaobject_definition.fields[*].required |
boolean |
Always present |
metaobject_definition.fields[*].validation_rules |
string | null |
Always present |
metaobject_definition.fields[*].translatable |
boolean |
Always present |
metaobject_definition.fields[*].searchable |
boolean |
Always present |
metaobject_definition.entry_count |
integer |
Always present |
metaobject_definition.created_at |
string |
Always present |
metaobject_definition.updated_at |
string |
Always present |
changed_fields |
array |
Always present
What this update changed: any of name, handle, description, status, display_field_key, fields, has_web_pages, address, schema_kind and social_image_field_key. Always present and never empty. |
Custom content type deleted
Fired when a custom content type is deleted. A type can only be deleted once it has no entries.
Payload fields
| Field | Type | Description |
|---|---|---|
metaobject_definition |
object |
Always present |
metaobject_definition.id |
string |
Always present |
metaobject_definition.handle |
string |
Always present |
metaobject_definition.name |
string |
Always present |
metaobject_definition.description |
string | null |
Always present
The type's description, or null when it has none. Always present. |
metaobject_definition.owner |
string |
Always present
Who manages the type: merchant, theme or app. |
metaobject_definition.owner_ref |
string | null |
Always present |
metaobject_definition.owner_name |
string | null |
Always present |
metaobject_definition.app_access |
string |
Always present |
metaobject_definition.merchant_access |
string |
Always present |
metaobject_definition.storefront_visible |
boolean |
Always present |
metaobject_definition.requested_address |
string | null |
Always present |
metaobject_definition.address_conflict |
string | null |
Always present |
metaobject_definition.status |
string |
Always present |
metaobject_definition.display_field_key |
string | null |
Always present
The key of the single line text field used as each entry's name in lists and pickers, or null when the type has none. Always present. |
metaobject_definition.has_web_pages |
boolean |
Always present
Whether each active entry has its own storefront page at /{address}/{entry handle}, and the type a list page at /{address}. |
metaobject_definition.address |
string | null |
Always present
The first path segment of the type's pages, or null when web pages were never turned on. Always present. |
metaobject_definition.address_translations |
object |
Always present
The address in other languages, keyed by language code; a language that is not listed uses address. Always present, empty when there are none. |
metaobject_definition.schema_kind |
string |
Always present
The schema.org kind entry pages describe in their structured data: person, place, faq_page or none. |
metaobject_definition.social_image_field_key |
string | null |
Always present
The key of the file field whose image an entry page shows when shared, used when the entry has no social_image_id; null when the type has none. Always present. |
metaobject_definition.fields |
array |
Always present |
metaobject_definition.fields[*].key |
string |
Always present |
metaobject_definition.fields[*].name |
string |
Always present |
metaobject_definition.fields[*].description |
string | null |
Always present |
metaobject_definition.fields[*].type |
string |
Always present |
metaobject_definition.fields[*].required |
boolean |
Always present |
metaobject_definition.fields[*].validation_rules |
string | null |
Always present |
metaobject_definition.fields[*].translatable |
boolean |
Always present |
metaobject_definition.fields[*].searchable |
boolean |
Always present |
metaobject_definition.entry_count |
integer |
Always present |
metaobject_definition.created_at |
string |
Always present |
metaobject_definition.updated_at |
string |
Always present |
Custom content entry created
Fired when a custom content entry is created, from Store Admin, the Store API, MCP or a CSV import.
Payload fields
| Field | Type | Description |
|---|---|---|
metaobject |
object |
Always present |
metaobject.id |
string |
Always present |
metaobject.definition_id |
string |
Always present |
metaobject.type |
string |
Always present |
metaobject.handle |
string |
Always present |
metaobject.status |
string |
Always present |
metaobject.display_name |
string |
Always present
The entry's display field value, or its handle when the type has no display field or the value is empty. |
metaobject.fields |
object |
Always present
Each field key that has a value, mapped to that value as the metafield value of the same type is written: lists are JSON arrays in a string, references are IDs. |
metaobject.seo |
object |
Always present |
metaobject.seo.title |
string | null |
Always present
Null when not set. Always present. |
metaobject.seo.description |
string | null |
Always present
Null when not set. Always present. |
metaobject.social_image_id |
string | null |
Always present
The ID of the uploaded image shown when the entry page is shared, or null when the entry has none (the type's social_image_field_key, then the store's share image, then its logo is used). Always present. |
metaobject.created_at |
string |
Always present |
metaobject.updated_at |
string |
Always present |
Custom content entry updated
Fired when a custom content entry's fields, handle, status, SEO or social image (social_image_id) are changed by a write, or when deleting its social image from Media clears social_image_id. changed_fields names what changed. A reference removed from its fields because the referenced item was deleted does not fire it.
Payload fields
| Field | Type | Description |
|---|---|---|
metaobject |
object |
Always present |
metaobject.id |
string |
Always present |
metaobject.definition_id |
string |
Always present |
metaobject.type |
string |
Always present |
metaobject.handle |
string |
Always present |
metaobject.status |
string |
Always present |
metaobject.display_name |
string |
Always present
The entry's display field value, or its handle when the type has no display field or the value is empty. |
metaobject.fields |
object |
Always present
Each field key that has a value, mapped to that value as the metafield value of the same type is written: lists are JSON arrays in a string, references are IDs. |
metaobject.seo |
object |
Always present |
metaobject.seo.title |
string | null |
Always present
Null when not set. Always present. |
metaobject.seo.description |
string | null |
Always present
Null when not set. Always present. |
metaobject.social_image_id |
string | null |
Always present
The ID of the uploaded image shown when the entry page is shared, or null when the entry has none (the type's social_image_field_key, then the store's share image, then its logo is used). Always present. |
metaobject.created_at |
string |
Always present |
metaobject.updated_at |
string |
Always present |
changed_fields |
array |
Always present
What this update changed: any of handle, status, seo, social_image_id and the keys of fields whose value changed. Always present and never empty. Deleting the share image from Media clears social_image_id and sends this event. |
Custom content entry deleted
Fired when a custom content entry is deleted. References to it are removed from custom data values and other entries in the same change.
Payload fields
| Field | Type | Description |
|---|---|---|
metaobject |
object |
Always present |
metaobject.id |
string |
Always present |
metaobject.definition_id |
string |
Always present |
metaobject.type |
string |
Always present |
metaobject.handle |
string |
Always present |
metaobject.status |
string |
Always present |
metaobject.display_name |
string |
Always present
The entry's display field value, or its handle when the type has no display field or the value is empty. |
metaobject.fields |
object |
Always present
Each field key that has a value, mapped to that value as the metafield value of the same type is written: lists are JSON arrays in a string, references are IDs. |
metaobject.seo |
object |
Always present |
metaobject.seo.title |
string | null |
Always present
Null when not set. Always present. |
metaobject.seo.description |
string | null |
Always present
Null when not set. Always present. |
metaobject.social_image_id |
string | null |
Always present
The ID of the uploaded image shown when the entry page is shared, or null when the entry has none (the type's social_image_field_key, then the store's share image, then its logo is used). Always present. |
metaobject.created_at |
string |
Always present |
metaobject.updated_at |
string |
Always present |