Storefront messages

Read and customize localized storefront response messages.

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

GET read_translations

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.

Example: en
namespace string

Message namespace.

Example: cart
surface string

Storefront surface.

Example: hosted_actions
search string

Search code or effective message.

Example: stock
page integer

Page number.

Default: 1
Example: 1
limit integer

Page size.

Example: 25
sort_by string

Sortable column.

Example: code
sort_direction string

Asc or desc.

Example: asc

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    Authorization header missing, malformed, or token invalid/expired.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 429 RATE_LIMITED

    The token's request allowance is exhausted. Retry after the Retry-After header.

Save a storefront message

PUT write_translations

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.

Example: en
code required string

Stable message code.

Example: STOREFRONT_CUSTOMER_LOGIN_SUCCESS
message_template required string

Localized message with required placeholders.

Example: Welcome back.

Errors

  • 401 UNAUTHORIZED

    Authorization header missing, malformed, or token invalid/expired.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 429 RATE_LIMITED

    The token's request allowance is exhausted. Retry after the Retry-After header.

Reset a storefront message

DELETE write_translations

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.

Example: STOREFRONT_CUSTOMER_LOGIN_SUCCESS

Query parameters

Name Type Description
locale required string

Enabled store locale.

Example: en

Headers

Name Type Description
Authorization required string

Bearer Store API token.

Errors

  • 401 UNAUTHORIZED

    Authorization header missing, malformed, or token invalid/expired.

  • 402 SUBSCRIPTION_REQUIRED

    The store does not have an active or trialing subscription.

  • 403 STORE_API_SCOPE_REQUIRED

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

  • 429 RATE_LIMITED

    The token's request allowance is exhausted. Retry after the Retry-After header.