Categories

Create, read, update, delete, bulk manage, translate, and subscribe to product categories through the Store API.

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

GET read_products

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

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

  • 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 categories

GET read_products

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 categories.list response. Omit for the first page; reset when search, filters, tree, or sorting changes.

Example: eyJ2IjoxLCJyIjoiY2F0ZWdvcnkifQ
limit integer

Page size, 1-100 (default 50). Larger values return CATEGORY_LIST_INVALID_LIMIT. A page whose rows would exceed the 512 KiB reply budget returns LIST_RESPONSE_TOO_LARGE; request it again with a lower limit.

Example: 20
tree boolean

When true and no search or filters are active, paginate roots by limit, then nest an ancestor-first prefix of their combined subtrees up to request_caps.tree_max_limit total nodes. truncated: true means later nodes were omitted by that expansion cap; it is independent of root-page has_next. Search or filter parameters return the complete flat cursor-paginated result instead. Accepted values: true, false.

Example: false
search string

Search categories by name or slug. Maximum 200 characters.

Example: apparel
parent_id string

null for root categories, or a positive parent category id.

Example: null
ancestor_id integer

Filter to descendants of this ancestor category id. Must be a positive integer.

Example: 12
has_children boolean

Filter categories by whether they have subcategories. Accepted values: true, false.

Example: true
has_images boolean

Filter categories by whether they have an image. Accepted values: true, false.

Example: true
sort_by string

Sort field. Allowed values: name, product_count, created_at, updated_at.

Allowed values
nameproduct_countcreated_atupdated_at
Example: name
sort_direction string

Sort direction. Allowed values: asc, desc.

Allowed values
ascdesc
Example: asc

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.

  • 400 CATEGORY_LIST_INVALID_LIMIT

    limit is outside 1 to request_caps.list_max_limit.

  • 400 INVALID_INPUT

    Cursor is malformed or does not match the current list state.

  • 400 CATEGORY_SEARCH_TOO_LONG

    search is longer than request_caps.search_max_length.

  • 400 CATEGORY_LIST_INVALID_SORT_BY

    sort_by is not a supported sort field.

  • 400 CATEGORY_LIST_INVALID_SORT_DIRECTION

    sort_direction is not asc or desc.

  • 400 CATEGORY_LIST_INVALID_PARENT_ID

    parent_id is neither null nor a positive integer.

  • 400 CATEGORY_LIST_INVALID_ANCESTOR_ID

    ancestor_id is not a positive integer.

  • 400 CATEGORY_LIST_INVALID_BOOLEAN

    A boolean list filter is not true or false.

  • 400 LIST_RESPONSE_TOO_LARGE

    The page is too large; request a lower limit (error.params.fit estimates how many rows fit).

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

Search categories

GET read_products

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.

Example: apparel
page integer

Page number, from 1.

Default: 1
Example: 1
limit integer

Suggestion count. Defaults to 10. Maximum 50.

Example: 10

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.

  • 400 VALIDATION_LIST_INVALID_PAGE

    page is not a positive integer.

  • 400 CATEGORY_LIST_INVALID_LIMIT

    limit is outside 1 to request_caps.search_max_limit.

  • 400 CATEGORY_SEARCH_TOO_LONG

    q is longer than request_caps.search_max_length.

  • 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 category

GET read_products

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.

Example: 7

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.

  • 400 STORE_API_INVALID_CATEGORY_ID

    Category id is not a positive integer.

  • 404 CATEGORY_NOT_FOUND

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

List category metafields

GET read_products

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.

Example: 7

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 limit from 51 to 100 returns 50 values per page (data.limit shows the size used); above 100 it is rejected with VALIDATION_LIST_INVALID_LIMIT.

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.

  • 400 STORE_API_INVALID_CATEGORY_ID

    Category id is not a positive integer.

  • 400 VALIDATION_LIST_INVALID_PAGE

    Page must be at least 1.

  • 400 VALIDATION_LIST_INVALID_LIMIT

    Limit is outside the supported range.

  • 404 NOT_FOUND

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

Set category metafields

PUT write_products

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.

Example: 7

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
metafields required array<object>

Entries shaped as {namespace, key, value}. value is required in every entry; send null or an empty string to delete the stored value.

Example: [{"namespace":"details","key":"care","value":"Hand wash"}]

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.

  • 400 STORE_API_INVALID_CATEGORY_ID

    Category id is not a positive integer.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.

  • 400 METAFIELD_NO_WRITES

    At least one metafield entry is required.

  • 400 METAFIELD_DUPLICATE_WRITE

    The request contains the same namespace and key more than once.

  • 400 METAFIELD_KEY_NOT_FOUND

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

  • 403 METAFIELD_WRITE_MERCHANT_READ_ONLY

    The app-owned definition does not allow Store Admin writes.

  • 404 NOT_FOUND

    Category does not exist in this store. A file reference names a file that 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.

  • 400 INVALID_INPUT

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

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

Create a category

POST write_products

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

Body parameters

Name Type Description
name required string

Category name.

Example: Apparel
slug string

Optional slug. Omit to generate from name.

Example: apparel
parent_id integer

Optional parent category id. Omit or send 0 for a root category.

Example: 12
description string

Optional plain-text description.

Example: Clothing and fashion.
seo_title string

Optional SEO title. Omit or send an empty string to let the storefront fall back to the category name.

Example: Shop Apparel
seo_description string

Optional SEO description. Omit or send an empty string to let the storefront fall back to the category description.

Example: Browse clothing, shoes, and accessories.
image_id string

Optional Media-library upload image UUID. Non-empty values require read_files access to the referenced file.

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

Category template. Omit this field, send an empty string, or send default_category to use the default category template. Otherwise, send a category template handle available in the store's active theme. The handles are each template's handle in List theme templates (resource_type category).

Example: default_category

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.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.

  • 400 STORE_API_CREATE_REDIRECT_UNSUPPORTED

    create_redirect is only accepted when updating a category.

  • 400 CATEGORY_NAME_REQUIRED

    name is missing or empty.

  • 400 CATEGORY_NAME_INVALID_CHARS

    Name contains forbidden control characters.

  • 400 CATEGORY_NAME_TOO_LONG

    Name is longer than its max_length in /categories/limits.

  • 400 CATEGORY_SLUG_INVALID_FORMAT

    Slug may contain only lowercase letters, digits and hyphens.

  • 400 CATEGORY_SLUG_TOO_LONG

    Slug is longer than its max_length in /categories/limits.

  • 400 CATEGORY_SLUG_GENERATION_FAILED

    A slug could not be generated from the supplied name.

  • 400 CATEGORY_UNIQUE_SLUG_GENERATION_FAILED

    A unique generated slug could not be allocated.

  • 400 CATEGORY_DESCRIPTION_INVALID_CHARS

    Description contains forbidden control characters.

  • 400 CATEGORY_DESCRIPTION_TOO_LONG

    Description is longer than its max_length in /categories/limits.

  • 400 CATEGORY_SEO_TITLE_INVALID_CHARS

    SEO title contains forbidden control characters.

  • 400 CATEGORY_SEO_TITLE_TOO_LONG

    SEO title is longer than its max_length in /categories/limits.

  • 400 CATEGORY_SEO_DESCRIPTION_INVALID_CHARS

    SEO description contains forbidden control characters.

  • 400 CATEGORY_SEO_DESCRIPTION_TOO_LONG

    SEO description is longer than its max_length in /categories/limits.

  • 400 CATEGORY_DEPTH_EXCEEDED

    Parent assignment would exceed the category hierarchy depth limit.

  • 400 CATEGORY_CANNOT_BE_OWN_PARENT

    A category cannot be its own parent.

  • 400 CATEGORY_CANNOT_BE_DESCENDANT_PARENT

    Parent assignment would create a cycle.

  • 400 CATEGORY_PARENT_NOT_FOUND

    Parent category does not exist in this store.

  • 400 TEMPLATE_HANDLE_INVALID

    Template handle is not a valid category template handle.

  • 400 TEMPLATE_HANDLE_NOT_FOUND

    No category template with this handle exists in the store's active theme.

  • 400 INVALID_INPUT

    image_id is malformed, is not an image, or is not a merchant upload.

  • 403 STORE_API_SCOPE_REQUIRED

    A non-empty image_id requires read_files in addition to write_products.

  • 404 NOT_FOUND

    image_id does not reference a file in this store.

  • 409 CATEGORY_DUPLICATE

    The 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.field is name or slug and error.details.existing_id is the category that holds the value.

  • 400 CATEGORY_PLAN_LIMIT_REACHED

    The store has as many categories as its plan allows; the message states the maximum. Fetch /categories/limits for the store's current cap and usage.

  • 400 CATALOG_REQUEST_KEY_TOO_LONG

    Idempotency-Key is longer than 255 characters.

  • 403 PLAN_UNKNOWN

    The store has no active plan, so nothing can be created until one is chosen.

  • 409 CATALOG_REQUEST_KEY_CONFLICT

    Idempotency-Key was already used with a different request body.

  • 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 create categories

POST write_products

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

Body parameters

Name Type Description
names required array<string>

Category names to create.

Example: ["Apparel", "Accessories"]

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.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.

  • 400 CATEGORY_BULK_NO_NAMES

    No names were provided.

  • 400 CATEGORY_BULK_CREATE_TOO_MANY

    More names than request_caps.bulk_create_max_count.

  • 409 CATEGORY_BULK_DUPLICATE

    One of the names in the batch was just created by another request.

  • 400 CATALOG_REQUEST_KEY_TOO_LONG

    Idempotency-Key is longer than 255 characters.

  • 403 PLAN_UNKNOWN

    The store has no active plan, so nothing can be created until one is chosen.

  • 409 CATALOG_REQUEST_KEY_CONFLICT

    Idempotency-Key was already used with a different request body.

  • 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 category

PUT write_products

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.

Example: 7

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.

Example: Apparel
slug string

New slug. Omit to leave the current slug unchanged; send an empty string to regenerate it from the current category name.

Example: apparel
parent_id integer

New parent category id. Omit to leave it unchanged; send 0 to move the category to the top level.

Example: 12
description string

New plain-text description. Omit to leave it unchanged; send an empty string to clear it.

Example: Clothing and fashion.
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.

Example: Shop Apparel
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.

Example: Browse clothing, shoes, and accessories.
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 read_files access and must reference an image upload in this store.

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

New category template. Omit to leave it unchanged, send default_category to use the default category template, or send another category template handle available in the store's active theme. An empty string is invalid. The handles are each template's handle in List theme templates (resource_type category).

Example: default_category
create_redirect boolean

When slug changes, create a redirect from the previous slug. Defaults to true; send false to change the slug without one.

Example: true

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.

  • 409 CATEGORY_CHANGED_DURING_EDIT

    The category changed since this edit began. Read it again before saving.

  • 400 STORE_API_INVALID_CATEGORY_ID

    Category id is not a positive integer.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.

  • 400 CATEGORY_NAME_REQUIRED

    name was sent empty. Omit it to keep the current name.

  • 400 CATEGORY_NAME_INVALID_CHARS

    Name contains forbidden control characters.

  • 400 CATEGORY_NAME_TOO_LONG

    Name is longer than its max_length in /categories/limits.

  • 400 CATEGORY_SLUG_INVALID_FORMAT

    Slug may contain only lowercase letters, digits and hyphens.

  • 400 CATEGORY_SLUG_TOO_LONG

    Slug is longer than its max_length in /categories/limits.

  • 400 CATEGORY_SLUG_GENERATION_FAILED

    A slug could not be generated from the supplied name.

  • 400 CATEGORY_UNIQUE_SLUG_GENERATION_FAILED

    A unique generated slug could not be allocated.

  • 400 CATEGORY_DESCRIPTION_INVALID_CHARS

    Description contains forbidden control characters.

  • 400 CATEGORY_DESCRIPTION_TOO_LONG

    Description is longer than its max_length in /categories/limits.

  • 400 CATEGORY_SEO_TITLE_INVALID_CHARS

    SEO title contains forbidden control characters.

  • 400 CATEGORY_SEO_TITLE_TOO_LONG

    SEO title is longer than its max_length in /categories/limits.

  • 400 CATEGORY_SEO_DESCRIPTION_INVALID_CHARS

    SEO description contains forbidden control characters.

  • 400 CATEGORY_SEO_DESCRIPTION_TOO_LONG

    SEO description is longer than its max_length in /categories/limits.

  • 400 CATEGORY_DEPTH_EXCEEDED

    Parent assignment would exceed the category hierarchy depth limit.

  • 400 CATEGORY_CANNOT_BE_OWN_PARENT

    A category cannot be its own parent.

  • 400 CATEGORY_CANNOT_BE_DESCENDANT_PARENT

    Parent assignment would create a cycle.

  • 400 CATEGORY_PARENT_NOT_FOUND

    Parent category does not exist in this store.

  • 400 TEMPLATE_HANDLE_INVALID

    Template handle is not a valid category template handle.

  • 400 TEMPLATE_HANDLE_NOT_FOUND

    No category template with this handle exists in the store's active theme.

  • 400 INVALID_INPUT

    image_id is malformed, is not an image, or is not a merchant upload.

  • 403 STORE_API_SCOPE_REQUIRED

    A non-empty image_id requires read_files in addition to write_products.

  • 404 NOT_FOUND

    image_id does not reference a file in this store.

  • 409 CATEGORY_DUPLICATE

    The 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.field is name or slug and error.details.existing_id is the category that holds the value.

  • 404 CATEGORY_NOT_FOUND

    Category does not exist in this store.

  • 409 TRANSLATION_SOURCE_FIELD_HAS_TRANSLATIONS

    Clear a field's translations before clearing its source value.

  • 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 category

DELETE write_products

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.

Example: 7

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

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

  • 400 STORE_API_INVALID_CATEGORY_ID

    Category id is not a positive integer.

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.

  • 400 CATEGORY_CONFIRMATION_INVALID

    Confirmation token is missing, expired, or mismatched.

  • 404 CATEGORY_NOT_FOUND

    Category does not exist in this store.

  • 409 CONFIRMATION_REQUIRED

    Delete requires confirmation because subcategories move or dependent records will be changed.

  • 409 CATEGORY_DELETE_NAME_CONFLICT

    Moving a subcategory up would give two categories under the same parent the same name in some language. error.details.name_conflicts lists each clash; rename one category of each pair, then delete again.

  • 409 CATALOG_DELETE_IMPACT_CHANGED

    The impact changed after the confirmation was issued; review the new confirmation and confirm again.

  • 503 CATALOG_DELETE_UNAVAILABLE

    Deleting is temporarily unavailable; nothing was deleted. Retry later.

  • 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 delete categories

POST write_products

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.

Example: [7, 11]
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

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

  • 400 STORE_API_INVALID_REQUEST_BODY

    Request body must be a JSON object containing only documented fields; error.details.field identifies an unknown field.

  • 400 CATEGORY_BULK_NO_IDS

    category_ids is missing or empty.

  • 400 CATEGORY_BULK_DELETE_TOO_MANY

    More ids than request_caps.bulk_delete_max_count.

  • 400 CATEGORY_CONFIRMATION_INVALID

    Confirmation token is missing, expired, or mismatched.

  • 409 CONFIRMATION_REQUIRED

    Delete requires confirmation because subcategories move or dependent records will be changed.

  • 409 CATEGORY_DELETE_NAME_CONFLICT

    Moving a subcategory up would give two categories under the same parent the same name in some language. error.details.name_conflicts lists each clash; rename one category of each pair, then delete again.

  • 409 CATALOG_DELETE_IMPACT_CHANGED

    The impact changed after the confirmation was issued; review the new confirmation and confirm again.

  • 503 CATALOG_DELETE_UNAVAILABLE

    Deleting is temporarily unavailable; nothing was deleted. Retry later.

  • 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 category metafield

DELETE write_products

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.

Example: 7
namespace required string

Definition namespace; URL-encode reserved characters.

Example: details
key required string

Definition key.

Example: subtitle

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.

  • 400 INVALID_INPUT

    The owner ID or namespace/key address is invalid.

  • 400 METAFIELD_KEY_NOT_FOUND

    The definition does not exist or is not readable by this caller.

  • 403 METAFIELD_WRITE_APP_OWN_ONLY

    Apps may clear only their own definitions' values, even when other definitions are readable.

  • 403 METAFIELD_WRITE_MERCHANT_READ_ONLY

    The app-owned definition does not grant merchants value write access.

  • 403 STORE_API_SCOPE_REQUIRED

    The token lacks the owner's write scope. Clearing a value needs no additional read_files or write_translations scope.

  • 404 NOT_FOUND

    The owner does not exist in the authenticated store.

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

Fields#

Field

Type

Create

Update

Required

Translatable

id

id

No

No

No

store_id

text

No

No

No

name

text

Yes

Yes

create

Yes

slug

slug

Yes

Yes

Yes

parent_id

integer

Yes

Yes

No

description

textarea

Yes

Yes

Yes

seo_title

text

Yes

Yes

Yes

seo_description

textarea

Yes

Yes

Yes

image_id

image

Yes

Yes

No

image_url

text

No

No

No

image_cdn_url

text

No

No

No

template_handle

template

Yes

Yes

No

create_redirect

boolean

No

Yes

No

parent_name

text

No

No

No

has_children

boolean

No

No

No

product_count

integer

No

No

No

created_at

datetime

No

No

No

updated_at

datetime

No

No

No

storefront_url

url

No

No

No

No

storefront_path

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

EVENT categories/create App scope: read_products Staff permission: products:write

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

EVENT categories/update App scope: read_products Staff permission: products:write

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

EVENT categories/delete App scope: read_products Staff permission: products:write

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

EVENT category_metafields/create App scope: read_products Staff permission: products:write

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

EVENT category_metafields/update App scope: read_products Staff permission: products:write

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

EVENT category_metafields/delete App scope: read_products Staff permission: products:write

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.