Custom content

Define your own content types and keep their entries, to link from custom data anywhere.

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

GET read_metaobjects

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

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

List custom content types

GET read_metaobjects

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

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get a custom content type

GET read_metaobjects

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 $app:{handle} for one of the calling app's own types.

Example: designer

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 METAOBJECT_DEFINITION_NOT_FOUND

    The type does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Create a custom content type

POST write_metaobjects

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.

Example: Designer
handle string

Lowercase letters, numbers, hyphens and underscores, starting with a letter, at most 64 characters. Generated from the name when omitted on create.

Example: designer
description string

At most 1000 characters.

status string

active (default) or draft.

Example: active
display_field_key string

Key of a single line text field used as each entry's name in lists and pickers.

Example: name
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.

Example: [{"key":"name","name":"Name","type":"string","required":true},{"key":"bio","name":"Bio","type":"rich_text","translatable":true},{"key":"photo","name":"Photo","type":"file_reference"}]
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).

Example: true
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.

Example: designer
address_translations object

The complete set of addresses in other languages, language code → address; a language left out uses address. Same rules as address.

Example: {"de":"designerin"}
schema_kind string

The schema.org structured data entry pages carry: person, place, faq_page or none (default).

Example: person
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 social_image_id. Without either, the store's share image is used, then its logo. Null or an empty string removes it; on update, omitted keeps it.

Example: photo
validate_only boolean

Check the change and report redirect_conflicts without saving it.

Example: false
revision string

The type's updated_at you edited from; a type changed since is refused with METAOBJECT_DEFINITION_CONFLICT.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 METAOBJECT_DEFINITION_NAME_REQUIRED

    name is empty.

  • 400 METAOBJECT_DEFINITION_HANDLE_INVALID

    handle has another shape.

  • 409 METAOBJECT_DEFINITION_HANDLE_DUPLICATE

    Another type uses the handle.

  • 400 METAOBJECT_FIELDS_REQUIRED

    fields is empty.

  • 400 METAOBJECT_FIELDS_TOO_MANY

    More than 40 fields.

  • 400 METAOBJECT_FIELD_KEY_INVALID

    A field key has another shape; details.field_index names the field.

  • 400 METAOBJECT_FIELD_KEY_DUPLICATE

    Two fields share a key; details.field_index names the second.

  • 400 METAOBJECT_FIELD_TYPE_INVALID

    A field type is not a metafield type.

  • 400 METAOBJECT_FIELD_TYPE_CHANGED

    A field's type changed while the type has entries.

  • 400 METAOBJECT_FIELD_TRANSLATABLE_UNSUPPORTED

    translatable on a field that is not text.

  • 400 METAOBJECT_FIELD_SEARCHABLE_UNSUPPORTED

    searchable on a field that is not text or a select.

  • 400 METAOBJECT_DISPLAY_FIELD_INVALID

    display_field_key is not a single line text field of the type.

  • 400 METAOBJECT_SOCIAL_IMAGE_FIELD_INVALID

    social_image_field_key is not a file field (file_reference) of the type, or fields removes the field it names.

  • 400 METAFIELD_DEFINITION_METAOBJECT_TYPE_REQUIRED

    A metaobject_reference field has no validation_rules.metaobject_definition_id.

  • 400 METAFIELD_DEFINITION_METAOBJECT_TYPE_MISSING

    A metaobject_reference field points to a type that does not exist.

  • 400 METAFIELD_DEFINITION_METAOBJECT_TYPE_LOCKED

    A reference field's target type changed while the type has entries.

  • 403 METAOBJECT_DEFINITION_LOCKED

    The type is managed by a theme or app; its fields cannot change.

  • 409 METAOBJECT_DEFINITION_CONFLICT

    The type changed since revision.

  • 400 METAOBJECT_FIELD_KEY_RESERVED

    A field key is one an entry's own facts use (id, handle, type, url, display_name, seo, updated_at).

  • 400 METAOBJECT_ADDRESS_REQUIRED

    address is empty.

  • 400 METAOBJECT_ADDRESS_INVALID

    address (or a translation) has another shape.

  • 400 METAOBJECT_ADDRESS_RESERVED

    address is a system route of the storefront.

  • 409 METAOBJECT_ADDRESS_PERMALINK_CLASH

    address is one of the store's permalink prefixes.

  • 409 METAOBJECT_ADDRESS_TYPE_CLASH

    Another type uses the address in some language.

  • 400 METAOBJECT_ADDRESS_LOCALE_INVALID

    address_translations names a language the store has not enabled.

  • 400 METAOBJECT_SCHEMA_KIND_INVALID

    schema_kind is not person, place, faq_page or none.

  • 403 METAOBJECT_DEFINITION_LIMIT

    The store has as many types as its plan allows.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Update a custom content type

PUT write_metaobjects

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 $app:{handle} for one of the calling app's own types.

Example: designer

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
name string

At most 255 characters.

Example: Designer
handle string

Lowercase letters, numbers, hyphens and underscores, starting with a letter, at most 64 characters. Generated from the name when omitted on create.

Example: designer
description string

At most 1000 characters.

status string

active (default) or draft.

Example: active
display_field_key string

Key of a single line text field used as each entry's name in lists and pickers.

Example: name
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.

Example: [{"key":"name","name":"Name","type":"string","required":true},{"key":"bio","name":"Bio","type":"rich_text","translatable":true},{"key":"photo","name":"Photo","type":"file_reference"}]
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).

Example: true
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.

Example: designer
address_translations object

The complete set of addresses in other languages, language code → address; a language left out uses address. Same rules as address.

Example: {"de":"designerin"}
schema_kind string

The schema.org structured data entry pages carry: person, place, faq_page or none (default).

Example: person
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 social_image_id. Without either, the store's share image is used, then its logo. Null or an empty string removes it; on update, omitted keeps it.

Example: photo
validate_only boolean

Check the change and report redirect_conflicts without saving it.

Example: false
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.

Example: false
confirmation_token string

Token returned by the first request.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 METAOBJECT_DEFINITION_NOT_FOUND

    The type does not exist in this store.

  • 400 METAOBJECT_DEFINITION_NAME_REQUIRED

    name is empty.

  • 400 METAOBJECT_DEFINITION_HANDLE_INVALID

    handle has another shape.

  • 409 METAOBJECT_DEFINITION_HANDLE_DUPLICATE

    Another type uses the handle.

  • 400 METAOBJECT_FIELDS_REQUIRED

    fields is empty.

  • 400 METAOBJECT_FIELDS_TOO_MANY

    More than 40 fields.

  • 400 METAOBJECT_FIELD_KEY_INVALID

    A field key has another shape; details.field_index names the field.

  • 400 METAOBJECT_FIELD_KEY_DUPLICATE

    Two fields share a key; details.field_index names the second.

  • 400 METAOBJECT_FIELD_TYPE_INVALID

    A field type is not a metafield type.

  • 400 METAOBJECT_FIELD_TYPE_CHANGED

    A field's type changed while the type has entries.

  • 400 METAOBJECT_FIELD_TRANSLATABLE_UNSUPPORTED

    translatable on a field that is not text.

  • 400 METAOBJECT_FIELD_SEARCHABLE_UNSUPPORTED

    searchable on a field that is not text or a select.

  • 400 METAOBJECT_DISPLAY_FIELD_INVALID

    display_field_key is not a single line text field of the type.

  • 400 METAOBJECT_SOCIAL_IMAGE_FIELD_INVALID

    social_image_field_key is not a file field (file_reference) of the type, or fields removes the field it names.

  • 400 METAFIELD_DEFINITION_METAOBJECT_TYPE_REQUIRED

    A metaobject_reference field has no validation_rules.metaobject_definition_id.

  • 400 METAFIELD_DEFINITION_METAOBJECT_TYPE_MISSING

    A metaobject_reference field points to a type that does not exist.

  • 400 METAFIELD_DEFINITION_METAOBJECT_TYPE_LOCKED

    A reference field's target type changed while the type has entries.

  • 403 METAOBJECT_DEFINITION_LOCKED

    The type is managed by a theme or app; its fields cannot change.

  • 409 METAOBJECT_DEFINITION_CONFLICT

    The type changed since revision.

  • 400 METAOBJECT_FIELD_KEY_RESERVED

    A field key is one an entry's own facts use (id, handle, type, url, display_name, seo, updated_at).

  • 400 METAOBJECT_ADDRESS_REQUIRED

    address is empty.

  • 400 METAOBJECT_ADDRESS_INVALID

    address (or a translation) has another shape.

  • 400 METAOBJECT_ADDRESS_RESERVED

    address is a system route of the storefront.

  • 409 METAOBJECT_ADDRESS_PERMALINK_CLASH

    address is one of the store's permalink prefixes.

  • 409 METAOBJECT_ADDRESS_TYPE_CLASH

    Another type uses the address in some language.

  • 400 METAOBJECT_ADDRESS_LOCALE_INVALID

    address_translations names a language the store has not enabled.

  • 400 METAOBJECT_SCHEMA_KIND_INVALID

    schema_kind is not person, place, faq_page or none.

  • 409 CONFIRMATION_REQUIRED

    Removed fields hold values in entries; details.warnings names each field and how many entries lose it. Repeat with confirmed: true and the token.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Delete a custom content type

DELETE write_metaobjects

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 $app:{handle} for one of the calling app's own types.

Example: designer

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.

Example: false
confirmation_token string

Token returned by the first request.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 METAOBJECT_DEFINITION_NOT_FOUND

    The type does not exist in this store.

  • 409 METAOBJECT_DEFINITION_HAS_ENTRIES

    The type still has entries.

  • 409 METAOBJECT_DEFINITION_REFERENCED

    Custom data definitions or other types point to the type; details.references names them.

  • 409 CONFIRMATION_REQUIRED

    Menus 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: true and the token.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

List entries

GET read_metaobjects

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 $app:{handle} for one of your app's own types.

Example: designer
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).

Default: 25
cursor string

next_cursor of the previous page.

expand string

references adds references: each metaobject reference field resolved to its entries, 3 levels deep.

Allowed values
references
references_metaobject uuid

Entry id: only entries of the type one of whose metaobject reference fields names that entry. total counts the matches up to 10,000 (total_capped past that).

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 METAOBJECT_DEFINITION_NOT_FOUND

    The type does not exist in this store.

  • 400 INVALID_INPUT

    status, sort, limit or cursor is invalid; details.field names it.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get an entry

GET read_metaobjects

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.

Example: 0b8d6f3e-5c1a-4f2e-9d47-3a6b2c1e8f90

Query parameters

Name Type Description
expand string

references resolves metaobject reference fields, 3 levels deep.

Allowed values
references

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 METAOBJECT_ENTRY_NOT_FOUND

    The entry does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The query string has a parameter this request does not accept. The message and error.details.allowed_parameters list the ones it does.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Preview an entry

POST read_metaobjects

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.

Example: 0b8d6f3e-5c1a-4f2e-9d47-3a6b2c1e8f90

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 METAOBJECT_ENTRY_NOT_FOUND

    The entry does not exist in this store.

  • 409 METAOBJECT_WEB_PAGES_OFF

    The entry's type has no web pages.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get where an entry is used

GET read_metaobjects

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.

Example: 0b8d6f3e-5c1a-4f2e-9d47-3a6b2c1e8f90

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 METAOBJECT_ENTRY_NOT_FOUND

    The entry does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Create an entry

POST write_metaobjects

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 $app:{handle} for one of your app's own types.

Example: designer
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.

Example: ana-ruiz
status string

draft (default) or active. Draft entries never reach the storefront or feeds.

Example: active
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.

Example: {"name":"Ana Ruiz","bio":"<p>Madrid-based designer.</p>"}
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 read_files. Without one, the image of the type's social_image_field_key field is used, then the store's share image, then its logo. Null or an empty string removes it; on update, omitted keeps it.

Example: 8f2a1c2b-9d4e-4a56-b789-0123456789ab
revision string

The entry's updated_at you edited from; an entry changed since is refused with METAOBJECT_ENTRY_CONFLICT.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call. A non-empty social_image_id requires read_files in addition to write_metaobjects.

  • 404 METAOBJECT_ENTRY_NOT_FOUND

    The entry does not exist in this store.

  • 400 METAFIELD_VALUE_TOO_LONG

    The value exceeds its size limit: the definition's max_value_length, or the platform value size limit for the type.

  • 400 METAFIELD_VALUE_STRING_TOO_LONG

    A 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.

  • 400 METAFIELD_VALUE_TEXT_CONTROL_CHARS

    A multi_line_text value contains a control character other than a line break or tab.

  • 400 METAFIELD_VALUE_COLOR_INVALID

    A color value is not # followed by six hex digits.

  • 400 METAFIELD_LIST_COLOR_INVALID

    An item of a list.color value is not # followed by six hex digits; the message names the item.

  • 400 METAFIELD_VALUE_CONTENT_REFERENCE_INVALID

    A page_reference, blog_post_reference or collection_reference value, or an item of one of their lists, is not a UUID.

  • 400 METAFIELD_LIST_CONTENT_REFERENCES_INVALID

    A list.page_reference, list.blog_post_reference or list.collection_reference value is not a JSON array of strings.

  • 400 METAFIELD_VALUE_TOO_SHORT

    A string value is shorter than the definition's min_length rule.

  • 400 METAFIELD_VALUE_PATTERN_MISMATCH

    A string value does not match the definition's pattern rule.

  • 400 METAFIELD_LIST_ITEM_TOO_SHORT

    An item of a list.string value is shorter than the definition's min_length rule; the message names the item.

  • 400 METAFIELD_LIST_ITEM_PATTERN_MISMATCH

    An item of a list.string value does not match the definition's pattern rule; the message names the item.

  • 400 METAFIELD_VALUE_INTEGER_INVALID

    An integer value is not a whole number in the 64-bit range.

  • 400 METAFIELD_VALUE_INTEGER_TOO_LONG

    An integer value has more digits than the definition or the platform integer limit allows.

  • 400 METAFIELD_VALUE_DECIMAL_INVALID

    A decimal value is not a finite decimal number.

  • 400 METAFIELD_VALUE_DECIMAL_TOO_LONG

    A decimal value, written out in full, is longer than the definition or the platform decimal limit allows.

  • 400 METAFIELD_VALUE_BELOW_MIN

    An integer or decimal value is below the definition's min rule.

  • 400 METAFIELD_VALUE_ABOVE_MAX

    An integer or decimal value is above the definition's max rule.

  • 400 METAFIELD_VALUE_BOOLEAN_INVALID

    A boolean value is not true or false.

  • 400 METAFIELD_VALUE_DATE_INVALID

    A date value is not a calendar date in YYYY-MM-DD form.

  • 400 METAFIELD_VALUE_DATETIME_INVALID

    A datetime value is not YYYY-MM-DDTHH:mm, YYYY-MM-DDTHH:mm:ss or an RFC 3339 timestamp.

  • 400 METAFIELD_VALUE_JSON_INVALID

    A json value is not valid JSON.

  • 400 METAFIELD_VALUE_JSON_UNSAFE_LINK

    A json value contains a link whose scheme is not http, https, mailto or tel.

  • 400 METAFIELD_VALUE_URL_INVALID

    A url value, or an item of a list.url value, is not an absolute URL with a host.

  • 400 METAFIELD_VALUE_URL_SCHEME

    A url value, or an item of a list.url value, does not use http or https.

  • 400 METAFIELD_VALUE_URL_TOO_LONG

    A url value, or an item of a list.url value, exceeds the definition's max_value_length or the platform URL limit.

  • 400 METAFIELD_VALUE_NOT_IN_CHOICES

    A single_select value is not one of the definition's choice keys.

  • 400 METAFIELD_LIST_CHOICE_INVALID

    An item of a list.single_select value is not one of the definition's choice keys; the message names the item.

  • 400 METAFIELD_LIST_STRINGS_INVALID

    A list.string, list.single_select or list.color value is not a JSON array of strings.

  • 400 METAFIELD_LIST_URLS_INVALID

    A list.url value is not a JSON array of strings.

  • 400 METAFIELD_LIST_FILES_INVALID

    A list.file_reference value is not a JSON array of strings.

  • 400 METAFIELD_LIST_IDS_INVALID

    A list.product_reference or list.variant_reference value is not a JSON array of integers.

  • 400 METAFIELD_LIST_EMPTY

    A list value other than list.string is an empty array. Send null or an empty string to remove the value instead.

  • 400 METAFIELD_LIST_TOO_MANY

    A list value has more items than the definition's max_list_items or the platform list limit for the type.

  • 400 METAFIELD_LIST_ITEM_EMPTY

    An item of a list.string value is empty or only whitespace; the message names the item.

  • 400 METAFIELD_LIST_ITEM_TOO_LONG

    An item of a list.string value exceeds the definition's max_value_length or the platform string limit; the message names the item.

  • 400 METAFIELD_VALUE_FILE_UUID_INVALID

    A file_reference value, or an item of a list.file_reference value, is not a file UUID.

  • 400 METAFIELD_VALUE_ID_INVALID

    A product_reference or variant_reference value is not an integer ID.

  • 400 METAFIELD_VALUE_ID_POSITIVE

    A product_reference or variant_reference value is not a positive integer.

  • 400 METAFIELD_VALUE_ID_TOO_LONG

    A product_reference or variant_reference value exceeds the platform reference ID limit.

  • 400 METAFIELD_LIST_ITEMS_POSITIVE

    An item of a list.product_reference or list.variant_reference value is not a positive integer.

  • 400 METAFIELD_REFERENCE_PRODUCT_MISSING

    A product reference names a product that does not exist in this store.

  • 400 METAFIELD_REFERENCE_VARIANT_MISSING

    A variant reference names a variant that does not exist in this store.

  • 400 METAFIELD_REFERENCE_PRODUCTS_MISSING

    A list.product_reference value names a product that does not exist in this store.

  • 400 METAFIELD_REFERENCE_VARIANTS_MISSING

    A list.variant_reference value names a variant that does not exist in this store.

  • 400 METAFIELD_REFERENCE_PAGE_MISSING

    A page reference names a page that does not exist in this store.

  • 400 METAFIELD_REFERENCE_PAGES_MISSING

    A list.page_reference value names a page that does not exist in this store.

  • 400 METAFIELD_REFERENCE_BLOG_POST_MISSING

    A blog post reference names a blog post that does not exist in this store.

  • 400 METAFIELD_REFERENCE_BLOG_POSTS_MISSING

    A list.blog_post_reference value names a blog post that does not exist in this store.

  • 400 METAFIELD_REFERENCE_COLLECTION_MISSING

    A collection reference names a collection that does not exist in this store.

  • 400 METAFIELD_REFERENCE_COLLECTIONS_MISSING

    A list.collection_reference value names a collection that does not exist in this store.

  • 400 METAFIELD_VALUE_METAOBJECT_REFERENCE_INVALID

    A metaobject_reference value, or an item of its list, is not a UUID; details.item_index names the item.

  • 400 METAFIELD_LIST_METAOBJECT_REFERENCES_INVALID

    A list.metaobject_reference value is not a JSON array of strings.

  • 400 METAFIELD_REFERENCE_METAOBJECT_MISSING

    A metaobject reference names a custom content entry that does not exist in this store.

  • 400 METAFIELD_REFERENCE_METAOBJECTS_MISSING

    A list.metaobject_reference value names an entry that does not exist in this store.

  • 400 METAFIELD_REFERENCE_METAOBJECT_WRONG_TYPE

    A metaobject reference names an entry of another custom content type than the definition is pinned to.

  • 404 NOT_FOUND

    A file reference names a file that does not exist in this store.

  • 400 INVALID_INPUT

    A file reference names a file that is not an uploaded file.

  • 404 METAOBJECT_DEFINITION_NOT_FOUND

    The type does not exist in this store.

  • 403 METAOBJECT_ENTRY_LIMIT

    The store has as many entries as its plan allows.

  • 400 METAOBJECT_ENTRY_FIELD_UNKNOWN

    fields names a key the type does not have; details.field names it.

  • 400 METAOBJECT_ENTRY_FIELD_REQUIRED

    A required field has no value; details.field_key names it.

  • 400 METAOBJECT_ENTRY_VALUES_TOO_LARGE

    The values take more than 64 KB.

  • 400 METAOBJECT_ENTRY_HANDLE_INVALID

    handle has another shape.

  • 409 METAOBJECT_ENTRY_HANDLE_DUPLICATE

    Another entry of the type uses the handle.

  • 400 METAOBJECT_ENTRY_STATUS_INVALID

    status is not active or draft.

  • 409 METAOBJECT_ENTRY_CONFLICT

    The entry changed since revision.

  • 400 FILE_REF_INVALID_ID

    social_image_id is not a valid file id.

  • 404 FILE_REF_NOT_FOUND

    social_image_id does not reference a file in this store.

  • 400 FILE_REF_NOT_IMAGE

    social_image_id is not an image.

  • 400 FILE_REF_MEDIA_LIBRARY_ONLY

    social_image_id is a site asset; choose an image from the Media library.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Update an entry

PUT write_metaobjects

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.

Example: 0b8d6f3e-5c1a-4f2e-9d47-3a6b2c1e8f90

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.

Example: ana-ruiz
status string

draft (default) or active. Draft entries never reach the storefront or feeds.

Example: active
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.

Example: {"name":"Ana Ruiz","bio":"<p>Madrid-based designer.</p>"}
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 read_files. Without one, the image of the type's social_image_field_key field is used, then the store's share image, then its logo. Null or an empty string removes it; on update, omitted keeps it.

Example: 8f2a1c2b-9d4e-4a56-b789-0123456789ab
revision string

The entry's updated_at you edited from; an entry changed since is refused with METAOBJECT_ENTRY_CONFLICT.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call. A non-empty social_image_id requires read_files in addition to write_metaobjects.

  • 404 METAOBJECT_ENTRY_NOT_FOUND

    The entry does not exist in this store.

  • 400 METAFIELD_VALUE_TOO_LONG

    The value exceeds its size limit: the definition's max_value_length, or the platform value size limit for the type.

  • 400 METAFIELD_VALUE_STRING_TOO_LONG

    A 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.

  • 400 METAFIELD_VALUE_TEXT_CONTROL_CHARS

    A multi_line_text value contains a control character other than a line break or tab.

  • 400 METAFIELD_VALUE_COLOR_INVALID

    A color value is not # followed by six hex digits.

  • 400 METAFIELD_LIST_COLOR_INVALID

    An item of a list.color value is not # followed by six hex digits; the message names the item.

  • 400 METAFIELD_VALUE_CONTENT_REFERENCE_INVALID

    A page_reference, blog_post_reference or collection_reference value, or an item of one of their lists, is not a UUID.

  • 400 METAFIELD_LIST_CONTENT_REFERENCES_INVALID

    A list.page_reference, list.blog_post_reference or list.collection_reference value is not a JSON array of strings.

  • 400 METAFIELD_VALUE_TOO_SHORT

    A string value is shorter than the definition's min_length rule.

  • 400 METAFIELD_VALUE_PATTERN_MISMATCH

    A string value does not match the definition's pattern rule.

  • 400 METAFIELD_LIST_ITEM_TOO_SHORT

    An item of a list.string value is shorter than the definition's min_length rule; the message names the item.

  • 400 METAFIELD_LIST_ITEM_PATTERN_MISMATCH

    An item of a list.string value does not match the definition's pattern rule; the message names the item.

  • 400 METAFIELD_VALUE_INTEGER_INVALID

    An integer value is not a whole number in the 64-bit range.

  • 400 METAFIELD_VALUE_INTEGER_TOO_LONG

    An integer value has more digits than the definition or the platform integer limit allows.

  • 400 METAFIELD_VALUE_DECIMAL_INVALID

    A decimal value is not a finite decimal number.

  • 400 METAFIELD_VALUE_DECIMAL_TOO_LONG

    A decimal value, written out in full, is longer than the definition or the platform decimal limit allows.

  • 400 METAFIELD_VALUE_BELOW_MIN

    An integer or decimal value is below the definition's min rule.

  • 400 METAFIELD_VALUE_ABOVE_MAX

    An integer or decimal value is above the definition's max rule.

  • 400 METAFIELD_VALUE_BOOLEAN_INVALID

    A boolean value is not true or false.

  • 400 METAFIELD_VALUE_DATE_INVALID

    A date value is not a calendar date in YYYY-MM-DD form.

  • 400 METAFIELD_VALUE_DATETIME_INVALID

    A datetime value is not YYYY-MM-DDTHH:mm, YYYY-MM-DDTHH:mm:ss or an RFC 3339 timestamp.

  • 400 METAFIELD_VALUE_JSON_INVALID

    A json value is not valid JSON.

  • 400 METAFIELD_VALUE_JSON_UNSAFE_LINK

    A json value contains a link whose scheme is not http, https, mailto or tel.

  • 400 METAFIELD_VALUE_URL_INVALID

    A url value, or an item of a list.url value, is not an absolute URL with a host.

  • 400 METAFIELD_VALUE_URL_SCHEME

    A url value, or an item of a list.url value, does not use http or https.

  • 400 METAFIELD_VALUE_URL_TOO_LONG

    A url value, or an item of a list.url value, exceeds the definition's max_value_length or the platform URL limit.

  • 400 METAFIELD_VALUE_NOT_IN_CHOICES

    A single_select value is not one of the definition's choice keys.

  • 400 METAFIELD_LIST_CHOICE_INVALID

    An item of a list.single_select value is not one of the definition's choice keys; the message names the item.

  • 400 METAFIELD_LIST_STRINGS_INVALID

    A list.string, list.single_select or list.color value is not a JSON array of strings.

  • 400 METAFIELD_LIST_URLS_INVALID

    A list.url value is not a JSON array of strings.

  • 400 METAFIELD_LIST_FILES_INVALID

    A list.file_reference value is not a JSON array of strings.

  • 400 METAFIELD_LIST_IDS_INVALID

    A list.product_reference or list.variant_reference value is not a JSON array of integers.

  • 400 METAFIELD_LIST_EMPTY

    A list value other than list.string is an empty array. Send null or an empty string to remove the value instead.

  • 400 METAFIELD_LIST_TOO_MANY

    A list value has more items than the definition's max_list_items or the platform list limit for the type.

  • 400 METAFIELD_LIST_ITEM_EMPTY

    An item of a list.string value is empty or only whitespace; the message names the item.

  • 400 METAFIELD_LIST_ITEM_TOO_LONG

    An item of a list.string value exceeds the definition's max_value_length or the platform string limit; the message names the item.

  • 400 METAFIELD_VALUE_FILE_UUID_INVALID

    A file_reference value, or an item of a list.file_reference value, is not a file UUID.

  • 400 METAFIELD_VALUE_ID_INVALID

    A product_reference or variant_reference value is not an integer ID.

  • 400 METAFIELD_VALUE_ID_POSITIVE

    A product_reference or variant_reference value is not a positive integer.

  • 400 METAFIELD_VALUE_ID_TOO_LONG

    A product_reference or variant_reference value exceeds the platform reference ID limit.

  • 400 METAFIELD_LIST_ITEMS_POSITIVE

    An item of a list.product_reference or list.variant_reference value is not a positive integer.

  • 400 METAFIELD_REFERENCE_PRODUCT_MISSING

    A product reference names a product that does not exist in this store.

  • 400 METAFIELD_REFERENCE_VARIANT_MISSING

    A variant reference names a variant that does not exist in this store.

  • 400 METAFIELD_REFERENCE_PRODUCTS_MISSING

    A list.product_reference value names a product that does not exist in this store.

  • 400 METAFIELD_REFERENCE_VARIANTS_MISSING

    A list.variant_reference value names a variant that does not exist in this store.

  • 400 METAFIELD_REFERENCE_PAGE_MISSING

    A page reference names a page that does not exist in this store.

  • 400 METAFIELD_REFERENCE_PAGES_MISSING

    A list.page_reference value names a page that does not exist in this store.

  • 400 METAFIELD_REFERENCE_BLOG_POST_MISSING

    A blog post reference names a blog post that does not exist in this store.

  • 400 METAFIELD_REFERENCE_BLOG_POSTS_MISSING

    A list.blog_post_reference value names a blog post that does not exist in this store.

  • 400 METAFIELD_REFERENCE_COLLECTION_MISSING

    A collection reference names a collection that does not exist in this store.

  • 400 METAFIELD_REFERENCE_COLLECTIONS_MISSING

    A list.collection_reference value names a collection that does not exist in this store.

  • 400 METAFIELD_VALUE_METAOBJECT_REFERENCE_INVALID

    A metaobject_reference value, or an item of its list, is not a UUID; details.item_index names the item.

  • 400 METAFIELD_LIST_METAOBJECT_REFERENCES_INVALID

    A list.metaobject_reference value is not a JSON array of strings.

  • 400 METAFIELD_REFERENCE_METAOBJECT_MISSING

    A metaobject reference names a custom content entry that does not exist in this store.

  • 400 METAFIELD_REFERENCE_METAOBJECTS_MISSING

    A list.metaobject_reference value names an entry that does not exist in this store.

  • 400 METAFIELD_REFERENCE_METAOBJECT_WRONG_TYPE

    A metaobject reference names an entry of another custom content type than the definition is pinned to.

  • 404 NOT_FOUND

    A file reference names a file that does not exist in this store.

  • 400 INVALID_INPUT

    A file reference names a file that is not an uploaded file.

  • 404 METAOBJECT_DEFINITION_NOT_FOUND

    The type does not exist in this store.

  • 403 METAOBJECT_ENTRY_LIMIT

    The store has as many entries as its plan allows.

  • 400 METAOBJECT_ENTRY_FIELD_UNKNOWN

    fields names a key the type does not have; details.field names it.

  • 400 METAOBJECT_ENTRY_FIELD_REQUIRED

    A required field has no value; details.field_key names it.

  • 400 METAOBJECT_ENTRY_VALUES_TOO_LARGE

    The values take more than 64 KB.

  • 400 METAOBJECT_ENTRY_HANDLE_INVALID

    handle has another shape.

  • 409 METAOBJECT_ENTRY_HANDLE_DUPLICATE

    Another entry of the type uses the handle.

  • 400 METAOBJECT_ENTRY_STATUS_INVALID

    status is not active or draft.

  • 409 METAOBJECT_ENTRY_CONFLICT

    The entry changed since revision.

  • 400 FILE_REF_INVALID_ID

    social_image_id is not a valid file id.

  • 404 FILE_REF_NOT_FOUND

    social_image_id does not reference a file in this store.

  • 400 FILE_REF_NOT_IMAGE

    social_image_id is not an image.

  • 400 FILE_REF_MEDIA_LIBRARY_ONLY

    social_image_id is a site asset; choose an image from the Media library.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Bulk upsert entries

POST write_metaobjects

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 $app:{handle} for one of your app's own types.

Example: designer
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.

Example: [{"handle":"ana-ruiz","status":"active","fields":{"name":"Ana Ruiz"}}]

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call. A row sets a non-empty social_image_id and the token lacks read_files.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is not valid JSON or not a JSON object.

  • 404 METAOBJECT_DEFINITION_NOT_FOUND

    The type does not exist in this store.

  • 400 METAOBJECT_BULK_TOO_MANY

    More than 100 entries.

  • 400 METAOBJECT_BULK_EMPTY

    entries is empty.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Delete an entry

DELETE write_metaobjects

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.

Example: 0b8d6f3e-5c1a-4f2e-9d47-3a6b2c1e8f90

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.

Example: false
confirmation_token string

Token returned by the first request.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 METAOBJECT_ENTRY_NOT_FOUND

    The entry does not exist in this store.

  • 409 CONFIRMATION_REQUIRED

    References, menu links or theme settings are affected; details.warnings lists them. Repeat with confirmed: true and the token.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get a theme's sample entries

GET read_metaobjects

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.

Example: 0b6f1c56-1d1f-4f2b-9b8e-2f1a7d0c9e11

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 METAOBJECT_THEME_NOT_FOUND

    The theme does not exist in this store.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Add a theme's sample entries

POST write_metaobjects

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.

Example: 0b6f1c56-1d1f-4f2b-9b8e-2f1a7d0c9e11

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 METAOBJECT_THEME_NOT_FOUND

    The theme does not exist in this store.

  • 409 METAOBJECT_SAMPLE_ENTRIES_NONE

    The theme declares no sample entries.

  • 403 METAOBJECT_ENTRY_LIMIT

    The entries would exceed the plan's entry allowance.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Change matching entries

POST write_metaobjects

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.

Example: 7f4ed2c8-2fa5-4c63-9d9b-7ac5366dc651
action required string

One of update_status, delete.

Allowed values
update_statusdelete
Example: update_status
filter required object

The entries to change, as the list filters them: type (type id or handle), status (active or draft), search (display field and handle), references_metaobject (an entry id: the entries one of whose reference fields names it) and ids (at most 100 entry ids, to change exactly those). type is required (without it the request is refused with INVALID_INPUT for filter.type); the others are optional and combined with AND, so a filter with only type selects every entry of the type. An unknown field is refused.

Example: {"type":"designer","status":"draft"}
params object

What the action sets. update_status: status (active or draft). Actions without parameters take none.

Example: {"status":"active"}
confirmed boolean

Set true when repeating a request that returned CONFIRMATION_REQUIRED.

Example: false
confirmation_token string

Token returned by the first request.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 400 STORE_API_INVALID_REQUEST_BODY

    The body is not valid JSON or not a JSON object.

  • 400 CONTENT_BULK_OPERATION_INVALID

    operation_id is not a valid nonzero UUID, or action is not one this list supports.

  • 400 INVALID_INPUT

    filter or params has a field the action does not take.

  • 400 CONTENT_BULK_OPERATION_NO_MATCH

    No entry matches the filter.

  • 400 CONTENT_BULK_OPERATION_TOO_MANY

    More than 100000 entries match the filter.

  • 409 CONTENT_BULK_OPERATION_ACTIVE

    Another entry bulk operation is still running in this store.

  • 409 CONTENT_BULK_OPERATION_CONFLICT

    This operation_id was already used with a different action, filter or params.

  • 409 CONFIRMATION_REQUIRED

    The action needs confirmation; the details list what it affects. Repeat the request with confirmed: true and the returned confirmation token.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The body has a property this request does not accept. The message and error.details.properties list the allowed and required properties (nested for each object or list of objects).

  • 400 STORE_API_BODY_PROPERTY_INVALID

    A body property has the wrong type (error.details.expected_type). The message and error.details.properties list the allowed and required properties.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Get entry bulk operation

GET write_metaobjects

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 current.

Example: 7f4ed2c8-2fa5-4c63-9d9b-7ac5366dc651

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 CONTENT_BULK_OPERATION_NOT_FOUND

    The operation does not exist in this store, has expired, or is still running when acknowledging.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Cancel entry bulk operation

POST write_metaobjects

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.

Example: 7f4ed2c8-2fa5-4c63-9d9b-7ac5366dc651

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 CONTENT_BULK_OPERATION_NOT_FOUND

    The operation does not exist in this store, has expired, or is still running when acknowledging.

  • 409 CONTENT_BULK_OPERATION_NOT_RUNNING

    The operation has already finished.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The request allowance is exhausted. Wait for Retry-After before retrying.

Acknowledge entry bulk operation

POST write_metaobjects

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.

Example: 7f4ed2c8-2fa5-4c63-9d9b-7ac5366dc651

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

    The Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.

  • 401 TOKEN_NOT_ACCEPTED

    The token is unknown, expired, revoked or replaced, or its app was uninstalled.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

    The credential is pinned to an API version that cannot be served.

  • 403 STORE_SUSPENDED

    Tringify has suspended the store. Every request is refused until it is reinstated.

  • 403 STORE_TERMINATED

    Tringify has terminated the store permanently. Every request is refused.

  • 403 STORE_API_SCOPE_REQUIRED

    Token is valid but lacks the required scope for this call.

  • 404 CONTENT_BULK_OPERATION_NOT_FOUND

    The operation does not exist in this store, has expired, or is still running when acknowledging.

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

    The request has a query parameter; this endpoint takes none.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

    The request body has a property; this endpoint takes no body. Send no body or an empty object {}.

  • 429 RATE_LIMITED

    The 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

EVENT metaobject_definitions/create App scope: read_metaobjects Staff permission: metaobjects:read

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

EVENT metaobject_definitions/update App scope: read_metaobjects Staff permission: metaobjects:read

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

EVENT metaobject_definitions/delete App scope: read_metaobjects Staff permission: metaobjects:read

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

EVENT metaobjects/create App scope: read_metaobjects Staff permission: metaobjects:read

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

EVENT metaobjects/update App scope: read_metaobjects Staff permission: metaobjects:read

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

EVENT metaobjects/delete App scope: read_metaobjects Staff permission: metaobjects:read

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