Categories require product scopes. Reads use read_products; writes use write_products. Categories support parent_id, name, slug, description, seo_title, seo_description, image_id, and template_handle fields. slug is optional on create and generated from the name when omitted; on update, omit it to keep the current slug or send an empty string to regenerate it from the name. parent_id builds the category hierarchy. Assigning a non-empty image_id also requires read_files for the referenced upload image. On create, omitting template_handle assigns default_category. Use default_category for the default Category template, or pass an alternate Category template handle configured for the store. Omit template_handle on update to leave the current assignment unchanged; an empty string is invalid. AI translation is not exposed through the Store API.
Endpoints#
Category limits
Fetch Category limits and per-field constraints.
Returns the per-field maximum lengths, hierarchy depth, and request caps that apply to Category endpoints. Useful for clients to validate inputs before sending them and to size UIs. max_per_store is this store's plan cap, count is how many exist now, and usage is the label as Tringify shows it, in English.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List categories
List categories for the store.
Returns paginated categories. With tree=true and no search or filters, limit paginates root categories; the selected roots and their descendants are then expanded into one nested page. Expansion is deterministic and ancestor-first, with siblings ordered by name and then id, and is capped at request_caps.tree_max_limit total category nodes across the whole root page, including the roots, and at the 512 KiB reply budget. When more nodes exist or the next node would pass the budget, the response returns the prefix that fits and sets truncated: true; later descendants or entire later root subtrees can therefore be absent even when has_next is false. has_next, has_previous, next_cursor, previous_cursor, and total describe root-category pagination only and do not describe omitted descendants. To retrieve every category, use the flat list (tree=false) with cursor pagination; add ancestor_id when a complete flat listing of one category's descendants is needed. Any search or filter also switches the response to the ordinary flat, cursor-paginated list, where truncated is false. A flat page holds at most list_max_limit (100) categories with every field, description included. next_cursor is present only when has_next is true, and previous_cursor only when has_previous is true. 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 |
|---|---|---|
cursor
|
string |
Opaque cursor from a previous |
limit
|
integer |
Page size, 1-100 (default 50). Larger values return |
tree
|
boolean |
When true and no search or filters are active, paginate roots by |
search
|
string |
Search categories by name or slug. Maximum 200 characters. |
parent_id
|
string |
|
ancestor_id
|
integer |
Filter to descendants of this ancestor category id. Must be a positive integer. |
has_children
|
boolean |
Filter categories by whether they have subcategories. Accepted values: true, false. |
has_images
|
boolean |
Filter categories by whether they have an image. Accepted values: true, false. |
sort_by
|
string |
Sort field. Allowed values: name, product_count, created_at, updated_at.
Allowed values
nameproduct_countcreated_atupdated_at |
sort_direction
|
string |
Sort direction. Allowed values: asc, desc.
Allowed values
ascdesc |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400CATEGORY_LIST_INVALID_LIMITlimitis outside 1 torequest_caps.list_max_limit. -
400INVALID_INPUTCursor is malformed or does not match the current list state.
-
400CATEGORY_SEARCH_TOO_LONGsearchis longer thanrequest_caps.search_max_length. -
400CATEGORY_LIST_INVALID_SORT_BYsort_byis not a supported sort field. -
400CATEGORY_LIST_INVALID_SORT_DIRECTIONsort_directionis notascordesc. -
400CATEGORY_LIST_INVALID_PARENT_IDparent_idis neithernullnor a positive integer. -
400CATEGORY_LIST_INVALID_ANCESTOR_IDancestor_idis not a positive integer. -
400CATEGORY_LIST_INVALID_BOOLEANA boolean list filter is not true or false.
-
400LIST_RESPONSE_TOO_LARGEThe page is too large; request a lower
limit(error.params.fitestimates how many rows fit). -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Search categories
Search categories for picker-style suggestions.
Returns lightweight category suggestions by query, one page of limit at a time, for pickers and simple selection UIs, ranked exact name, name prefix, exact slug, slug prefix, then other matches. items holds the page. total and match_count count the matches exactly up to 10,000; above that both are 10,000 and match_count_is_capped is true (without q, they count every category the same way). Pages reach the first 10,000 matches; a later page is empty, so narrow q instead. Use the list endpoint with search for full rows, filters, sorting and cursors.
Query parameters
| Name | Type | Description |
|---|---|---|
q
|
string |
Search query, matched against names and slugs. Maximum 200 characters. |
page
|
integer |
Page number, from 1. |
limit
|
integer |
Suggestion count. Defaults to 10. Maximum 50. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400VALIDATION_LIST_INVALID_PAGEpageis not a positive integer. -
400CATEGORY_LIST_INVALID_LIMITlimitis outside 1 torequest_caps.search_max_limit. -
400CATEGORY_SEARCH_TOO_LONGqis longer thanrequest_caps.search_max_length. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Get a category
Fetch one category by id.
Returns the category if it belongs to the token's store. 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 |
|---|---|---|
id
required
|
integer |
Category id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_CATEGORY_IDCategory id is not a positive integer.
-
404CATEGORY_NOT_FOUNDCategory does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
List category metafields
List a category's custom-data values visible to the token.
Returns paginated metafield values the token can read. total counts only visible values. Identify each value by namespace and key.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
integer |
Category id. |
Query parameters
| Name | Type | Description |
|---|---|---|
page
|
integer |
Page number (default 1). |
limit
|
integer |
Values per page, 1 to 50 (default 20), the page size of every custom data value list. A |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_CATEGORY_IDCategory id is not a positive integer.
-
400VALIDATION_LIST_INVALID_PAGEPage must be at least 1.
-
400VALIDATION_LIST_INVALID_LIMITLimit is outside the supported range.
-
404NOT_FOUNDCategory does not exist in this store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Set category metafields
Create, update, or delete category custom-data values.
Send namespace-and-key entries. A string value creates or replaces a value; null or an empty string deletes it. App tokens (tpat_, tast_) write values only for definitions their app owns; a definition another app shares is readable but not writable. Store admin tokens (tsat_) and connected AI tools write as the merchant: merchant-owned definitions, and app-owned definitions whose merchant_access is read_write. Definition access, type, constraint, reference, translation-staleness, search-index, audit, and webhook rules are applied in the same transaction.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
integer |
Category id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
metafields
required
|
array<object> |
Entries shaped as |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_CATEGORY_IDCategory id is not a positive integer.
-
400STORE_API_INVALID_REQUEST_BODYRequest body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.
-
400METAFIELD_NO_WRITESAt least one metafield entry is required.
-
400METAFIELD_DUPLICATE_WRITEThe request contains the same namespace and key more than once.
-
400METAFIELD_KEY_NOT_FOUNDThe namespace and key do not identify a definition visible to the token. An app token sees its own definitions, merchant-owned definitions of an owner type it can read, and other apps' definitions shared with apps; any other definition returns this code.
-
403METAFIELD_WRITE_MERCHANT_READ_ONLYThe app-owned definition does not allow Store Admin writes.
-
404NOT_FOUNDCategory does not exist in this store. A file reference names a file that does not exist in this store.
-
400METAFIELD_VALUE_TOO_LONGThe value exceeds its size limit: the definition's max_value_length, or the platform value size limit for the type.
-
400METAFIELD_VALUE_STRING_TOO_LONGA string or multi_line_text value, or the readable text of a rich_text value, exceeds the definition's max_value_length or its platform limit.
-
400METAFIELD_VALUE_TEXT_CONTROL_CHARSA multi_line_text value contains a control character other than a line break or tab.
-
400METAFIELD_VALUE_COLOR_INVALIDA color value is not # followed by six hex digits.
-
400METAFIELD_LIST_COLOR_INVALIDAn item of a list.color value is not # followed by six hex digits; the message names the item.
-
400METAFIELD_VALUE_CONTENT_REFERENCE_INVALIDA page_reference, blog_post_reference or collection_reference value, or an item of one of their lists, is not a UUID.
-
400METAFIELD_LIST_CONTENT_REFERENCES_INVALIDA list.page_reference, list.blog_post_reference or list.collection_reference value is not a JSON array of strings.
-
400METAFIELD_VALUE_TOO_SHORTA string value is shorter than the definition's min_length rule.
-
400METAFIELD_VALUE_PATTERN_MISMATCHA string value does not match the definition's pattern rule.
-
400METAFIELD_LIST_ITEM_TOO_SHORTAn item of a list.string value is shorter than the definition's min_length rule; the message names the item.
-
400METAFIELD_LIST_ITEM_PATTERN_MISMATCHAn item of a list.string value does not match the definition's pattern rule; the message names the item.
-
400METAFIELD_VALUE_INTEGER_INVALIDAn integer value is not a whole number in the 64-bit range.
-
400METAFIELD_VALUE_INTEGER_TOO_LONGAn integer value has more digits than the definition or the platform integer limit allows.
-
400METAFIELD_VALUE_DECIMAL_INVALIDA decimal value is not a finite decimal number.
-
400METAFIELD_VALUE_DECIMAL_TOO_LONGA decimal value, written out in full, is longer than the definition or the platform decimal limit allows.
-
400METAFIELD_VALUE_BELOW_MINAn integer or decimal value is below the definition's min rule.
-
400METAFIELD_VALUE_ABOVE_MAXAn integer or decimal value is above the definition's max rule.
-
400METAFIELD_VALUE_BOOLEAN_INVALIDA boolean value is not true or false.
-
400METAFIELD_VALUE_DATE_INVALIDA date value is not a calendar date in YYYY-MM-DD form.
-
400METAFIELD_VALUE_DATETIME_INVALIDA datetime value is not YYYY-MM-DDTHH:mm, YYYY-MM-DDTHH:mm:ss or an RFC 3339 timestamp.
-
400METAFIELD_VALUE_JSON_INVALIDA json value is not valid JSON.
-
400METAFIELD_VALUE_JSON_UNSAFE_LINKA json value contains a link whose scheme is not http, https, mailto or tel.
-
400METAFIELD_VALUE_URL_INVALIDA url value, or an item of a list.url value, is not an absolute URL with a host.
-
400METAFIELD_VALUE_URL_SCHEMEA url value, or an item of a list.url value, does not use http or https.
-
400METAFIELD_VALUE_URL_TOO_LONGA url value, or an item of a list.url value, exceeds the definition's max_value_length or the platform URL limit.
-
400METAFIELD_VALUE_NOT_IN_CHOICESA single_select value is not one of the definition's choice keys.
-
400METAFIELD_LIST_CHOICE_INVALIDAn item of a list.single_select value is not one of the definition's choice keys; the message names the item.
-
400METAFIELD_LIST_STRINGS_INVALIDA list.string, list.single_select or list.color value is not a JSON array of strings.
-
400METAFIELD_LIST_URLS_INVALIDA list.url value is not a JSON array of strings.
-
400METAFIELD_LIST_FILES_INVALIDA list.file_reference value is not a JSON array of strings.
-
400METAFIELD_LIST_IDS_INVALIDA list.product_reference or list.variant_reference value is not a JSON array of integers.
-
400METAFIELD_LIST_EMPTYA list value other than list.string is an empty array. Send null or an empty string to remove the value instead.
-
400METAFIELD_LIST_TOO_MANYA list value has more items than the definition's max_list_items or the platform list limit for the type.
-
400METAFIELD_LIST_ITEM_EMPTYAn item of a list.string value is empty or only whitespace; the message names the item.
-
400METAFIELD_LIST_ITEM_TOO_LONGAn item of a list.string value exceeds the definition's max_value_length or the platform string limit; the message names the item.
-
400METAFIELD_VALUE_FILE_UUID_INVALIDA file_reference value, or an item of a list.file_reference value, is not a file UUID.
-
400METAFIELD_VALUE_ID_INVALIDA product_reference or variant_reference value is not an integer ID.
-
400METAFIELD_VALUE_ID_POSITIVEA product_reference or variant_reference value is not a positive integer.
-
400METAFIELD_VALUE_ID_TOO_LONGA product_reference or variant_reference value exceeds the platform reference ID limit.
-
400METAFIELD_LIST_ITEMS_POSITIVEAn item of a list.product_reference or list.variant_reference value is not a positive integer.
-
400METAFIELD_REFERENCE_PRODUCT_MISSINGA product reference names a product that does not exist in this store.
-
400METAFIELD_REFERENCE_VARIANT_MISSINGA variant reference names a variant that does not exist in this store.
-
400METAFIELD_REFERENCE_PRODUCTS_MISSINGA list.product_reference value names a product that does not exist in this store.
-
400METAFIELD_REFERENCE_VARIANTS_MISSINGA list.variant_reference value names a variant that does not exist in this store.
-
400METAFIELD_REFERENCE_PAGE_MISSINGA page reference names a page that does not exist in this store.
-
400METAFIELD_REFERENCE_PAGES_MISSINGA list.page_reference value names a page that does not exist in this store.
-
400METAFIELD_REFERENCE_BLOG_POST_MISSINGA blog post reference names a blog post that does not exist in this store.
-
400METAFIELD_REFERENCE_BLOG_POSTS_MISSINGA list.blog_post_reference value names a blog post that does not exist in this store.
-
400METAFIELD_REFERENCE_COLLECTION_MISSINGA collection reference names a collection that does not exist in this store.
-
400METAFIELD_REFERENCE_COLLECTIONS_MISSINGA list.collection_reference value names a collection that does not exist in this store.
-
400METAFIELD_VALUE_METAOBJECT_REFERENCE_INVALIDA metaobject_reference value, or an item of its list, is not a UUID; details.item_index names the item.
-
400METAFIELD_LIST_METAOBJECT_REFERENCES_INVALIDA list.metaobject_reference value is not a JSON array of strings.
-
400METAFIELD_REFERENCE_METAOBJECT_MISSINGA metaobject reference names a custom content entry that does not exist in this store.
-
400METAFIELD_REFERENCE_METAOBJECTS_MISSINGA list.metaobject_reference value names an entry that does not exist in this store.
-
400METAFIELD_REFERENCE_METAOBJECT_WRONG_TYPEA metaobject reference names an entry of another custom content type than the definition is pinned to.
-
400INVALID_INPUTA file reference names a file that is not an uploaded file.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Create a category
Create a category.
Creates a category. name is required; optional text fields, hierarchy assignment, image assignment, and template assignment follow the Category resource contract. If image_id is non-empty, it must point to an upload image in the same store and the token must also have read_files. 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. |
Idempotency-Key
|
string |
Optional key, up to 255 characters, that makes this create safe to retry. Repeating the request with the same key and body within 24 hours returns the original response instead of creating again; the same key with a different body returns |
Body parameters
| Name | Type | Description |
|---|---|---|
name
required
|
string |
Category name. |
slug
|
string |
Optional slug. Omit to generate from name. |
parent_id
|
integer |
Optional parent category id. Omit or send 0 for a root category. |
description
|
string |
Optional plain-text description. |
seo_title
|
string |
Optional SEO title. Omit or send an empty string to let the storefront fall back to the category name. |
seo_description
|
string |
Optional SEO description. Omit or send an empty string to let the storefront fall back to the category description. |
image_id
|
string |
Optional Media-library upload image UUID. Non-empty values require |
template_handle
|
string |
Category template. Omit this field, send an empty string, or send |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.
-
400STORE_API_CREATE_REDIRECT_UNSUPPORTEDcreate_redirectis only accepted when updating a category. -
400CATEGORY_NAME_REQUIREDnameis missing or empty. -
400CATEGORY_NAME_INVALID_CHARSName contains forbidden control characters.
-
400CATEGORY_NAME_TOO_LONGName is longer than its
max_lengthin/categories/limits. -
400CATEGORY_SLUG_INVALID_FORMATSlug may contain only lowercase letters, digits and hyphens.
-
400CATEGORY_SLUG_TOO_LONGSlug is longer than its
max_lengthin/categories/limits. -
400CATEGORY_SLUG_GENERATION_FAILEDA slug could not be generated from the supplied name.
-
400CATEGORY_UNIQUE_SLUG_GENERATION_FAILEDA unique generated slug could not be allocated.
-
400CATEGORY_DESCRIPTION_INVALID_CHARSDescription contains forbidden control characters.
-
400CATEGORY_DESCRIPTION_TOO_LONGDescription is longer than its
max_lengthin/categories/limits. -
400CATEGORY_SEO_TITLE_INVALID_CHARSSEO title contains forbidden control characters.
-
400CATEGORY_SEO_TITLE_TOO_LONGSEO title is longer than its
max_lengthin/categories/limits. -
400CATEGORY_SEO_DESCRIPTION_INVALID_CHARSSEO description contains forbidden control characters.
-
400CATEGORY_SEO_DESCRIPTION_TOO_LONGSEO description is longer than its
max_lengthin/categories/limits. -
400CATEGORY_DEPTH_EXCEEDEDParent assignment would exceed the category hierarchy depth limit.
-
400CATEGORY_CANNOT_BE_OWN_PARENTA category cannot be its own parent.
-
400CATEGORY_CANNOT_BE_DESCENDANT_PARENTParent assignment would create a cycle.
-
400CATEGORY_PARENT_NOT_FOUNDParent category does not exist in this store.
-
400TEMPLATE_HANDLE_INVALIDTemplate handle is not a valid category template handle.
-
400TEMPLATE_HANDLE_NOT_FOUNDNo category template with this handle exists in the store's active theme.
-
400INVALID_INPUTimage_idis malformed, is not an image, or is not a merchant upload. -
403STORE_API_SCOPE_REQUIREDA non-empty
image_idrequiresread_filesin addition towrite_products. -
404NOT_FOUNDimage_iddoes not reference a file in this store. -
409CATEGORY_DUPLICATEThe name is already used under the same parent, or the slug is already used in this store. Names are compared in every language: a category's name in a language is its translation there or its source name, and two categories under the same parent may not share it.
error.details.fieldisnameorsluganderror.details.existing_idis the category that holds the value. -
400CATEGORY_PLAN_LIMIT_REACHEDThe store has as many categories as its plan allows; the message states the maximum. Fetch
/categories/limitsfor the store's current cap and usage. -
400CATALOG_REQUEST_KEY_TOO_LONGIdempotency-Keyis longer than 255 characters. -
403PLAN_UNKNOWNThe store has no active plan, so nothing can be created until one is chosen.
-
409CATALOG_REQUEST_KEY_CONFLICTIdempotency-Keywas already used with a different request body. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Bulk create categories
Create multiple categories by name.
Creates multiple root categories from names. Slugs are generated automatically; existing names are skipped and reported in skipped. The plan cap applies per row: when the batch would pass it, the rows that fit are created and the response is still 200, with each refused name in row_errors (code CATEGORY_PLAN_LIMIT_REACHED, a localized message and args.max). Every other refused name is in row_errors too, blank names included (CATEGORY_NAME_REQUIRED); each row error carries row_number, the name's 1-based position in names. A name repeated in the request is created once and its repeats are reported in skipped. Check row_errors on every response. The top-level code is CATEGORY_BULK_CREATED when every name was created, CATEGORY_BULK_PARTIAL when some were skipped or failed, and CATEGORY_BULK_NOOP when none was created. The response is compact: totals counts created, skipped and failed names; created lists each new item's id and the name you sent; skipped and row_errors are unchanged. Get an item for its other fields.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Idempotency-Key
|
string |
Optional key, up to 255 characters, that makes this create safe to retry. Repeating the request with the same key and body within 24 hours returns the original response instead of creating again; the same key with a different body returns |
Body parameters
| Name | Type | Description |
|---|---|---|
names
required
|
array<string> |
Category names to create. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.
-
400CATEGORY_BULK_NO_NAMESNo names were provided.
-
400CATEGORY_BULK_CREATE_TOO_MANYMore names than
request_caps.bulk_create_max_count. -
409CATEGORY_BULK_DUPLICATEOne of the names in the batch was just created by another request.
-
400CATALOG_REQUEST_KEY_TOO_LONGIdempotency-Keyis longer than 255 characters. -
403PLAN_UNKNOWNThe store has no active plan, so nothing can be created until one is chosen.
-
409CATALOG_REQUEST_KEY_CONFLICTIdempotency-Keywas already used with a different request body. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Update a category
Update a category.
Updates provided Category fields. Omitted fields are left unchanged. Sending parent_id: 0 moves the category to the root. Sending an empty image_id clears the image; sending a non-empty image_id requires read_files and the referenced file must be an upload image in the same store. When the slug changes, a redirect from the old category URL is created (redirects/create, kind auto_slug) unless create_redirect is false. An empty slug regenerates it from the name (the new name when name is sent too), with -2, -3, ... added when it is taken. Translated slugs are unchanged by a source slug change. 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 |
|---|---|---|
id
required
|
integer |
Category id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
name
|
string |
New category name. Omit to leave it unchanged; an empty value is invalid. |
slug
|
string |
New slug. Omit to leave the current slug unchanged; send an empty string to regenerate it from the current category name. |
parent_id
|
integer |
New parent category id. Omit to leave it unchanged; send 0 to move the category to the top level. |
description
|
string |
New plain-text description. Omit to leave it unchanged; send an empty string to clear it. |
seo_title
|
string |
New SEO title. Omit to leave it unchanged; send an empty string to clear it and restore the storefront category-name fallback. |
seo_description
|
string |
New SEO description. Omit to leave it unchanged; send an empty string to clear it and restore the storefront category-description fallback. |
image_id
|
string |
New Media-library upload image UUID. Omit to leave the image unchanged; send an empty string to clear it. A non-empty value requires |
template_handle
|
string |
New category template. Omit to leave it unchanged, send |
create_redirect
|
boolean |
When slug changes, create a redirect from the previous slug. Defaults to true; send false to change the slug without one. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
409CATEGORY_CHANGED_DURING_EDITThe category changed since this edit began. Read it again before saving.
-
400STORE_API_INVALID_CATEGORY_IDCategory id is not a positive integer.
-
400STORE_API_INVALID_REQUEST_BODYRequest body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.
-
400CATEGORY_NAME_REQUIREDnamewas sent empty. Omit it to keep the current name. -
400CATEGORY_NAME_INVALID_CHARSName contains forbidden control characters.
-
400CATEGORY_NAME_TOO_LONGName is longer than its
max_lengthin/categories/limits. -
400CATEGORY_SLUG_INVALID_FORMATSlug may contain only lowercase letters, digits and hyphens.
-
400CATEGORY_SLUG_TOO_LONGSlug is longer than its
max_lengthin/categories/limits. -
400CATEGORY_SLUG_GENERATION_FAILEDA slug could not be generated from the supplied name.
-
400CATEGORY_UNIQUE_SLUG_GENERATION_FAILEDA unique generated slug could not be allocated.
-
400CATEGORY_DESCRIPTION_INVALID_CHARSDescription contains forbidden control characters.
-
400CATEGORY_DESCRIPTION_TOO_LONGDescription is longer than its
max_lengthin/categories/limits. -
400CATEGORY_SEO_TITLE_INVALID_CHARSSEO title contains forbidden control characters.
-
400CATEGORY_SEO_TITLE_TOO_LONGSEO title is longer than its
max_lengthin/categories/limits. -
400CATEGORY_SEO_DESCRIPTION_INVALID_CHARSSEO description contains forbidden control characters.
-
400CATEGORY_SEO_DESCRIPTION_TOO_LONGSEO description is longer than its
max_lengthin/categories/limits. -
400CATEGORY_DEPTH_EXCEEDEDParent assignment would exceed the category hierarchy depth limit.
-
400CATEGORY_CANNOT_BE_OWN_PARENTA category cannot be its own parent.
-
400CATEGORY_CANNOT_BE_DESCENDANT_PARENTParent assignment would create a cycle.
-
400CATEGORY_PARENT_NOT_FOUNDParent category does not exist in this store.
-
400TEMPLATE_HANDLE_INVALIDTemplate handle is not a valid category template handle.
-
400TEMPLATE_HANDLE_NOT_FOUNDNo category template with this handle exists in the store's active theme.
-
400INVALID_INPUTimage_idis malformed, is not an image, or is not a merchant upload. -
403STORE_API_SCOPE_REQUIREDA non-empty
image_idrequiresread_filesin addition towrite_products. -
404NOT_FOUNDimage_iddoes not reference a file in this store. -
409CATEGORY_DUPLICATEThe name is already used under the same parent, or the slug is already used in this store. Names are compared in every language: a category's name in a language is its translation there or its source name, and two categories under the same parent may not share it.
error.details.fieldisnameorsluganderror.details.existing_idis the category that holds the value. -
404CATEGORY_NOT_FOUNDCategory does not exist in this store.
-
409TRANSLATION_SOURCE_FIELD_HAS_TRANSLATIONSClear a field's translations before clearing its source value.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Delete a category
Delete a category.
Deletes the category, its translations, and its metafield values. Its subcategories move up a level: into its parent, or to the top level. It also takes the category off its products (the products themselves stay) and removes the collection rules, cash on delivery product rules, discount targets and menu links that use it. Each discount that loses the category as a target sends discounts/update with a new updated_at shortly after the delete is confirmed; a discount whose target categories are all deleted is disabled as well (its status becomes disabled, and the confirmation's warnings name it). Each collection that loses a rule sends collections/update with changed_fields rules and its remaining rules, shortly after the delete. When anything uses the category or it has subcategories, the first request returns CONFIRMATION_REQUIRED with error.details.warnings (a summary to show) and error.details.impact: products.count (each changed product once), the first 50 subcategories that move with children_total (each with new_parent_id, null for the top level), the first 50 changed collections with collections_total, the discounts aimed at those collections or at the category itself with discounts_total, and the first 50 cash on delivery rules removed with cod_rules_total. Confirmation covers the full impact, including entries past the first 50. Repeat with confirmed: true and the returned confirmation_token; if the impact changed in between, a new confirmation is returned. If moving a subcategory up would give two categories under the same parent the same name, in the source language or a translation, the request returns CATEGORY_DELETE_NAME_CONFLICT with error.details.name_conflicts (each with category_id, name, existing_id, existing_name, locale, new_parent_id, null for the top level, and a message) and the rest of the impact in error.details.impact and nothing is deleted; rename one category of each pair (its source name, or its translated name in that locale) and delete again. A delete that changes 250 products or fewer completes in the request. A larger one moves the subcategories and removes the rules at once, hides the category (it can no longer be assigned, used in rules or given subcategories), and takes it off its products in background batches, each sending products/update. categories/delete is sent when the delete is confirmed, before those batches. Menu links may update shortly after the response. The redirects Tringify created when the category's slug changed (auto_slug, in every language) end on its URLs and are removed shortly after the response, each sending redirects/delete; redirects you created are kept, and its subcategories keep their URLs. The confirmation also lists the storefront places that use it in a theme, since they go empty.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
integer |
Category id. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
confirmed
|
boolean |
On a confirmation retry, set this to true and send the returned confirmation_token. Omit it on the first request. |
confirmation_token
|
string |
Token from the CONFIRMATION_REQUIRED response. Omit it on the first request; when using it, repeat the same request (the same id, or for a bulk delete the same id selection). |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_CATEGORY_IDCategory id is not a positive integer.
-
400STORE_API_INVALID_REQUEST_BODYRequest body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.
-
400CATEGORY_CONFIRMATION_INVALIDConfirmation token is missing, expired, or mismatched.
-
404CATEGORY_NOT_FOUNDCategory does not exist in this store.
-
409CONFIRMATION_REQUIREDDelete requires confirmation because subcategories move or dependent records will be changed.
-
409CATEGORY_DELETE_NAME_CONFLICTMoving a subcategory up would give two categories under the same parent the same name in some language.
error.details.name_conflictslists each clash; rename one category of each pair, then delete again. -
409CATALOG_DELETE_IMPACT_CHANGEDThe impact changed after the confirmation was issued; review the new confirmation and confirm again.
-
503CATALOG_DELETE_UNAVAILABLEDeleting is temporarily unavailable; nothing was deleted. Retry later.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Bulk delete categories
Delete multiple categories.
Send category ids in category_ids. Each selected category is deleted as the single delete describes; a subcategory of a deleted category moves to its nearest ancestor that is not deleted, or to the top level. The confirmation and CATEGORY_DELETE_NAME_CONFLICT cover the whole selection; retry the same ids with confirmed: true and the returned confirmation_token. The response lists deleted ids in deleted and ids that do not exist in failed (with a reason); a request whose ids all fail still returns 200. All database changes for the deleted ids commit together; past 250 products the products are detached in background batches. The confirmation also lists the storefront places that use it in a theme, since they go empty.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
category_ids
required
|
array<integer> |
Category ids to delete. |
confirmed
|
boolean |
On a confirmation retry, set this to true and send the returned confirmation_token. Omit it on the first request. |
confirmation_token
|
string |
Token from the CONFIRMATION_REQUIRED response. Omit it on the first request; when using it, repeat the same request (the same id, or for a bulk delete the same id selection). |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400STORE_API_INVALID_REQUEST_BODYRequest body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.
-
400CATEGORY_BULK_NO_IDScategory_idsis missing or empty. -
400CATEGORY_BULK_DELETE_TOO_MANYMore ids than
request_caps.bulk_delete_max_count. -
400CATEGORY_CONFIRMATION_INVALIDConfirmation token is missing, expired, or mismatched.
-
409CONFIRMATION_REQUIREDDelete requires confirmation because subcategories move or dependent records will be changed.
-
409CATEGORY_DELETE_NAME_CONFLICTMoving a subcategory up would give two categories under the same parent the same name in some language.
error.details.name_conflictslists each clash; rename one category of each pair, then delete again. -
409CATALOG_DELETE_IMPACT_CHANGEDThe impact changed after the confirmation was issued; review the new confirmation and confirm again.
-
503CATALOG_DELETE_UNAVAILABLEDeleting is temporarily unavailable; nothing was deleted. Retry later.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Delete category metafield
Clear one metafield value and its translations, preserving its definition.
Address the existing definition by namespace and key. Requires the same write scope and ownership as setting the value. Apps can clear only their own values; merchant callers need write access to the definition's values. The value row is removed, not set to null. The deletion is recorded in the store's activity log and sends the same metafield webhooks as a delete in Store Admin. Repeating the request for an absent value succeeds with the same success envelope (no data or deleted-count field). An unknown or unreadable definition fails. No request body or confirmation token is required.
Path parameters
| Name | Type | Description |
|---|---|---|
id
required
|
integer |
Category id. |
namespace
required
|
string |
Definition namespace; URL-encode reserved characters. |
key
required
|
string |
Definition key. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
400INVALID_INPUTThe owner ID or namespace/key address is invalid.
-
400METAFIELD_KEY_NOT_FOUNDThe definition does not exist or is not readable by this caller.
-
403METAFIELD_WRITE_APP_OWN_ONLYApps may clear only their own definitions' values, even when other definitions are readable.
-
403METAFIELD_WRITE_MERCHANT_READ_ONLYThe app-owned definition does not grant merchants value write access.
-
403STORE_API_SCOPE_REQUIREDThe token lacks the owner's write scope. Clearing a value needs no additional read_files or write_translations scope.
-
404NOT_FOUNDThe owner does not exist in the authenticated store.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Fields#
Field |
Type |
Create |
Update |
Required |
Translatable |
|---|---|---|---|---|---|
|
id |
No |
No |
No |
|
|
text |
No |
No |
No |
|
|
text |
Yes |
Yes |
create |
Yes |
|
slug |
Yes |
Yes |
Yes |
|
|
integer |
Yes |
Yes |
No |
|
|
textarea |
Yes |
Yes |
Yes |
|
|
text |
Yes |
Yes |
Yes |
|
|
textarea |
Yes |
Yes |
Yes |
|
|
image |
Yes |
Yes |
No |
|
|
text |
No |
No |
No |
|
|
text |
No |
No |
No |
|
|
template |
Yes |
Yes |
No |
|
|
boolean |
No |
Yes |
No |
|
|
text |
No |
No |
No |
|
|
boolean |
No |
No |
No |
|
|
integer |
No |
No |
No |
|
|
datetime |
No |
No |
No |
|
|
datetime |
No |
No |
No |
|
|
url |
No |
No |
No |
No |
|
string |
No |
No |
No |
No |
Webhook events#
Subscribe to these events to keep your integration in sync with categories. Each event shows the required Store API scope and store permission, the available payload fields, and an example payload. Subscription setup is validated against those permissions; delivery is always restricted to the subscription's store.
Metafield events are filtered for every subscriber. An app receives events for definitions it owns. With the event's required scope, it also receives merchant-owned definitions and definitions shared by another app through app_access: shared; another app's private definitions are not delivered. A store-level webhook endpoint receives merchant-owned definitions and app-owned definitions unless merchant_access is hidden. If an event cannot identify the definition owner or its access settings, Tringify does not deliver it.
Category created
Fired when a product category is created.
Payload fields
| Field | Type | Description |
|---|---|---|
category |
object |
Always present
The category that was created. |
category.id |
integer |
Always present
The stable category id. |
category.parent_id |
integer | null |
Always present
The parent category id, or null for a top-level category. |
category.name |
string |
Always present
The category name in the store's default language. |
category.slug |
string |
Always present
The category slug in the store's default language, used in its storefront URL. |
category.description |
string |
Always present
The category description in the store's default language; an empty string when it has none. |
category.seo_title |
string |
Always present
The category page's SEO title in the store's default language; an empty string means the storefront uses the name. |
category.seo_description |
string |
Always present
The category page's SEO description in the store's default language; an empty string means the storefront uses the description. |
category.image_id |
string | null |
Always present
The assigned Media-library image UUID, or null when no image is assigned. |
category.image_url |
string | null |
Always present
The storefront URL of the assigned image on the store's primary domain, or null without an image. |
category.image_cdn_url |
string | null |
Always present
The delivery URL for the assigned image, or null without an image. |
category.product_count |
integer |
Always present
The number of products assigned to the category itself (not its subcategories) when the event was created. |
category.template_handle |
string | null |
Always present
The storefront category template assigned to the category; default_category is the theme's default. |
category.parent_name |
string | null |
Always present
The parent category's name, or null for a top-level category. |
category.has_children |
boolean |
Always present
Whether the category has subcategories. |
category.created_at |
string |
Always present
When the category was created. |
category.updated_at |
string |
Always present
When the category last changed. |
Category updated
Fired when a product category is updated. changed_fields lists what changed. When products are added to or removed from the category (product edits, bulk actions, CSV imports, product deletes), changed_fields is product_count and the payload carries the new count; a CSV import sends it once per import chunk. Also fired when a deleted Media file was its image: changed_fields is image_id and the image is now empty. A field edit (Store Admin, Store API, MCP or a CSV update) also carries previous, the category before the edit; it is omitted for the other updates. Undelivered updates of the same category are merged: the latest state is delivered once, with the union of changed_fields and the previous from before the first of them.
Possible changed_fields values
The changed_fields array names exactly which of these changed in this event — use it to skip processing updates your integration doesn't care about.
description image_id name parent_id product_count seo_description seo_title slug template_handle
Payload fields
| Field | Type | Description |
|---|---|---|
category |
object |
Always present
The category after the change. |
category.id |
integer |
Always present
The stable category id. |
category.parent_id |
integer | null |
Always present
The parent category id, or null for a top-level category. |
category.name |
string |
Always present
The category name in the store's default language. |
category.slug |
string |
Always present
The category slug in the store's default language, used in its storefront URL. |
category.description |
string |
Always present
The category description in the store's default language; an empty string when it has none. |
category.seo_title |
string |
Always present
The category page's SEO title in the store's default language; an empty string means the storefront uses the name. |
category.seo_description |
string |
Always present
The category page's SEO description in the store's default language; an empty string means the storefront uses the description. |
category.image_id |
string | null |
Always present
The assigned Media-library image UUID, or null when no image is assigned. |
category.image_url |
string | null |
Always present
The storefront URL of the assigned image on the store's primary domain, or null without an image. |
category.image_cdn_url |
string | null |
Always present
The delivery URL for the assigned image, or null without an image. |
category.product_count |
integer |
Always present
The number of products assigned to the category itself (not its subcategories) when the event was created. |
category.template_handle |
string | null |
Always present
The storefront category template assigned to the category; default_category is the theme's default. |
category.parent_name |
string | null |
Always present
The parent category's name, or null for a top-level category. |
category.has_children |
boolean |
Always present
Whether the category has subcategories. |
category.created_at |
string |
Always present
When the category was created. |
category.updated_at |
string |
Always present
When the category last changed. |
previous |
object | null |
Selectable in the Payload builder
The category before the change, present when its fields were edited (Store Admin, Store API, MCP or a CSV update); omitted when only product_count changed, when it moved up because its parent was deleted, and when its Media image was deleted. Merged updates keep the snapshot from before the first of them. |
previous.id |
integer |
Always present
The stable category id. This value is from before the update. |
previous.parent_id |
integer | null |
Always present
The parent category id, or null for a top-level category. This value is from before the update. |
previous.name |
string |
Always present
The category name in the store's default language. This value is from before the update. |
previous.slug |
string |
Always present
The category slug in the store's default language, used in its storefront URL. This value is from before the update. |
previous.description |
string |
Always present
The category description in the store's default language; an empty string when it has none. This value is from before the update. |
previous.seo_title |
string |
Always present
The category page's SEO title in the store's default language; an empty string means the storefront uses the name. This value is from before the update. |
previous.seo_description |
string |
Always present
The category page's SEO description in the store's default language; an empty string means the storefront uses the description. This value is from before the update. |
previous.image_id |
string | null |
Always present
The assigned Media-library image UUID, or null when no image is assigned. This value is from before the update. |
previous.image_url |
string | null |
Always present
The storefront URL of the assigned image on the store's primary domain, or null without an image. This value is from before the update. |
previous.image_cdn_url |
string | null |
Always present
The delivery URL for the assigned image, or null without an image. This value is from before the update. |
previous.product_count |
integer |
Always present
The number of products assigned to the category itself (not its subcategories) when the event was created. This value is from before the update. |
previous.template_handle |
string | null |
Always present
The storefront category template assigned to the category; default_category is the theme's default. This value is from before the update. |
previous.parent_name |
string | null |
Always present
The parent category's name, or null for a top-level category. This value is from before the update. |
previous.has_children |
boolean |
Always present
Whether the category has subcategories. This value is from before the update. |
previous.created_at |
string |
Always present
When the category was created. This value is from before the update. |
previous.updated_at |
string |
Always present
When the category last changed. This value is from before the update. |
changed_fields |
array |
Always present
The category fields this event changed: the edited fields for an edit; product_count when products were added to or removed from it; parent_id when it moved up a level because its parent was deleted; image_id when its Media image was deleted. Merged updates carry the union. |
Category deleted
Fired when a product category is deleted. Each subcategory that moved up a level gets categories/update (parent_id), each translation categories/translations/delete and each metafield value category_metafields/delete; these are queued before categories/delete, but deliveries are sent in parallel and can arrive in a different order. Its products are removed from it with products/update (category_ids). categories/delete is sent when the delete is confirmed; when the category had more than 250 products, they are removed after it in background batches.
Payload fields
| Field | Type | Description |
|---|---|---|
category |
object |
Always present
The category as it was just before it was deleted. |
category.id |
integer |
Always present
The stable category id. |
category.parent_id |
integer | null |
Always present
The parent category id, or null for a top-level category. |
category.name |
string |
Always present
The category name in the store's default language. |
category.slug |
string |
Always present
The category slug in the store's default language, used in its storefront URL. |
category.description |
string |
Always present
The category description in the store's default language; an empty string when it has none. |
category.seo_title |
string |
Always present
The category page's SEO title in the store's default language; an empty string means the storefront uses the name. |
category.seo_description |
string |
Always present
The category page's SEO description in the store's default language; an empty string means the storefront uses the description. |
category.image_id |
string | null |
Always present
The assigned Media-library image UUID, or null when no image is assigned. |
category.image_url |
string | null |
Always present
The storefront URL of the assigned image on the store's primary domain, or null without an image. |
category.image_cdn_url |
string | null |
Always present
The delivery URL for the assigned image, or null without an image. |
category.product_count |
integer |
Always present
The number of products assigned to the category itself (not its subcategories) when the event was created. |
category.template_handle |
string | null |
Always present
The storefront category template assigned to the category; default_category is the theme's default. |
category.parent_name |
string | null |
Always present
The parent category's name, or null for a top-level category. |
category.has_children |
boolean |
Always present
Whether the category has subcategories. |
category.created_at |
string |
Always present
When the category was created. |
category.updated_at |
string |
Always present
When the category last changed. |
Category metafield value created
Fired when a category metafield value is created.
Payload fields
| Field | Type | Description |
|---|---|---|
category |
object |
Always present
The category that holds the value: its id, and its name and slug when the event was created. |
category.id |
integer |
Always present
The stable id of the category that holds the value. |
category.name |
string |
Selectable in the Payload builder
The category name when the event was created. |
category.slug |
string |
Selectable in the Payload builder
The category slug when the event was created. |
metafield |
object |
Always present
The value that was created. |
metafield.definition |
object | null |
Selectable in the Payload builder
The metafield definition the value belongs to. |
metafield.definition.id |
string |
Selectable in the Payload builder
The stable metafield definition UUID. |
metafield.definition.owner_type |
string |
Selectable in the Payload builder
The resource type that can hold this definition; category for these events. |
metafield.definition.namespace |
string |
Selectable in the Payload builder
The definition namespace. |
metafield.definition.key |
string |
Selectable in the Payload builder
The definition key within its namespace. |
metafield.definition.name |
string |
Selectable in the Payload builder
The merchant-facing definition name. |
metafield.definition.description |
string | null |
Selectable in the Payload builder
The optional merchant-facing definition description. |
metafield.definition.type |
string |
Selectable in the Payload builder
The metafield value type. |
metafield.definition.is_translatable |
boolean |
Selectable in the Payload builder
Whether the stored value can have translations per language. |
metafield.definition.max_value_length |
integer | null |
Selectable in the Payload builder
The maximum stored string length, or null when this limit does not apply. |
metafield.definition.max_list_items |
integer | null |
Selectable in the Payload builder
The maximum number of list items, or null when this limit does not apply. |
metafield.definition.sort_order |
integer |
Selectable in the Payload builder
The definition's display order. |
metafield.definition.app_id |
string | null |
Selectable in the Payload builder
The owning app id, or null for a merchant-owned definition. |
metafield.definition.app_access |
string |
Selectable in the Payload builder
Whether another authorized app may read the definition: private or shared. |
metafield.definition.merchant_access |
string |
Selectable in the Payload builder
How Store Admin can access an app-owned definition: hidden, read, or read_write. |
metafield.definition.created_at |
string |
Selectable in the Payload builder
When the definition was created. |
metafield.definition.updated_at |
string |
Selectable in the Payload builder
When the definition last changed. |
metafield.value |
string |
Selectable in the Payload builder
The stored metafield value. |
metafield.display_value |
string | null |
Selectable in the Payload builder
Not sent on category metafield events; read a reference's display name from the Store API. |
metafield.display_value_map |
object |
Selectable in the Payload builder
Not sent on category metafield events; read a reference's display names from the Store API. |
metafield.created_at |
string |
Selectable in the Payload builder
When this category's value was created. |
metafield.updated_at |
string |
Selectable in the Payload builder
When this category's value last changed. |
Category metafield value updated
Fired when a category metafield value changes.
Possible changed_fields values
The changed_fields array names exactly which of these changed in this event — use it to skip processing updates your integration doesn't care about.
value
Payload fields
| Field | Type | Description |
|---|---|---|
category |
object |
Always present
The category that holds the value: its id, and its name and slug when the event was created. |
category.id |
integer |
Always present
The stable id of the category that holds the value. |
category.name |
string |
Selectable in the Payload builder
The category name when the event was created. |
category.slug |
string |
Selectable in the Payload builder
The category slug when the event was created. |
previous |
object |
Always present
The value before the change. |
previous.definition |
object | null |
Selectable in the Payload builder
The metafield definition the value belongs to. |
previous.definition.id |
string |
Selectable in the Payload builder
The stable metafield definition UUID. |
previous.definition.owner_type |
string |
Selectable in the Payload builder
The resource type that can hold this definition; category for these events. |
previous.definition.namespace |
string |
Selectable in the Payload builder
The definition namespace. |
previous.definition.key |
string |
Selectable in the Payload builder
The definition key within its namespace. |
previous.definition.name |
string |
Selectable in the Payload builder
The merchant-facing definition name. |
previous.definition.description |
string | null |
Selectable in the Payload builder
The optional merchant-facing definition description. |
previous.definition.type |
string |
Selectable in the Payload builder
The metafield value type. |
previous.definition.is_translatable |
boolean |
Selectable in the Payload builder
Whether the stored value can have translations per language. |
previous.definition.max_value_length |
integer | null |
Selectable in the Payload builder
The maximum stored string length, or null when this limit does not apply. |
previous.definition.max_list_items |
integer | null |
Selectable in the Payload builder
The maximum number of list items, or null when this limit does not apply. |
previous.definition.sort_order |
integer |
Selectable in the Payload builder
The definition's display order. |
previous.definition.app_id |
string | null |
Selectable in the Payload builder
The owning app id, or null for a merchant-owned definition. |
previous.definition.app_access |
string |
Selectable in the Payload builder
Whether another authorized app may read the definition: private or shared. |
previous.definition.merchant_access |
string |
Selectable in the Payload builder
How Store Admin can access an app-owned definition: hidden, read, or read_write. |
previous.definition.created_at |
string |
Selectable in the Payload builder
When the definition was created. |
previous.definition.updated_at |
string |
Selectable in the Payload builder
When the definition last changed. |
previous.value |
string |
Selectable in the Payload builder
The stored value before the change. |
previous.display_value |
string | null |
Selectable in the Payload builder
Not sent on category metafield events; read a reference's display name from the Store API. |
previous.display_value_map |
object |
Selectable in the Payload builder
Not sent on category metafield events; read a reference's display names from the Store API. |
previous.created_at |
string |
Selectable in the Payload builder
When this category's value was created. |
previous.updated_at |
string |
Selectable in the Payload builder
When this category's value last changed. |
current |
object |
Always present
The value after the change. |
current.definition |
object | null |
Selectable in the Payload builder
The metafield definition the value belongs to. |
current.definition.id |
string |
Selectable in the Payload builder
The stable metafield definition UUID. |
current.definition.owner_type |
string |
Selectable in the Payload builder
The resource type that can hold this definition; category for these events. |
current.definition.namespace |
string |
Selectable in the Payload builder
The definition namespace. |
current.definition.key |
string |
Selectable in the Payload builder
The definition key within its namespace. |
current.definition.name |
string |
Selectable in the Payload builder
The merchant-facing definition name. |
current.definition.description |
string | null |
Selectable in the Payload builder
The optional merchant-facing definition description. |
current.definition.type |
string |
Selectable in the Payload builder
The metafield value type. |
current.definition.is_translatable |
boolean |
Selectable in the Payload builder
Whether the stored value can have translations per language. |
current.definition.max_value_length |
integer | null |
Selectable in the Payload builder
The maximum stored string length, or null when this limit does not apply. |
current.definition.max_list_items |
integer | null |
Selectable in the Payload builder
The maximum number of list items, or null when this limit does not apply. |
current.definition.sort_order |
integer |
Selectable in the Payload builder
The definition's display order. |
current.definition.app_id |
string | null |
Selectable in the Payload builder
The owning app id, or null for a merchant-owned definition. |
current.definition.app_access |
string |
Selectable in the Payload builder
Whether another authorized app may read the definition: private or shared. |
current.definition.merchant_access |
string |
Selectable in the Payload builder
How Store Admin can access an app-owned definition: hidden, read, or read_write. |
current.definition.created_at |
string |
Selectable in the Payload builder
When the definition was created. |
current.definition.updated_at |
string |
Selectable in the Payload builder
When the definition last changed. |
current.value |
string |
Selectable in the Payload builder
The stored value after the change. |
current.display_value |
string | null |
Selectable in the Payload builder
Not sent on category metafield events; read a reference's display name from the Store API. |
current.display_value_map |
object |
Selectable in the Payload builder
Not sent on category metafield events; read a reference's display names from the Store API. |
current.created_at |
string |
Selectable in the Payload builder
When this category's value was created. |
current.updated_at |
string |
Selectable in the Payload builder
When this category's value last changed. |
changed_fields |
array |
Selectable in the Payload builder
The metafield fields that changed. Category metafield update events contain value. |
Category metafield value deleted
Fired when a category metafield value is deleted.
Payload fields
| Field | Type | Description |
|---|---|---|
category |
object |
Always present
The category that holds the value: its id, and its name and slug when the event was created. |
category.id |
integer |
Always present
The stable id of the category that holds the value. |
category.name |
string |
Selectable in the Payload builder
The category name when the event was created. |
category.slug |
string |
Selectable in the Payload builder
The category slug when the event was created. |
metafield |
object |
Always present
The value as it was just before it was deleted. |
metafield.definition |
object | null |
Selectable in the Payload builder
The metafield definition the value belongs to. |
metafield.definition.id |
string |
Selectable in the Payload builder
The stable metafield definition UUID. |
metafield.definition.owner_type |
string |
Selectable in the Payload builder
The resource type that can hold this definition; category for these events. |
metafield.definition.namespace |
string |
Selectable in the Payload builder
The definition namespace. |
metafield.definition.key |
string |
Selectable in the Payload builder
The definition key within its namespace. |
metafield.definition.name |
string |
Selectable in the Payload builder
The merchant-facing definition name. |
metafield.definition.description |
string | null |
Selectable in the Payload builder
The optional merchant-facing definition description. |
metafield.definition.type |
string |
Selectable in the Payload builder
The metafield value type. |
metafield.definition.is_translatable |
boolean |
Selectable in the Payload builder
Whether the stored value can have translations per language. |
metafield.definition.max_value_length |
integer | null |
Selectable in the Payload builder
The maximum stored string length, or null when this limit does not apply. |
metafield.definition.max_list_items |
integer | null |
Selectable in the Payload builder
The maximum number of list items, or null when this limit does not apply. |
metafield.definition.sort_order |
integer |
Selectable in the Payload builder
The definition's display order. |
metafield.definition.app_id |
string | null |
Selectable in the Payload builder
The owning app id, or null for a merchant-owned definition. |
metafield.definition.app_access |
string |
Selectable in the Payload builder
Whether another authorized app may read the definition: private or shared. |
metafield.definition.merchant_access |
string |
Selectable in the Payload builder
How Store Admin can access an app-owned definition: hidden, read, or read_write. |
metafield.definition.created_at |
string |
Selectable in the Payload builder
When the definition was created. |
metafield.definition.updated_at |
string |
Selectable in the Payload builder
When the definition last changed. |
metafield.value |
string |
Selectable in the Payload builder
The stored metafield value. |
metafield.display_value |
string | null |
Selectable in the Payload builder
Not sent on category metafield events; read a reference's display name from the Store API. |
metafield.display_value_map |
object |
Selectable in the Payload builder
Not sent on category metafield events; read a reference's display names from the Store API. |
metafield.created_at |
string |
Selectable in the Payload builder
When this category's value was created. |
metafield.updated_at |
string |
Selectable in the Payload builder
When this category's value last changed. |