Recommendations

Configure related-product and recently-viewed storefront recommendations.

Recommendations combine explicit curation with an ordered automatic rule chain. Pinned products are shown first, then rules fill the remaining positions. Exclusions hide products from all recommendations, including pinned products and Recently viewed. The free-product policy affects automatic selection only; pinned free products remain eligible. Reads use read_products, and writes use write_products.

Settings apply across storefronts. include_subcategories affects only same-category rules. Recently viewed history follows the configured window and consent policy. List responses include compact product references so integrations can render them without one request per product.

Endpoints#

Recommendation limits

GET read_products

Get recommendation limits and supported modes.

Use this response to build controls; do not hardcode limits or enum values. rail_min_limit/rail_max_limit bound both rail settings, pins_max_per_product bounds one product's pins, page_size_options are the page sizes for the pin and exclusion lists (each at most list_max_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.

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

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

  • 429 RATE_LIMITED

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

Get recommendation settings

GET read_products

Get store-wide recommendation settings.

These settings govern related-product and recently-viewed rails across storefronts. related_limit and recently_viewed_limit are the most products each rail returns; a theme section can show fewer.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

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

  • 401 TOKEN_NOT_ACCEPTED

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

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

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

  • 403 STORE_SUSPENDED

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

  • 403 STORE_TERMINATED

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

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

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

  • 429 RATE_LIMITED

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

Update recommendation settings

PUT write_products

Replace store-wide recommendation settings.

Send the complete settings object returned by GET. The rail limits must be within rail_min_limit–rail_max_limit, history_window_days one of history_window_options, and cross_device_history one of cross_device_modes. A successful update publishes recommendations/settings/update.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
related_limit required integer

Products in the related rail.

Example: 8
recently_viewed_enabled required boolean

Whether Recently viewed is enabled.

Example: true
recently_viewed_limit required integer

Products in Recently viewed.

Example: 8
history_window_days required integer

History window from limits.

Example: 30
hide_out_of_stock required boolean

Exclude sold-out products automatically.

Example: true
exclude_free_products required boolean

Exclude zero-price products automatically.

Example: true
cross_device_history required string

Cross-device mode from limits.

Example: off

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

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

  • 401 TOKEN_NOT_ACCEPTED

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

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

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

  • 403 STORE_SUSPENDED

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

  • 403 STORE_TERMINATED

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

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 400 RECOMMENDATION_LIMIT_INVALID

    A rail limit is outside rail_min_limit–rail_max_limit; params.min and params.max give the range.

  • 400 RECOMMENDATION_HISTORY_WINDOW_INVALID

    history_window_days is not one of history_window_options.

  • 400 RECOMMENDATION_CROSS_DEVICE_INVALID

    cross_device_history is not one of cross_device_modes.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

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

  • 400 STORE_API_BODY_PROPERTY_INVALID

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

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

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

  • 429 RATE_LIMITED

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

Get recommendation rules

GET read_products

Get the ordered automatic recommendation rule chain.

Rules run after pinned products and fill the rail in position order. An empty list uses the default category best-seller rule.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

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

  • 401 TOKEN_NOT_ACCEPTED

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

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

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

  • 403 STORE_SUSPENDED

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

  • 403 STORE_TERMINATED

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

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

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

  • 429 RATE_LIMITED

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

Set recommendation rules

PUT write_products

Replace the ordered recommendation rule chain.

Send rules in display order, at most rules_max_per_store. same_attribute requires an attribute id in match_value and no other rule takes one; include_subcategories applies only to same_category and is saved as false elsewhere. The same rule (kind, value, sort and include_subcategories) cannot appear twice. Rules sent from GET can be sent back unchanged: position is ignored and set from the array order. Send an empty array to restore the default category best-seller rule. A successful update publishes recommendations/rules/update.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
rules required array<object>

Complete ordered rule list.

Example: [{"match_kind":"same_category","sort":"best_selling","include_subcategories":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.

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 400 RECOMMENDATION_RULES_TOO_MANY

    More than rules_max_per_store rules; params.max gives the limit.

  • 400 RECOMMENDATION_RULE_KIND_INVALID

    A rule's match_kind is not one of rule_match_kinds; details.index is the rule's position.

  • 400 RECOMMENDATION_RULE_SORT_INVALID

    A rule's sort is not one of rule_sorts; details.index is the rule's position.

  • 400 RECOMMENDATION_RULE_VALUE_INVALID

    A same_attribute rule has no attribute id or one this store does not have, or another rule has a match_value; details.index is the rule's position.

  • 400 RECOMMENDATION_RULE_DUPLICATE

    Two rules are identical; details.index is the second one's position.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

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

  • 400 STORE_API_BODY_PROPERTY_INVALID

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

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

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

  • 429 RATE_LIMITED

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

List curated products

GET read_products

List products that have pinned recommendation lists.

Compact product references are included so clients do not need one product request per row: each carries pin_count (how many products it pins) and image_url (its main image, null without one).

Query parameters

Name Type Description
page integer

Page number.

Default: 1
Example: 1
limit integer

Page size bounded by the limits response.

Example: 25

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

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

  • 401 TOKEN_NOT_ACCEPTED

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

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

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

  • 403 STORE_SUSPENDED

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

  • 403 STORE_TERMINATED

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

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 400 RECOMMENDATION_LIST_INVALID_PAGE

    page is below 1 or past the readable range.

  • 400 RECOMMENDATION_LIST_INVALID_LIMIT

    limit is below 1 or above list_max_limit; params.max gives the maximum.

  • 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 pinned recommendations

GET read_products

Get one product's ordered pinned recommendations.

The products array follows pin order and contains display identity, including image_url (the main image, null without one).

Path parameters

Name Type Description
productId required integer

Store-scoped product id.

Example: 42

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

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

  • 401 TOKEN_NOT_ACCEPTED

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

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

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

  • 403 STORE_SUSPENDED

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

  • 403 STORE_TERMINATED

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

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 404 RECOMMENDATION_PRODUCT_NOT_FOUND

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

Set pinned recommendations

PUT write_products

Replace one product's ordered pinned recommendations.

Pinned products show first in the product's related rail, in this order, before the rules fill the rest. Send at most pins_max_per_product ids; an empty array removes every pin. A product cannot pin itself, repeat a related product or pin a gift-only product. Drafts can be pinned and show once active and published; excluded or, with hide_out_of_stock, sold-out pins are skipped. A successful update publishes recommendations/pins/update.

Path parameters

Name Type Description
productId required integer

Store-scoped product id.

Example: 42

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
related_ids required array<integer>

Related product ids in display order.

Example: [17,23]

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

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

  • 401 TOKEN_NOT_ACCEPTED

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

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

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

  • 403 STORE_SUSPENDED

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

  • 403 STORE_TERMINATED

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

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 404 RECOMMENDATION_PRODUCT_NOT_FOUND

    A product id does not exist in this store.

  • 400 RECOMMENDATION_PINS_TOO_MANY

    More than pins_max_per_product ids; params.max gives the limit.

  • 400 RECOMMENDATION_PIN_SELF

    related_ids contains the product itself.

  • 400 RECOMMENDATION_PIN_DUPLICATE

    related_ids repeats an id.

  • 400 RECOMMENDATION_PIN_GIFT_ONLY

    A related product is gift-only, so it can never show in a rail; details.product_ids lists them.

  • 400 STORE_API_BODY_PROPERTY_UNKNOWN

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

  • 400 STORE_API_BODY_PROPERTY_INVALID

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

  • 400 STORE_API_QUERY_PARAMETER_UNKNOWN

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

  • 429 RATE_LIMITED

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

List recommendation exclusions

GET read_products

List products excluded from all recommendations.

Compact product references are returned with the ID list, each with image_url (the main image, null without one).

Query parameters

Name Type Description
page integer

Page number.

Default: 1
Example: 1
limit integer

Page size bounded by the limits response.

Example: 25

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

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

  • 401 TOKEN_NOT_ACCEPTED

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

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

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

  • 403 STORE_SUSPENDED

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

  • 403 STORE_TERMINATED

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

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 400 RECOMMENDATION_LIST_INVALID_PAGE

    page is below 1 or past the readable range.

  • 400 RECOMMENDATION_LIST_INVALID_LIMIT

    limit is below 1 or above list_max_limit; params.max gives the maximum.

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

Exclude a product

POST write_products

Exclude a product from all recommendations.

Exclusions apply to pinned products as well as automatic and recently-viewed recommendations. They do not unpublish the product. Excluding a product that is already excluded succeeds without a change. A store can exclude at most exclusions_max_per_store products. A change publishes recommendations/exclusions/update.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
product_id required integer

Product id.

Example: 42

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

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

  • 401 TOKEN_NOT_ACCEPTED

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

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

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

  • 403 STORE_SUSPENDED

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

  • 403 STORE_TERMINATED

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

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 404 RECOMMENDATION_PRODUCT_NOT_FOUND

    A product id does not exist in this store.

  • 400 RECOMMENDATION_EXCLUSIONS_TOO_MANY

    The store already excludes exclusions_max_per_store products; params.max gives the limit.

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

Remove a recommendation exclusion

DELETE write_products

Allow a product to be recommended automatically again.

The operation is idempotent: removing a product that is not excluded succeeds without a change.

Path parameters

Name Type Description
productId required integer

Store-scoped product id.

Example: 42

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

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

  • 401 TOKEN_NOT_ACCEPTED

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

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

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

  • 403 STORE_SUSPENDED

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

  • 403 STORE_TERMINATED

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

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 404 RECOMMENDATION_PRODUCT_NOT_FOUND

    A product id does not exist in this 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.

Exclude products in bulk

POST write_products

Exclude several products from all recommendations in one request.

Send at most exclusions_max_per_store product ids. The change runs as one transaction: products already excluded count as succeeded without a change, unknown products fail with RECOMMENDATION_PRODUCT_NOT_FOUND, and products past the store's exclusions_max_per_store ceiling fail with RECOMMENDATION_EXCLUSIONS_TOO_MANY, in request order. succeeded lists the ids now excluded, changed counts the ones this request added, failed gives each failure's code and total is the store's exclusion count afterwards. Repeating the request changes nothing more. Each added product publishes recommendations/exclusions/update.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
product_ids required array<integer>

Product ids to exclude, at most exclusions_max_per_store.

Example: [42,43]

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

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

  • 401 TOKEN_NOT_ACCEPTED

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

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

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

  • 403 STORE_SUSPENDED

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

  • 403 STORE_TERMINATED

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

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 400 RECOMMENDATION_EXCLUSIONS_TOO_MANY

    The store already excludes exclusions_max_per_store products; params.max gives the limit.

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

Remove recommendation exclusions in bulk

POST write_products

Allow several products to be recommended automatically again in one request.

Send at most exclusions_max_per_store product ids. The change runs as one transaction: products that are not excluded count as succeeded without a change and unknown products fail with RECOMMENDATION_PRODUCT_NOT_FOUND. succeeded lists the ids no longer excluded, changed counts the ones this request removed, failed gives each failure's code and total is the store's exclusion count afterwards. Each removed product publishes recommendations/exclusions/update.

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Body parameters

Name Type Description
product_ids required array<integer>

Product ids to allow again, at most exclusions_max_per_store.

Example: [42,43]

Errors

  • 401 UNAUTHORIZED

    The Authorization header is missing.

  • 401 INVALID_TOKEN

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

  • 401 TOKEN_NOT_ACCEPTED

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

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 API_VERSION_UNSUPPORTED

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

  • 403 STORE_SUSPENDED

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

  • 403 STORE_TERMINATED

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

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 400 RECOMMENDATION_EXCLUSIONS_TOO_MANY

    The store already excludes exclusions_max_per_store products; params.max gives the limit.

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

Webhook events#

Recommendation exclusions updated

EVENT recommendations/exclusions/update App scope: read_products Staff permission: online_store.recommendations:write

Fired when a product is added to or removed from recommendation exclusions.

Payload fields

Field Type Description
action string Selectable in the Payload builder
product.id integer Always present
product.title string Selectable in the Payload builder
product.slug string Selectable in the Payload builder

Pinned recommendations updated

EVENT recommendations/pins/update App scope: read_products Staff permission: online_store.recommendations:write

Fired when a product's pinned recommendations change.

Payload fields

Field Type Description
product_id integer Always present
pins[*].related_product_id integer Selectable in the Payload builder
pins[*].position integer Selectable in the Payload builder
products[*].id integer Always present
products[*].title string Selectable in the Payload builder
products[*].slug string Selectable in the Payload builder

Recommendation rules updated

EVENT recommendations/rules/update App scope: read_products Staff permission: online_store.recommendations:write

Fired when the recommendation rule chain changes.

Payload fields

Field Type Description
rules[*].match_kind string Selectable in the Payload builder
rules[*].match_value string | null Selectable in the Payload builder
rules[*].sort string Selectable in the Payload builder
rules[*].position integer Selectable in the Payload builder
rules[*].include_subcategories boolean Selectable in the Payload builder

Recommendation settings updated

EVENT recommendations/settings/update App scope: read_products Staff permission: online_store.recommendations:write

Fired when recommendation settings change.

Payload fields

Field Type Description
settings.related_limit integer Selectable in the Payload builder
settings.recently_viewed_enabled boolean Selectable in the Payload builder
settings.recently_viewed_limit integer Selectable in the Payload builder
settings.history_window_days integer Selectable in the Payload builder
settings.hide_out_of_stock boolean Selectable in the Payload builder
settings.exclude_free_products boolean Selectable in the Payload builder
settings.cross_device_history string Selectable in the Payload builder