Storefront messages are localized shopper-facing responses used by storefront and hosted-action workflows. They use translation scopes: read_translations for reads and write_translations for overrides.
Every message has a stable code and a platform default. An override replaces only one store locale. Templates must preserve exactly the placeholders declared by that code; resetting an override returns the effective message to the platform default.
Endpoints#
List storefront messages
List a language's messages with their platform text and the store's own.
Each message has its code, its namespace (area), the platform text in that language (default_message, or english_message when the language has none, with has_locale_default false), the store's own text (override_message, null while it uses the platform text) and the text shoppers see (effective_message). placeholders lists what the text must keep, each written {{.name}}. Messages with overrideable false are fixed by the platform.
Query parameters
| Name | Type | Description |
|---|---|---|
locale
|
string |
An enabled store language. Omit it for the default language. |
namespace
|
string |
Only messages of this area, one of |
surface
|
string |
Only messages shown on this surface: |
search
|
string |
Search the code or the text shown, up to |
page
|
integer |
Page number. |
limit
|
integer |
Page size, up to |
sort_by
|
string |
|
sort_direction
|
string |
|
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400STOREFRONT_MESSAGES_INVALID_LOCALEThe language is not enabled for the store.
-
400STOREFRONT_MESSAGES_INVALID_NAMESPACEThe namespace is not one of
namespacesin the response. -
400STOREFRONT_MESSAGES_INVALID_SURFACEThe surface is not
ctxorhosted_action. -
400STOREFRONT_MESSAGES_INVALID_PAGEThe page is not a positive whole number.
-
400STOREFRONT_MESSAGES_INVALID_LIMITThe limit is outside 1 to
list_max_limit. -
400STOREFRONT_MESSAGES_SEARCH_TOO_LONGThe search is longer than
search_max_length. -
400STOREFRONT_MESSAGES_INVALID_SORT_BYThe sort column is not
code,namespaceoreffective_message. -
400STOREFRONT_MESSAGES_INVALID_SORT_DIRECTIONThe sort direction is not
ascordesc. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Save a storefront message
Set the store's text for one message in one language.
The text must be plain text of at most template_max_runes characters and keep every placeholder the message has, written {{.name}}. Saving the platform text while the message has no text of its own stores nothing. Shoppers see the new text within a minute, and a storefront_messages/update webhook is sent.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
locale
|
string |
An enabled store language. Omit it for the default language. |
code
required
|
string |
Message code, in any case. |
message_template
required
|
string |
The store's text, keeping the message's placeholders. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400STOREFRONT_MESSAGES_INVALID_LOCALEThe language is not enabled for the store.
-
400STOREFRONT_MESSAGES_INVALID_CODEThe code is not a storefront message.
-
400STOREFRONT_MESSAGES_CODE_NOT_OVERRIDEABLEThe platform keeps this message fixed.
-
400STOREFRONT_MESSAGES_TEMPLATE_REQUIREDThe text is empty. To go back to the default text, reset the message.
-
400STOREFRONT_MESSAGES_INVALID_TEMPLATEThe text has HTML or control characters, or a malformed placeholder.
-
400STOREFRONT_MESSAGES_INVALID_PLACEHOLDERThe text has a placeholder this message does not have.
-
400STOREFRONT_MESSAGES_MISSING_PLACEHOLDERThe text leaves out a placeholder this message needs; the message names it.
-
400STOREFRONT_MESSAGES_TEMPLATE_TOO_LONGThe text is longer than
template_max_runescharacters. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe body has a property this request does not accept. The message and
error.details.propertieslist the allowed and required properties (nestedfor each object or list of objects). -
400STORE_API_BODY_PROPERTY_INVALIDA body property has the wrong type (
error.details.expected_type). The message anderror.details.propertieslist the allowed and required properties. -
400STORE_API_QUERY_PARAMETER_UNKNOWNThe request has a query parameter; this endpoint takes none.
-
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Reset a storefront message
Go back to the platform text for one message in one language.
Resetting a message that already uses the platform text changes nothing and sends no webhook.
Path parameters
| Name | Type | Description |
|---|---|---|
code
required
|
string |
Message code, in any case. |
Query parameters
| Name | Type | Description |
|---|---|---|
locale
|
string |
An enabled store language. Omit it for the default language. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDThe Authorization header is missing.
-
401INVALID_TOKENThe Authorization header is not Bearer followed by a token, or the token is not in the form Tringify issues.
-
401TOKEN_NOT_ACCEPTEDThe token is unknown, expired, revoked or replaced, or its app was uninstalled.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403API_VERSION_UNSUPPORTEDThe credential is pinned to an API version that cannot be served.
-
403STORE_SUSPENDEDTringify has suspended the store. Every request is refused until it is reinstated.
-
403STORE_TERMINATEDTringify has terminated the store permanently. Every request is refused.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
400STOREFRONT_MESSAGES_INVALID_LOCALEThe language is not enabled for the store.
-
400STOREFRONT_MESSAGES_INVALID_CODEThe code is not a storefront message.
-
400STOREFRONT_MESSAGES_CODE_NOT_OVERRIDEABLEThe platform keeps this message fixed.
-
400STORE_API_QUERY_PARAMETER_UNKNOWNThe query string has a parameter this request does not accept. The message and
error.details.allowed_parameterslist the ones it does. -
400STORE_API_BODY_PROPERTY_UNKNOWNThe request body has a property; this endpoint takes no body. Send no body or an empty object
{}. -
429RATE_LIMITEDThe request allowance is exhausted. Wait for Retry-After before retrying.
Webhook events#
Storefront message updated
Fired when a store changes a storefront message's text in one language: action is saved for its own text and reset for a return to the platform text. updated_at is when the change was made, for a reset too. A latest-state topic: the same message in the same language is the same resource, so rapid changes reach you once, with the latest text.
Payload fields
| Field | Type | Description |
|---|---|---|
action |
string |
Always present |
message.code |
string |
Always present |
message.locale |
string |
Always present |
message.namespace |
string |
Selectable in the Payload builder |
message.default_message |
string |
Selectable in the Payload builder |
message.override_message |
string | null |
Selectable in the Payload builder |
message.effective_message |
string |
Selectable in the Payload builder |
message.placeholders |
array |
Selectable in the Payload builder |
message.updated_at |
string |
Selectable in the Payload builder |