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 storefront response messages and locale overrides.
Messages are keyed by stable code. The response distinguishes inherited defaults from merchant overrides and lists required placeholders.
Query parameters
| Name | Type | Description |
|---|---|---|
locale
|
string |
Enabled store locale. |
namespace
|
string |
Message namespace. |
surface
|
string |
Storefront surface. |
search
|
string |
Search code or effective message. |
page
|
integer |
Page number. |
limit
|
integer |
Page size. |
sort_by
|
string |
Sortable column. |
sort_direction
|
string |
Asc or desc. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDAuthorization header missing, malformed, or token invalid/expired.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
429RATE_LIMITEDThe token's request allowance is exhausted. Retry after the Retry-After header.
Save a storefront message
Create or replace one localized message override.
The override must preserve exactly the placeholders declared for the message code.
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Body parameters
| Name | Type | Description |
|---|---|---|
locale
required
|
string |
Enabled store locale. |
code
required
|
string |
Stable message code. |
message_template
required
|
string |
Localized message with required placeholders. |
Errors
-
401UNAUTHORIZEDAuthorization header missing, malformed, or token invalid/expired.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
429RATE_LIMITEDThe token's request allowance is exhausted. Retry after the Retry-After header.
Reset a storefront message
Remove one locale override and return to the platform default.
Pass the locale as a query parameter. The message code is URL encoded in the path.
Path parameters
| Name | Type | Description |
|---|---|---|
code
required
|
string |
Stable message code. |
Query parameters
| Name | Type | Description |
|---|---|---|
locale
required
|
string |
Enabled store locale. |
Headers
| Name | Type | Description |
|---|---|---|
Authorization
required
|
string |
Bearer Store API token. |
Errors
-
401UNAUTHORIZEDAuthorization header missing, malformed, or token invalid/expired.
-
402SUBSCRIPTION_REQUIREDThe store does not have an active or trialing subscription.
-
403STORE_API_SCOPE_REQUIREDToken is valid but lacks the required scope for this call.
-
429RATE_LIMITEDThe token's request allowance is exhausted. Retry after the Retry-After header.